How do I keep file menu open after CheckBox has been selected?

The following represents a written code for a menu with checkboxes. I would like the menu to stay open after a check box has been selected. Does anyone have a suggested modification for this to occur?
Thanks,
JR
public class NewJFrame extends javax.swing.JFrame {
/** Creates new form NewJFrame */
public NewJFrame() {
initComponents();
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
jMenuBar1 = new javax.swing.JMenuBar();
jMenu1 = new javax.swing.JMenu();
jCheckBoxMenuItem1 = new javax.swing.JCheckBoxMenuItem();
jCheckBoxMenuItem2 = new javax.swing.JCheckBoxMenuItem();
jCheckBoxMenuItem3 = new javax.swing.JCheckBoxMenuItem();
jMenu2 = new javax.swing.JMenu();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jMenu1.setText("File");
jCheckBoxMenuItem1.setSelected(true);
jCheckBoxMenuItem1.setText("jCheckBoxMenuItem1");
jMenu1.add(jCheckBoxMenuItem1);
jCheckBoxMenuItem2.setSelected(true);
jCheckBoxMenuItem2.setText("jCheckBoxMenuItem2");
jMenu1.add(jCheckBoxMenuItem2);
jCheckBoxMenuItem3.setSelected(true);
jCheckBoxMenuItem3.setText("jCheckBoxMenuItem3");
jMenu1.add(jCheckBoxMenuItem3);
jMenuBar1.add(jMenu1);
jMenu2.setText("Edit");
jMenuBar1.add(jMenu2);
setJMenuBar(jMenuBar1);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 400, Short.MAX_VALUE)
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 279, Short.MAX_VALUE)
pack();
}// </editor-fold>
* @param args the command line arguments
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new NewJFrame().setVisible(true);
// Variables declaration - do not modify
private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItem1;
private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItem2;
private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItem3;
private javax.swing.JMenu jMenu1;
private javax.swing.JMenu jMenu2;
private javax.swing.JMenuBar jMenuBar1;
// End of variables declaration
}

Sorry Jack.
Here is the code so that it appears more readable whenever it gets moved.
public class NewJFrame extends javax.swing.JFrame {
    /** Creates new form NewJFrame */
    public NewJFrame() {
        initComponents();
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jCheckBoxMenuItem1 = new javax.swing.JCheckBoxMenuItem();
        jCheckBoxMenuItem2 = new javax.swing.JCheckBoxMenuItem();
        jCheckBoxMenuItem3 = new javax.swing.JCheckBoxMenuItem();
        jMenu2 = new javax.swing.JMenu();
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        jMenu1.setText("File");
        jCheckBoxMenuItem1.setSelected(true);
        jCheckBoxMenuItem1.setText("jCheckBoxMenuItem1");
        jMenu1.add(jCheckBoxMenuItem1);
        jCheckBoxMenuItem2.setSelected(true);
        jCheckBoxMenuItem2.setText("jCheckBoxMenuItem2");
        jMenu1.add(jCheckBoxMenuItem2);
        jCheckBoxMenuItem3.setSelected(true);
        jCheckBoxMenuItem3.setText("jCheckBoxMenuItem3");
        jMenu1.add(jCheckBoxMenuItem3);
        jMenuBar1.add(jMenu1);
        jMenu2.setText("Edit");
        jMenuBar1.add(jMenu2);
        setJMenuBar(jMenuBar1);
        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 400, Short.MAX_VALUE)
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 279, Short.MAX_VALUE)
        pack();
    }// </editor-fold>
    * @param args the command line arguments
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new NewJFrame().setVisible(true);
    // Variables declaration - do not modify
    private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItem1;
    private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItem2;
    private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItem3;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenuBar jMenuBar1;
    // End of variables declaration
}

Similar Messages

  • How to add DNS server to CER after Server has been Built

    How to add DNS server to CER after Server has been Built?
    The reason why, the CER 1.3.1 that I upgrade to 7.1, had the switch list by hostname,
    The install of 1.3.1 had the LMHOST file editted with all the switch names.
    Is there such thing as a host file on 7.1 CER? If not, that is where I need to add the DNS server now. As they will have to add the switch hostnames to the DNS server.
    Thanks
    Kallol

    I found where to set the DNS via CLI...
    admin:set network dns
          set network dns options
          set network dns primary
          set network dns secondary
    Also it requires me to configure the domain name.
    set network domain name

  • HT1438 how can you unlock an iphone 4 after is has been disabled?

    how can you unlock an iphone 4 after is has been disabled?

    Once the Device is asking to be Restored with iTunes... it is too late to save anything... and you must continue with the Recovery...
    See Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...  Be sure to Follow ALL the Steps...
         After you have Recovered your Device...
    Re-Sync your Content or Restore from the most recent Backup...
    Restore from Backup  >  http://support.apple.com/kb/ht1766

  • Possible2 keep Import pane open after import has started?(prevent closing)

    Hi all,
    I am currently in the process of consolidating all my images into Aperture 2. I have a lot of "old images" in various folders on a separate harddisk, and I want to bring them into various existing Aperture Projects.
    The "issue" I have, is that whilst I could just drag a (physical) folder into Aperture containing sub-folders, and these would auto-generate albums, I do want to take advantage of adding keywords and basic metadata for the individual import sessions, i.e. use the Import dialog in Aperture 2.
    When you again and again have to wait for the import dialog to do it's fancy animation, it becomes a little bothering - any way to tick a box and say "keep the thing open"?
    I might be missing something very obvious, but searching the forums and the Aperture 2 help files did not really point me to anything...
    Thanks!
    Jonas

    You can just import import all your images from your harddisk in one single import batch using "Import Folders" and then let Aperture create an Album for each Folder.
    When the import is finished then you just click on each Album and "Select All" and add keywords from either the "Keywords HUD" or the "Keywords Control". You will hereby also be able to take advantage of your keyword hierarcy. This is much faster than applying keywords Folder by Folder on import.
    Import all your images into one new Project and then move them to the respective existing Projets afterwards. Same goes for your new Albums to existing Albums. Takes only seconds.
    Karsten

  • JMenu:How to keep popup menu open after clicking disabled JMenuItem

    A menu usually shows all options, even those that are for some reason disabled. When clicking on a disabled option, nothing should happen. Unfortunately, the JMenu does not follow this philosophy: clicking on a disabled option fires no action, but the popup menu closes. It is a minor problem but I prefer the standard behaviour. Any ideas ?
    Thanks
    Cyril Mrazek

    I am also having the same problem, if any one find out solution for this mail me . My mail Id is [email protected]

  • How do I keep Finder Tabs open after a restart?

    After opening several Tabs in Finder, I find they have closed after I´ve shut down & then (Later), restart my Mac Mini.
    The Safari tabs stay open.
    Cant find anything in `Finder Preferences´ or in `System Preferences´.
    Anyone know???

    Thanks Carolyn,
    will try that!
    Please don´t´think me a complete fool, but wheredo I enter the search under `Go´?
    I need to look for & Delete:
    ~/Library/Saved Application State/com.apple.finder.savedState
    And:
    Your finder app may be configured NOT to restore the windows. Try this:
    defaults write com.apple.finder NSQuitAlwaysKeepsWindows -bool true
    I´m afraid I dont know the commands to get to where I need to do the above!
    Can you help me one last time please?
    Thanks in advance for your time.
    AMI.

  • Alarm reminder keeps on appearing months after event has been deleted...!!!

    Can anyone help me? I have got a reminder from 11th November 2005 that keeps on popping up on my screen, even though I have cancelled it months ago.
    When I hit the cancel button, the reminder disappears, but will then re-appear 24 hours later. This happens every day.
    If I hit the magnifying glass button, to take me to the event itself, then iCal comes to the front, but the date it highlights is 24th November 2005, NOT 11th.
    And when I look at the events on the 11th, the one I am reminded about is not even there. I deleted it in the hope that the reminder would stop nagging me.
    Curiously enough, even though I have all my iCal events and reminders synced up with my phone, this reminder does NOT appear on my phone, even though all other events do - even past events that I have set to remind me at a later date.
    How can I get rid of this reminder once and for all, but still keep the rest of my events and reminders intact? ie: I don't want to clear everything and start again.

    Yes - the necessary information is stored in the various ics files. But if in doubt, drag them to the desktop rather than deleting them - you can always put them back. I am not sure if this will solve the problem, but it seems a good place to start. If it doesn't work, we'll have to go digging in the calendar files. It could of course be related to syncing - I reckon most of the world's problems are
    AK

  • Firefox constantly being unable to open after it has been closed and requires a machine restart

    I have used all of the solutions published and consistently find that I close Firefox, go to reopen it and I get the two standard messages:
    Firefox is already running, but is not responding. The old Firefox process must be closed to open a new window.
    Then:
    Your Firefox profile cannot be loaded. It may be missing or inaccessible.
    Task manager cannot close the application
    the application is not visible in any session
    I have followed all the posted solutions
    I have uninstalled Firefox, shut down, rebooted. shut down again, rebooted, then downloaded a fresh copy of Firefox, run updates, got the messages that says it is fully up to date, and I am still encountering the problem.
    After three days of tackling the issue and countless hours, I'm ready to move to another browser, but do not want to.

    Typically when we see the 'Firefox Process' refusing to close the issue is with a misbehaving plugin, add-on, or toolbar component. I will post a link to the Mozilla Knowledge Base about creating a test profile:
    https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles
    Follow the instructions on that page to create a brand new profile for your browser, we will use this to confirm the source of the issues you are having. Use this new profile to browse briefly, then close Firefox and confirm if the issue is still giving you trouble. With the new profile the Firefox Process should end without any issues.
    If this new profile is not having issues, then your problem is most likely with one or more plugins or add-ons installed on your original user profile. If you find that the new profile has fixed your issues, then you can follow the steps labelled under "Removing a profile" to delete the files that were causing issues with your browser. Removing a profile can permanently delete files, so make sure to confirm that the new profile has solved all of your issues before removing a previous profile.

  • How do I ad pop up text to an image in the lightbox widget after it has been selected?

    Hi there,
    My client, a photographer, wants to ad text to some of the images in his gallery on the website I have built him in Adobe Muse, but he wants people to click/hover over an "info button" before they get to see the text as he likes the idea of user interaction. Think is I can't seem to place the tool tip widget inside the lightbox of my image. Do any of you have a way of doing this? My knowledge of coding is very limited and I've tried researching other ideas but have come out dry.
    I posted this question a while back but didn't get any responses, and I am getting quite frustrated with this as it is the only thing keeping me from completing a job, as my client insists on having this functionality!
    Please Help

    Try to use "Lightbox Display" in "Widget Library->Compositions". "Widget Library->Slideshows" can only contain images.
    - Abhishek Maurya

  • HT204266 How does one find out how much one paid for an app after it has been installed?

    It would be far more useful if the word INSTALLED also dispayed either the word FREE or the
    amount paid for the app; e.g. INSTALLED FREE or INSTALLED $2.99.   Some of the free apps display
    the word Free within the app icon, but not all free apps do so.

    Try Account Information on iTunes, then Purchase History.

  • Removing a speed dial after it has been setup

    How do I remove a speed dial after it has been set ?

    Open speed dial page and click the - icon to right of number.
    + +

  • After printing to file, how do I keep document from opening?

    I installed new reader-then uninstalled it. Gone back to Reader 11. Document printed to file is automatically opening. How do I keep it from opening?

    Do a malware check with some malware scanning programs on the Windows computer.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br /><br />
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    *http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • How to make pdf file auto open with adobe reader after downloaded

    how to make pdf file auto open with adobe reader after downloaded

    I note from your system details that you have the plugin for adobe pdf s so I would have expected the files should open in firefox '''without''' you needing to explicitly download them.
    Once the files are open in firefox, you will also get the option to save them permanently to a location on your computer. If you wish I suppose you could set the file type pdf to be associated with and be opened by firefox instead of with the Adobe Acrobat Reader, but that would just seem to be an additional complexity.

  • How do I keep URLs from printing after Events?

    Version 3.0.8 (1287) - How do I keep URLs from printing after Events?

    Open the Pages preferences > uncheck Automatic detect email and web addresses

  • How can I get files to open automatically upon download?

    I would like files I download to open automatically and for the download window to be turned off. I know how to turn off the download window, but cannot get files to automatically download.

    Hi JJMack. Thanks for getting back to me.
    I think I've created confusion about what I want. All I want is to end up with a file that is flattened so that I can save it as a tiff without getting a warning that it contains layers. Please correct me if I’m wrong but I’ve always assumed I should always flatten a file before I save it as a tiff unless I specifically want to retain layers or transparency. I’m only talking here of files that open with a single layer: ie. Layer 1. I assume that if I don’t flatten such files the resultant files will be unnecessarily big?
    The only reason I keep saying I want a Background layer is that I know that a flattened file will only have a Background layer. I don’t have any desire for a Background layer per se. I certainly don’t want to add extra layers - quite the opposite.
    So perhaps the question I should have asked should have been:
    How can I get files to open 'ready-flattened' by default so I can save them directly to tiff without having to manually flatten them every time?
    Cheers

Maybe you are looking for

  • A bit more pondering...

    Here's a reply from a previous post of mine that has now been locked. "Well it does (and not so well). You can export files to any output color space meaning any CMYK profile you have installed on your Mac. Not different from Photoshop expect you hav

  • Linking country specific COA's to operational COA

    Hi all I have the following requirement I have 3 company codes all in different countries.I am using one operational COA and two country specific COA's.My requirement is to link the other two country COA's to my operational COA. Please correct me on

  • How can I utilize the feature "Project Proposal Workflow"?

    Hello, I am looking for any reference shows how can I utilize the feature "Project Proposal Workflow" in creating a Demand Managment process in Project Server 2013. Thanks

  • Running web galleries automatically in web page

    I'm trying to use the web gallery automation from CS2 to add a photo gallery to my website. I've figured out how to get a link to the gallery's index.html file into my page, but how do I get it to just show up within the page and run when someone cli

  • Can't disable Java

    I recently installed Photoshop 5.1 on my MacBook Air (OSX Mavericks10.9.4). When I started up Photoshop I got the well-known Software update message "to open Adobe Photoshop CS5.1 app, you need to install a Java SE 6 runtime. Would you like to instal