I found it :)
.setLocationRelativeTo(null);
Makes it centered.
Type: Posts; User: Hallowed
I found it :)
.setLocationRelativeTo(null);
Makes it centered.
I looked and I found CENTER_ALIGNMENT
here: JDialog (Java Platform SE 6)
well it says this anyway:
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT,...
Do you know of a way to make these center in the screen when they are first loaded?
Wow it works! =D and it runs a lot smoother!
Thanks so much for showing me that :)
Yea true. I will try the dialog boxes, and see if it doesn't freeze anymore.
Well I haven't heard of or seen JDialog before. But I tried the cod you provided in the program, and it works, except that the dialogbox wont let me work with the other jframes I already made.. It...
Yes, a modal dialog windows would works just fine. But they are so ugly and unattractive with so minimal customization that it kind of defeats the point of making a GUI in the first place. :( Plus...
Also, I'd really like to know how to make the other frames disappear once I've collected the Users response. Any ideas how to set it up like this?
Source
Alrighty first off here is this for fun: http://i51.tinypic.com/nb25xv.jpg
Anyway here is how the program flows:
The user will first be given an option of what to do: Login.java ->...
NewCheckInfo is called near the beginning of CheckInfo... Oh i forgot i changed it just to test something. I told it to call the login stuff again in CheckInfo lines 29-32. Before I did that it use...
It heads over to CheckInfo, there it sees that it needs more info so it loads up NewCheckInfo class. But that class just freezes. I added println statements like you said and it will go until the end...
Sorry here is the source
Source
I have no idea if I'm setting this up 'properly' and I can't figure out why after you login it wont load the next window. It's just white on my computer. =/
As far...
Yup. Look at the link I posted above its a jar file with working so far.
Oh and how would I specifically exit a method like the one that called the GUI Without coming to the actual end of the method }?
Cause as far as I can tell, if a method calls a method (say method1...
hmm.. well wont this change the user response like i want? without listeners? because the JVM definitely isn't stopping the rest of my program while its displaying this GUI.
public void...
1. yes of course :) I'm just trying to switch it over to a gui
2. will putting in a listener stop the rest of the program from running until it gets a response? or do I need to loop it in the...
So I'm using the code below to to make a frame with radio buttons and what not. I've pretty much just modeled this after some code in my programming book so it looks weird. =/
I've implemented this...