JMenuItems are selected by default

When I run my application and click on the Menu items, My JMenuItems are shown as selected. Once I hover the mouse on each menu item, they get de-selected after that they work normally. That is, only the menu item that gets the mouse on it gets selected. What is the problem, I checked up my code I see nothing wrong with it. tnx for any idea u may have

I think you want me to elaborate the question here it is.
I have a JMenu named 'File'. I have many JMenuItems under the 'File' JMenu. When I click on the 'File' JMenu, I see all the JMenuItems. And all of them are selected! Here is how I implemented the JMenuItems
public class NewFile extends JMenuItem{      //the other menu items are implemented in a similar way
     public NewFile(String str){
          super(str);
          setArmed(true);
          addActionListener(
               new ActionListener(){
                    public void actionPerformed(ActionEvent e){
}I then added an instance of the FileMenuItem to FileMenu in this way
class FileMenu extends JMenu{
     private NewFile newFile;     
     public FileMenu(String str){
          super(str);          
          newFile = new NewFile("New");
          openFile = new OpenFile("Open");
          closeFile = new CloseFile("Close");
          saveFile = new SaveFile("Save");
          printFile = new PrintFile("Print");
          exitFile = new ExitFile("Exit");
          add(newFile);
          add(openFile);
          add(closeFile);
          addSeparator();
          add(saveFile);
          addSeparator();
          add(printFile);
          addSeparator();
          add(exitFile);
}I'm trying to make it work as follows. A JMenuItem should be selected only when I click on it!
Tnx

Similar Messages

  • Changing printing default so not all calendars are selected to print

    When I print with the new version of iCal, all calendars are selected to print by default. Under the "old" iCal (v.2.0.5) only the selected calendar (or calendars) are designated for printing. Is there a way to change the default in Leopard's iCal so that only the selected calendars print?
    I have nearly 30 calendars I manage (I know this is excessive but it is a reality in my job) and I generally print only one or two calendars together at a time.

    Looks like this is indeed a software bug. According to the iCal help:
    +By default, the calendars that are currently selected in the main iCal window will be printed. Selecting or deselecting calendars here doesn’t affect what’s checked in the main calendar view; it only affects what’s printed.+
    +If you select a calendar group, all calendars in the group are printed.+
    Please fix this!!

  • How can I select the default greeting for a voicemail for the iPhone 4s?

    I am wanting to set up the voicemail feature for my iPhone 4s. (I have had this phone for years but never enacted a voicemail!) However, I am having trouble. When I click on the phone settings in my phone, the only options I have in regards to voicemail is to set up or change the password. I am not given the option to set up a voicemail. Whenever I try to set up the voicemail by dialing *86, I am given only the options of changing my password or to set up a custom greeting. I am not able to select the default/standard greeting as it is not mentioned. I am wondering how I can go about this. I am not sure why I don't have the options already available in my phone automatically or why it is not provided as an option when I call to set it up.
    Any help with this?
    Thank you!!

    nnd217, Help is here! The 4S is a great device, sorry to learn that you are having trouble with setting up the VM default greeting. I should be able to shed some light on this situation. If you go to your phone icon, as if you were making a call, you should see the voicemail icon down at the bottom right. Once you select that, in the upper left corner there is an option that says Greeting, so ahead and select that. From there you have two choices, default and Customer. If you select default there will be a check mark in that box, then hit save. You should now have your default greeting in place. If you do not have that or continue to have issues with it, please let me know! Thanks!  ErinW_VZW Follow us on Twitter @VZWSupport If my response answered your question please click the "Correct Answer" button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

  • FREE check box in PO should be selected by default for specific material

    Hi All,
    We have a check box  FREE in PO creation - ME21N in the item row  which is selected when ever we want the vendor to supply those items as free.
    - I have a list ot items which are supplied freely by the vendor which I have to mention in the PO. My requirment is when ever the specific material is in the PO the FREE check box should be selected by default. Is it possible?
    Please advice.
    Thanks ,
    Vengal Rao.

    Hi Vengal Rao,
    I don't think there's such flag in the material master. As far as I know any material can be supplied either free or chargeable - the buyer has to choose the applicable option it in each specific PO.
    If however in your business case certain materials shall always be supplied as free, then you can use the BAdI that I mentioned above to analyse which material is being procured and set the FREE flag in the PO accordingly.
    BR
    Raf

  • ISE 1.3 Why are Windows endpoints defaulting to 802.1x machine authentication in wireless profile and not User or User&Computer

    We are running ISE 1.3 tied to AD with WLC 7.6.130.0.  Our ISE has a GoDaddy (none wildcard) certificate loaded for https and EAP.  We are just running PEAP.  We have a mix of IOS, Android, and Windows 7/8 devices.  IOS and Android devices can self create a wireless profile and after entering credentials can connect without issue.  Our Windows 7/8 devices, when auto creating a wireless profile are selecting 802.1x machine authentication instead of User authentication or the best option which is machine or user authentication.  This is problematic as we do allow for machine authentication but have an authorization rule limiting machine auth to domain controller and ISE connectivity only.  This is to allow domain Windows 7/8 devices to have domain connectivity prior to user sign-in but force user auth to get true network connectivity.  The problem is why are the Windows devices not auto setting to user authentication (as I think they did when we ran ISE1.2), or the best option which is to allow both types of authentication?  I have limited authentication protocols to just EAP CHAP and moved the machine auth profile to the bottom of the list.  Neither have helped.  I also notice that the Windows 7/8 endpoints have to say allow connectivity several times even though we are using a global and should be trusted certificate authority (probably a separate issue).
    Thank you for any help or ideas,

    When connecting a windows device to the ISE enabled SSID when there is not a saved wireless profile on that machine, it will connect and auto create the profile.  In that profile, 802.1x computer authentication option is chosen by windows.  That has to be changed to computer or user for the machine to function correctly on the network.
    On 1.2, this behavior was different.  The Windows device would auto select user authentication by default.  At other customer sites, windows devices auto select user authentication.  This of course needs  to be changed to user or computer in order to support machine auth, but at least the default behavior of user authentication would allow machines to get on the network and functional easily to begin with.

  • Printer install, test print ok, will not print anything else, cannot select as default printer

    Printer installs fine, test pages, alignment pages, colour print pages all test fine, they are selected to print from the option on control panel. Trying to print from any other program, the printer is not listed as an option. Going through control panel, try selecting it as default printer, following messge given :
    Operation could not be completed (error 0x00000709). Double check the printer name and make sure the printer is connected to the network.
    Printer connected via USB direct to my single laptop. Uninstalled and re installed, as per troubleshooting instuctions. Ran troubleshooting program and HP print and scan doctor.  Only info given was that it was not default printer, when asked to fix the problem it states it cannot.
    Had a previous HP printer scanner, all removed (it broke, hence the new one), never had a problem with the install, this new one is being a real pain, any help would be appreciated

    Hello again mattcpx ,
    I think what we are going to need to do is start right from scratch.  Seeing that the only printer listed is generic printer icon from Windows 7(This icon does nothing for the printer you have installed), we are going to uninstall your printer and do a proper re install.
    Lets start off by removing the usb cable from both the printer and from the computer and leave it disconnected until further notice. 
    The first link I have for you gives detailed instructions for Uninstalling the Printer Software.
    Once the uninstall is complete, please reboot the computer so that the changes take affect.
    When the computer is back on, disable any firewalls or anti virus protection that you may have running.
    Please make sure that you have the printer power cable connected directly to a wall outlet and not a power bar/strip. Here is a document that uses a LaserJet printer as an example but it is meant for HP products in general. Please click on the following link that explains the Issues when Connected to an Uninterruptible Power Supply/Power Strip/Surge Protector.
    Do a power cycle on the printer with the use of the on/off button.  This will do a semi power reset on the printer.
    The next step that we are going to take is to download and save the HP Officejet 4630 e-All-in-One Printer series Full Feature Software and Drivers to the desktop of the computer.  This will create a new icon on the computer and make the download easy to find.
    Double click on the new icon and follow the installation instructions.  The installation will prompt you when to connect the usb cable so please do NOT connect it before hand.
    Let me know how you make out.
    If the troubleshooting does not help resolve your issue, I would then suggest calling HP's Technical Support to see about further options for you. If you are calling within North America, the number is 1-800-474-6836 and for all other regions, click here: click here.
    Cheers, 
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

  • A checkbox in a loop must be selected by default

    Hi all,
    There are two lists of checkboxes (in a loop), and one of the checkboxes list in the loop must be selected by default. I am trying to put the value of the checkbox to true but it is yeilding bizzare results... one of them being the checkbox doesn't get deselected sometimes...
    Any help would be appreciated,
    Thanks,
    Deepu.

    Even i have the same problem. Unable to figure that out. I have these checkboxes inside a loop and the name of the checkbox is being constructed dynamically using the loopIndex as follows
    <SimpleTable>
    <Field Loop....>
    <Field name='tempFields.checkBox_4_$(loopIndex)'>
    <Display class='Checkbox' />
    <Default>
    <s>true</s>
    </Default>
    </Field>
    </End Field Loop>
    </SimpleTable>
    I am incrementing loopIndex by 1 for every iteration of the loop.
    If i change the checkBox field name to be static (Ex: tempFields.checkBox_4_test) the checkboxes are being checked when the page loads..
    Anybody any ideas as to why it is not working when using a dynamic field name.
    Thanks
    SJ

  • How can I make PLAY button be selected by default in top menu?

    Hi, I usually have the PLAY button and all the scene selection buttons show up in the same top menu on my DVD's. Is there a way to have the PLAY button be the one that is initially selected when the DVD starts up. In other words, I don't want people to have to scroll the various buttons on the menu to get to the PLAY button. I want it to be selected by default, so all they have to do is hit the PLAY button on their remote control to start the movie.
    Thanks, Bob

    I think Robert was referring to the triangular play button on the simulator control panel rather than the button on his menu marked 'Play'...
    Robert - the 'Enter' button (or your 'Return' key on your keyboard) are the only ways you'll get the simulator to begin to play your project. The Triangular play button is for when you are in a motion menu or track and you pause and re-start playback, and isn't used to select entries on the menu. When you start a track, note how the triangular play button becomes a pause button when the track starts running, and it is no longer greyed out... if you click it, you'll see the triangle return and also not be greyed out.

  • How can I make JSF checkboxes selected by default?

    Hi everyone,
    I have a problem in setting default value for checkboxes. I use them in a table. tableRowGroup's sourceData property is a list data provider. In the page bean I have the following code to select rows:
    private TableSelectPhaseListener tablePhaseListener = new TableSelectPhaseListener();
        public void setSelected(Object object) {
            RowKey rowKey = (RowKey)getValue("#{currentRow.tableRow}");
            if (rowKey != null) {
                tablePhaseListener.setSelected(rowKey, object);
        public Object getSelected(){
            RowKey rowKey = (RowKey)getValue("#{currentRow.tableRow}");
            return tablePhaseListener.getSelected(rowKey);
        public Object getSelectedValue() {
            RowKey rowKey = (RowKey)getValue("#{currentRow.tableRow}");
            return (rowKey != null) ? rowKey.getRowId() : null;
        public boolean getSelectedState() {
            RowKey rowKey = (RowKey)getValue("#{currentRow.tableRow}");
            return tablePhaseListener.isSelected(rowKey);
        }I received a list of objects from a service using list data provider and use checkboxes to select them. Then I get the selected checkboxes in the action method of the page bean using
    RowKey[] selectedRows = getTableRowGroup1().getSelectedRowKeys(); What I want to do is to set all the checkboxes as selected by default. Normally, this is performed by assigning the same values to selected and selectedValue properties of the checkbox component. But, in my case this is not applicable since we take advantage of getSelected() and getSelectedValue() methods in the pagebean. Properties of my checkbox component are as follows:
    <ui:checkbox binding="#{MyPage.checkBox1}"
                                                        id="checkBox1" selected="#{MyPage.selected}" selectedValue="#{MyPage.selectedValue}"/>I cannot assign same values to selected and selectedValue. Can anyone help me to make these checkboxes selected as it is rendered?

    Hi Fanado,
    In Finder, click once on an Excel document then Get Info (command i)
    Choose Open with: Numbers
    Then Change All... to make Numbers the app for all Excel documents.
    The same for Word and Powerpoint
    Regards,
    Ian.

  • IW31 how to set functional area as a default value?

    Dear all:
    Can anyone guide me, is any way to set "functional area" as a default value (t-code iw31 Additional Data -> Functional area)?
    Thanks in advance.

    Hello ,
    The standard funtionality is set to default the Functional Area from the Order Type.  I believe it is possible to change the default value for the Functional Area in Transaction KOT2. The PM order types should be selectable in this transaction.
    I hope this information has been helpful.
    Best Regards,
    Frank

  • Entries in T510 are not getting defaulted in IT0008

    Hi Experts,
    Entries maintined in T510  are not getting defaulted in IT0008.
    According to the wagetype model  (LGMST - Feature ) the wage types are defaulting accurately  but the amount is coming blank.
    Please advice.
    Regards,
    IFF

    V_T511 - Wage Type Characteristics maintian the indirect valuation model. Select the module variant as per ur req.
    V_T539A - Default Wage Types for Basic Pay
    LGMST - Feature
    V_T539J - Base Wage Type Valuation
    V_T7INA1 - Pay scale grouping for allowances
    V_T7INA3 - Associating pay parameters to pay scale grouping
    V_T7INB1 - Basic Wages
    V_T7INA5 - Wage type model for pay scale grouping for allowances
    V_T7INA9 - Reimbursement allowances perks - eligibility and calculation

  • Where are the Photoshop 'default' textures?

    Hi, I'm trying to complete a PS tutorial about making historical styled typography.  The tutorial is online at  www.tutorialhero.com.  The tutorial uses two textures which are 'DIRT' and  'ROCKWALL'  which it refers to as being found in,  "Default Photoshop Textures".  I can't find any 'default textures' and I've tried HELP and looked around on the web.  Are there any Default Textures in CS5 ? Anybody any ideas please?
    Gari

    You can use a pattern fill layer and select the Rock Patterns from the
    flyout menu.
    MTSTUNER

  • Default Parameters are no longer default

    Post Author: debmilner
    CA Forum: Migration to XI R2
    We used both 8.5 and version 9 to create several hundred reports, most with default parameters for the users.  With Crystal 11, the parameters are still availble, however they are no longer defaults, the user must select.  Since 11 does support default parameters (we are currently editing these several hundred reports to set the old default into the new default parameters field), is there an easier way than editing each report?

    Hi Ike,
    it's not a question of syntax. I used the ampersand for sure.
    the problem is the value for the lexical param at runtime. If I use the libs of patch 8488119 the ORA-ErrMessage is returned, if I use the default libs everything works as expected...

  • Feature Request: A way for edit-field text to not be selected by default.

    edit_field text is selected by default, which means as soon as the user starts typing, pre-existing content is wiped out - not cool...
    Thanks,
    Rob

    I've found a partial workaround to this: Once the dialog is showing, if the you first assign the empty string and then assigned the desired value:
    edit_field.value = ""
    edit_field.value = desiredValue
    then the contents of the field are not left selected.  This works when setting the contents from, say, the result of a button push, but I haven't figured out how to initially show the contents unselected.

  • Getting the first option selected by default in a dropdown

    Hi all,
    I am using a dropdown within a form. I am populating the dropdown using the values I retrieved from the database by making use of for loop. Now, I have to make the first option selected as default. Also, I have to make use of the value in the drop down to retrieve further data without calling the form handler.
    To be more clear, While displaying the page for the first time the first option should be shown as selected and the associated contents of the first option should be displayed by default.
    Please help me in this.

    I'm going to basically repeat the answer to your other question that you seem to be ignoring completely:
    What part are you having trouble with? reading out the resultset, or building the html code. Do you have anything coded yet.

Maybe you are looking for

  • How can I take text from a webpage that is in multiple rows and move it into a single row in Excel?

    I need help figuring out how to take data from internet pages and enter it into one single row in an excel, or numbers if that is the easier way to go.  I was also told access might be good to use.  Basically I am going to chamber of commerce page an

  • How to get .oce to talk to DAS & bring back data in Interactive Reporting?

    Hi Hyperion Experts, This is also a fairly basic question, I use Hyperion 9.3.1 and I have Shared Services, Workspace and Interactive Reporting Studio running on our Windows 2003 Server. My goal is to import a .bqy document I created in Interactive R

  • Evolution: hangs with glibc error

    Hi there, When writing new mail or checking mail (via IMAP), after a couple of minutes Evolution hangs with the following error code in the comand line: *** glibc detected *** free(): invalid pointer: 0x08ad8e40 *** The error persists with all users,

  • 10.6.5 update problems: my apps crashes on launch! :-(

    Hi, I just updated to 10.6.5 from 10.6.4 and after the update several applications fail to launch. When I start them, they immediately crash! For example these apps crash on each launch: iTunes, DVD Player, Front Row, Cyberduck, Spotify, Google Chrom

  • BP for Assets ????

    Hi All, Has anyone imported the BP for Assets in portal. I need to start with this, but am really stuck up how to go about it. Here are some issues. Please help. 1) Firstly the latest package available is BP for Assets 50.3_1.My portal is EP6 SP16. S