Results 1 to 7 of 7
  1. #1
    bshak1's Avatar
    bshak1 is offline Member
    Join Date
    Sep 2008
    Posts
    5
    Rep Power
    0

    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

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    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!

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,883
    Rep Power
    25

    Default

    Start with a simple program vs so many complications.

  4. #4
    bshak1's Avatar
    bshak1 is offline Member
    Join Date
    Sep 2008
    Posts
    5
    Rep Power
    0

    Default

    Thanks! That was really helpful!

  5. #5
    bshak1's Avatar
    bshak1 is offline Member
    Join Date
    Sep 2008
    Posts
    5
    Rep Power
    0

    Default

    btw that's not my first program (but one of my first so I should slow down a bit)....

  6. #6
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    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.

  7. #7
    pheonix is offline Member
    Join Date
    Apr 2008
    Posts
    42
    Rep Power
    0

    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 ^^

Similar Threads

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •