Results 1 to 7 of 7
- 09-09-2008, 02:19 AM #1
*mostly* GUI questions from a JavaNewb
Hey, all. I'm new here and hoping to improve my Java skills (I am very new).
Few questions:
Trying to create multiple GUI Windows with one program. How can I set a GUI window to appear in a different part of the screen. I am trying to create three at once.
What are some uses for having the GUI set to invisible?
When working with GUI Windows, what are the other commands (and uses for the commands) other than setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE)?
Also, when working with multiple (such as with 4 or 5) GUI windows, when I close one by clicking the X, they all close. Is there a way to remedy this?
I'm sure I'll think of more, but those are the ones I can think of for now ^_^.
Your confused new fellow Java programmer,
bshak1Last edited by bshak1; 09-09-2008 at 02:20 AM. Reason: Grammatical Error
-
Rather than trying to stumble through this blindly, run, don't walk to the Sun Swing tutorials and work your way through the tutorials from the beginning. You can't use trial and error to learn something as complex as Swing.
Good luck!
- 09-09-2008, 02:33 AM #3
Start with a simple program vs so many complications.
- 09-09-2008, 02:37 AM #4
Thanks! That was really helpful!
- 09-09-2008, 02:38 AM #5
btw that's not my first program (but one of my first so I should slow down a bit)....
-
It's not just slowing down, it's that you need to take steps to learn it correctly from the get-go, else you'll be spending a lot of time unlearning bad habits. I speak from experience.
- 09-09-2008, 03:38 AM #7
Member
- Join Date
- Apr 2008
- Posts
- 42
- Rep Power
- 0
Hey :) .
The guys are write. With Java DON'T RUSH. If you do it gets waaaaaaaaayyyyy complicated. A good way to start is the usual " first words of a programer". Creating a Java program that gives you the output " Hello World". I know you already made a couple of programs, but if you take it a bit easy then what your going for later on will be reaaallly easy. Start with simple things first. Strings, loops, if staments then arrays 2D then eventually 3D, 4D... etc . Try making extremely simple programs using these things then move on to methods and its parameters then classes and its parameters ( mostly will help for organization). I recommend using JCreator at first.
If by any chance you didn't understand what the meanings of Strings, arrays, loops....etc then you are going to get wayyy to complicated.
Just in case you need an example with JCreator and how to program:
Remember:
- Java is case sensitive ( capital letters and small letters mean different things, you have to be careful HOW you type)
- Don't worry too much about what does public class or public static void...etc means at the time being. You only ned to start in a simple way.
Public class FirstProg{
Public Static void main ( String[] args){
// Write your program here.
}
}
By any chance you already know all this I'm sorry :P but I don't know what level you programer you are and judging by the comments. I just gave a quick tip and help JUST IN CASE you didn't know all this.
Sorry for talking a lot ^^
Similar Threads
-
Questions About JSP?
By mtz1406 in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 08-19-2008, 07:56 PM -
Stuck on Two Questions, Please Help
By sylo18 in forum New To JavaReplies: 5Last Post: 03-11-2008, 01:03 AM -
Just a Few Questions
By pringle in forum New To JavaReplies: 21Last Post: 01-09-2008, 06:21 PM -
questions
By Gilgamesh in forum New To JavaReplies: 3Last Post: 11-27-2007, 11:18 PM -
3 Questions
By hiranya in forum AWT / SwingReplies: 4Last Post: 11-14-2007, 04:57 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks