Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-09-2008, 03:19 AM
bshak1's Avatar
Member
 
Join Date: Sep 2008
Posts: 5
Rep Power: 0
bshak1 is on a distinguished road
Send a message via AIM to bshak1 Send a message via MSN to bshak1 Send a message via Yahoo to bshak1
Default *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,
bshak1

Last edited by bshak1; 09-09-2008 at 03:20 AM. Reason: Grammatical Error
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 09-09-2008, 03:25 AM
Fubarable's Avatar
Moderator
 
Join Date: Jun 2008
Posts: 6,463
Rep Power: 8
Fubarable is on a distinguished road
Default
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!
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 09-09-2008, 03:33 AM
Norm's Avatar
Senior Member
 
Join Date: Jun 2008
Location: SouthWest Missouri, USA
Posts: 2,229
Rep Power: 4
Norm is on a distinguished road
Default
Start with a simple program vs so many complications.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 09-09-2008, 03:37 AM
bshak1's Avatar
Member
 
Join Date: Sep 2008
Posts: 5
Rep Power: 0
bshak1 is on a distinguished road
Send a message via AIM to bshak1 Send a message via MSN to bshak1 Send a message via Yahoo to bshak1
Default
Thanks! That was really helpful!
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 09-09-2008, 03:38 AM
bshak1's Avatar
Member
 
Join Date: Sep 2008
Posts: 5
Rep Power: 0
bshak1 is on a distinguished road
Send a message via AIM to bshak1 Send a message via MSN to bshak1 Send a message via Yahoo to bshak1
Default
btw that's not my first program (but one of my first so I should slow down a bit)....
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 09-09-2008, 03:40 AM
Fubarable's Avatar
Moderator
 
Join Date: Jun 2008
Posts: 6,463
Rep Power: 8
Fubarable is on a distinguished road
Default
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.
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 09-09-2008, 04:38 AM
Member
 
Join Date: Apr 2008
Posts: 42
Rep Power: 0
pheonix is on a distinguished road
Default
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 ^^
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Questions About JSP? mtz1406 JavaServer Pages (JSP) and JSTL 2 08-19-2008 08:56 PM
Stuck on Two Questions, Please Help sylo18 New To Java 5 03-11-2008 02:03 AM
Just a Few Questions pringle New To Java 21 01-09-2008 07:21 PM
questions Gilgamesh New To Java 3 11-28-2007 12:18 AM
3 Questions hiranya AWT / Swing 4 11-14-2007 05:57 AM


All times are GMT +2. The time now is 07:53 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org