File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
It's not a secret anymore!