This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Using JTextFields in JTabbedPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Using JTextFields in JTabbedPane" Watch "Using JTextFields in JTabbedPane" New topic

Using JTextFields in JTabbedPane

Rudy Rodriguez

Joined: May 01, 2009
Posts: 29

I created a JTabbedPane GUI application that contains textfields.

I am trying to display data from a Arraylist in the JTextFields.

Can anyone provide some insight into displaying data into JTextFields, in JTabbedPane's ???


Matthew Cox

Joined: May 25, 2009
Posts: 29
Word of advice; something I learned as well from the forum community.
Try as best you can to reduce the code down to the smallest ammount possible. It is painful to read through code written by another person without good comments. So the alternative is to post code snippets that are in the identified region where your problem specifically is.

The added benefit is twofold:

1. You will get better and quicker posts.

2. In breaking down the code into a problem segment, you may well discover the answer to your own question by the time it's ready for posting.

So, conclusion:

Show me the snippet where are data is being placed into the JTextFields and I can better assist you.
Rudy Rodriguez

Joined: May 01, 2009
Posts: 29
Hi Matthew

I figured out what I am doing wrong...

I should add the data into the JTextfields during the creation of the JTab's, instead of the update method...

Thanks for your advice...

I agree. Here's the link:
subject: Using JTextFields in JTabbedPane
Similar Threads
Problem with ActionListener and JButtons (harder than it first seems
Using JTextfields in a JTabbedPane
How this interface could be strucured
Problems using JTabbedPane In a GUI application
Window Size