Results 1 to 3 of 3
- 03-14-2012, 06:07 PM #1
Member
- Join Date
- Mar 2012
- Posts
- 2
- Rep Power
- 0
Problem with GUI applications(Mac)
Hello!
Everytime I start a GUI app, all the objects(buttons, labels, everything!) in the window are invisible at start. To make them visible I have to change the size of the window, and when I do that(by "dragging" the edges of the window), all objects just pop up. I want them to be visible at start, so that I can make the window unresizable.
I have this problem no matter what objects I put into the frame. Worth mentioning is that I'm programming on a mac.
So, the big question, how can I fix this?
-
Re: Problem with GUI applications(Mac)
See if calling SwingUtilities.updateComponentTreeUI(this) works in your JFrame class, or if you don't have a JFrame class then it would be SwingUtilities.updateComponentTreeUI(myFrame).
Call it at the end of the initialisation of your frame before you setVisible(true).
- 03-14-2012, 06:57 PM #3
Member
- Join Date
- Mar 2012
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
Problem with Java Web Applications and Java in Control Panel
By Abysinian in forum Advanced JavaReplies: 4Last Post: 03-16-2012, 11:29 AM -
applications in netbeans
By Suni in forum NetBeansReplies: 1Last Post: 01-03-2011, 05:10 PM -
Web applications
By etisc in forum New To JavaReplies: 1Last Post: 01-02-2011, 03:28 PM -
Stand alone applications? HELP!!!
By Atriamax in forum EclipseReplies: 6Last Post: 09-11-2009, 01:56 AM -
Including JAR in applications
By bugger in forum New To JavaReplies: 0Last Post: 01-11-2008, 09:36 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks