By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,469 Members | 1,885 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,469 IT Pros & Developers. It's quick & easy.

Creating new components for a new JTab

P: n/a
hi, just wondering how i could create a new JTextArea to be added to a
new Tab in a JTabbedPane. ie. every time a ActionEvent is fired
(menuItem) it creates a new TextArea which the new Tab holds
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
ne*************@hotmail.com (- ions) wrote in message news:<47**************************@posting.google. com>...
hi, just wondering how i could create a new JTextArea to be added to a
new Tab in a JTabbedPane. ie. every time a ActionEvent is fired
(menuItem) it creates a new TextArea which the new Tab holds


inside the ActionListener:

JTextArea ta= new JTextArea();
myTabbedPane.add(ta);
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.