• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTextArea with varied lengths

 
Tariq Ahsan
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to create an data input form using JTabbedPane, JPanel and GridBagLayout, JLabel, JTextArea etc. I like to have multiple data input entries in the same rows with multiple rows on the panel. e.g. First row would have just the user id entry box. The second row with First Name, Middle Initial and Last Name and so on. The Problem I am having is the JTextArea of each of these to have the same length. For example I would like to have the JTextArea for the First Name and Last Name to have a length of 30 characters. But have the Middle Initial to have a length of 1.
Is there a way I can control these JTextArea to have varied lengths. Code snippets for what I am looking for would be much helpful.
 
Craig Wood
Ranch Hand
Pie
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic