Results 1 to 7 of 7
  1. #1
    rcasha is offline Member
    Join Date
    Jan 2011
    Posts
    3
    Rep Power
    0

    Question How to determine whether Swing has been initialised?

    I need a way to determine whether Swing has been initialised (ie, whether the code is running in the context of a Swing application as opposed to console), WITHOUT causing Swing to initialise itself if not. This is to determine eg. whether it is appropriate to use SwingUtilities.invokeLater as opposed to a normal executor to run some code.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,458
    Rep Power
    20

  3. #3
    rcasha is offline Member
    Join Date
    Jan 2011
    Posts
    3
    Rep Power
    0

    Default

    Last I checked, java-forums.org was not oracle.com.

    Stop trolling

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,458
    Rep Power
    20

    Default

    Last I checked, cross posting wasn't multi-posting.

    db

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

    Default

    There's nothing wrong with cross-posting, but it is considered poor form to cross-post in any programming forum without notifying all involved threads. This is plain common courtesy.

  6. #6
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,458
    Rep Power
    20

    Default

    This is plain common courtesy.
    Not a strong point of our OP, as evinced in the remarks posted on the other forum.

    db

  7. #7
    rcasha is offline Member
    Join Date
    Jan 2011
    Posts
    3
    Rep Power
    0

    Default

    Quote Originally Posted by Fubarable View Post
    There's nothing wrong with cross-posting, but it is considered poor form to cross-post in any programming forum without notifying all involved threads. This is plain common courtesy.
    I had no idea that the two sites were frequented by the same people, nor whether I would get a solution in either one. I occasionally post a query on more than one site, then if a solution is offered on one of them, I post it on the other in case someone else comes upon the question. I generally consider cross-posting to mean creating multiple threads in different messageboards on the SAME site.

Similar Threads

  1. How to determine CPU usage using Java?????
    By JavaEmpires in forum New To Java
    Replies: 5
    Last Post: 03-16-2011, 05:49 AM
  2. How can I determine the type of an input
    By QJack in forum New To Java
    Replies: 4
    Last Post: 03-18-2010, 11:22 AM
  3. applets are not initialised
    By sonalih in forum Java Applets
    Replies: 2
    Last Post: 08-10-2009, 09:24 AM
  4. Using if statements to determine integers.
    By IYIaster in forum New To Java
    Replies: 5
    Last Post: 07-31-2009, 07:27 PM
  5. how to determine the primary key
    By osval in forum JDBC
    Replies: 1
    Last Post: 08-07-2007, 03:31 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
  •