Forums Register Login

Handling tabbedpane events

+Pie Number of slices to send: Send
Hi everyone,
I'm using JTabbedPane on a JFrame. I have got two JPanels added to the JTabbedPane as my tabs. on first tab I have got a list which includes data loaded from DB. the next tab contains "Insert" function, which takes a name and inserts it to the DB(where list reads its data from). the problem is that I can not handle events to control switching between tabs to update list to show the new item inserted. Now I need your help.

thanks in prior,

A. Honarmand

P.S.
I'm using JDeveloper
+Pie Number of slices to send: Send
To get better help sooner, post a SSCCE (Short, Self Contained, Compilable and Executable) example that demonstrates the problem.
1
+Pie Number of slices to send: Send
Use a ChangeListener to know when a new tab has been selected.
Not looking good. I think this might be the end. Wait! Is that a tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1150 times.
Similar Threads
Getting the size of a tab in a JTabbedPane
JTabbedPane events
JTabbedPane - traversing focus through tabs
JTabbePane and tab indeces
Dragging between tabs
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 07:59:51.