Forums Register Login

help on accessing the component in the tab Pane

+Pie Number of slices to send: Send
IRC Client problem - kindly check the codes..

Is it possible to display the text in the textfield to the textarea on the focused tab?

Thanks in advance.. Sorry, as of now, the code is messy..
[ March 13, 2007: Message edited by: arnie frenato ]
+Pie Number of slices to send: Send
haven't clicked the link, but these steps should work (depending on structure)

add a ChangeListener, which gets the 'selected tab', then
textArea['selected tab'].setText(textField.getText());
or
panel['selected tab'].textArea.setText(textField.getText());
+Pie Number of slices to send: Send
Uhm, my problem is actually this.. Everytime you join a channel, it creates a new tab on the JTabbedPane.. The created new tab has a JPanel with a JTextArea inside it.. I'm having trouble on displaying the text messages on the the correct JTextArea of the correct tab.. So, any solution?

Thanks in advance..
I can't take it! You are too smart for me! Here is the tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 597 times.
Similar Threads
Basic doubts needed for urgency!!!!!
Importing large number of rows
shortcut in Mozilla Browser..
IntelliJ 4.0 : how to go from file to file?
Need help in deployment a web application on IBM Websphere Application Server
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 14:28:38.