Forums Register Login

Getting blank screen in Swing Aplication

+Pie Number of slices to send: Send
Hi All,
I am developing a swing application, in which I have JFrame and this JFrame contains many panels and each panel contains JTables and JButtons, and JLabels and I applied TableCellRenderer to the each of the column of JTables.
But when I returns to this page from some other pages, I am getting a blank screen, and when I move my mouse over the JButtons or JTable, the page is displaying.

I don't know, what is the problem.

If any one had this problem before, please let me know, how you solved it or please provide me what all may be the reason behind it ?

Thanks In Advance

Renjith M
+Pie Number of slices to send: Send
This almost always is caused because you are not switching the panels properly.

You got two options
1) Use card layout
2) User parent.add and also call revalidate and repaint after the add call.
We've gotta get close enough to that helmet to pull the choke on it's engine and flood his mind! Or, we could just read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 2095 times.
Similar Threads
Print multiple Jtable contents in one page
Swing Components - User Interface
jinternalframes
JInternalFrames
User Interface
More...

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