This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
This is a post in the Swing forum. I slightly modified your code. It runs fine. Maybe you never call CtlPanel to run?
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” (Mosher's Law of Software Engineering)
“If debugging is the process of removing bugs, then programming must be the process of putting them in.” (Edsger Dijkstra)
Joined: Feb 04, 2009
Hmmm... I've been playing around a little, and i have moved the initializing of the second frame (the CtlPanel code block) into the same block that initalizes the first frame. Yet, the second does not show up.
It's the same, when I run the program from cmd (not in the jar just from .class file) works just fine, but if i double click the .jar file, only one frame shows up.
I did find out something interesting, lets call the first frame frame1 and the second frame2, if i do like this:
it shows omly frame1, but if i do this:
It shows nothing!? Thread keeps running, no exeptions and no frames???
Is there something you can do from a class, that can't be done from .jar files? I'm thinking that perhaps JVM will not allow mulipte JFrames showing up quikly after each other to prevent those anoying applictions that opens 100 frames in a second?