Results 1 to 2 of 2
  1. #1
    tharpa is offline Member
    Join Date
    Nov 2013
    Posts
    19
    Rep Power
    0

    Default Need only one instance

    Here's the situation before I inherited the project: There was an applet with a browse button. There was also another button that was not part of the applet. Clicking on the button launched a process with the selected path as a parameter.

    Here's the situation now: I added a set of radio buttons to the applet. Selecting a radio button populates a variable with the selection. However, I have discovered that clicking on the button (which is not part of the applet) now launches another instance of the applet, so that the radio selection is not preserved.

    What is the best and shortest way to preserve the value of the original radio button selection?

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,143
    Rep Power
    14

    Default Re: Need only one instance

    Without seeing an MCVE, it's going to be pretty hard to help you.
    How to Ask Questions the Smart Way
    Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
    Static Void Games forum - Come say hello!

Similar Threads

  1. Replies: 1
    Last Post: 04-21-2012, 06:03 PM
  2. object and instance
    By anurag in forum New To Java
    Replies: 1
    Last Post: 05-14-2010, 08:51 PM
  3. Find instance that owns instance?
    By Addez in forum New To Java
    Replies: 2
    Last Post: 04-04-2010, 03:36 PM
  4. New Instance for SWT
    By srinivasa_v in forum SWT / JFace
    Replies: 1
    Last Post: 08-08-2007, 01:02 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
  •