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

    Lightbulb Just a friendly hello and first question

    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 one I can think of for now ^_^.

    :confused:Your confused new fellow Java programmer:confused:
    Last edited by bshak1; 09-09-2008 at 02:18 AM. Reason: Adding question

  2. #2
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Location
    Southwest
    Posts
    1,018
    Rep Power
    8

    Post

    Quote Originally Posted by bshak1 View Post
    ...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.
    I have seen sample programs doing this with applets. Do not know the code but in general we would have each applet as thread within the process space of a single code block. In general, file-scope classes are visible if a reference is passed in the constructor parameter list or method call, but the general practice is to put each class in it's own file - all files in a directory are visible at compile time. Namespaces are called imports, where perl might use or c might include, we import.

    Quote Originally Posted by bshak1 View Post
    What are some uses for having the GUI set to invisible?
    Have program appear to create mulitple interface, moderately advanced technique generally, study of the libraries will probably get more mileage. We have some remarkably sophisticated libs, really remarkable. User interface is generally KISS.

    Quote Originally Posted by bshak1 View Post
    When working with GUI Windows, what are the other commands (and uses for the commands) other than setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE)?
    A rich method call set provides remarkable capacity. You will have to absorb some of it. What type of work have you done, you are obviously of informed vocatulary.

    Quote Originally Posted by bshak1 View Post
    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?
    EXIT ON CLOSE is somewhat akin to exiting a script, what it does is cause the invoking thread on the JVM to exit, there are some set_handler() calls and so on, but exit on close is exiting the engine that is driving the windows.
    Introduction to Programming Using Java.
    Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Hi,

    Welcome to our community.

    Please don't post any questions on Introductions sub-forum. Choose the right place to discuss technical stuff. Please read our FAQ page as well. It might be helpful to you further clarification on how to deal with our community.

    Since this is not related to this forum and also I see that quite similar question discuss by you in another forum, I have to close this thread. If you need any help PM me. I'll help you.

Similar Threads

  1. Question mark colon operator question
    By orchid in forum Advanced Java
    Replies: 9
    Last Post: 12-19-2010, 08:49 AM
  2. Question
    By ayoood in forum New To Java
    Replies: 16
    Last Post: 05-21-2008, 02:23 PM
  3. Need help on this question
    By Deon in forum New To Java
    Replies: 3
    Last Post: 01-27-2008, 03:58 PM
  4. P~ 0.9 : Java-friendly scripting with powerful regex
    By p7eregex in forum Java Software
    Replies: 0
    Last Post: 12-17-2007, 08:10 PM
  5. Friendly methods
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-12-2007, 10:22 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
  •