Menu Bar with Menu & Menu Item Not Showing Up

I can't see my menu bar. What is it that I'm doing wrong?
public class menuSample extends JFrame
{     JPanel contentPane;      
     JMenuBar menuBar;      
     JMenu testMenu;
     JMenuItem testMenuItem;
     public menuSample()
     {     super();
          initialize();
     private void initialize()
     {     contentPane = (JPanel)this.getContentPane();
          menuBar = new JMenuBar();                     
          testMenu = new JMenu();           
          testMenuItem = new JMenuItem("Test Menu Item");
testMenu.add(testMenuItem);
          menuBar.add(testMenu);
          this.setContentPane(contentPane);
          this.setJMenuBar(menuBar);
          this.setSize(new Dimension(500,500));
          this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
          this.setVisible(true);
     public static void main (String[] args)
     {     new menuSample();      
}

it's there, just very small. Try this line instead of what you have:
testMenu = new JMenu("test menu");

Similar Messages

  • Menu bar icons vanished and iPod not showing up in iTunes anymore

    All menu bar icons on the right side (keyboard, clock, battery) vanished.
    It's not possible to get them back by mark their visability in the system configuration. The system just ignores any attempt to do that (I can mark the check box, but nothing appears on the menu bar; after leaving and returning to the panel, the mark has gone).
    Besides of that, my iPod doesn't show up in iTunes anymore (but does on the desktop).
    My laptop may be physically damaged as it fell down to the floor a few days ago.
    Can anybody help?

    Welcome To Discussions Daniel Lerch!
    Create a new Admin user account, and see if the same problem occurs while logged in to that account.
    Have you run the Apple Hardware Test and also Repair Disk?
    THESE ARE THE STEPS FOR USING DISK UTILITY TO REPAIR YOUR HD
    1.Insert the System Install disk, Mac OS X CD-ROM disk, or Restore DVD disk, then restart the computer while holding the C key. Use the System disk, of the OS, that is currently installed.
    2.Once started up from CD or DVD, choose Disk Utility from the Installer contextual menu for Panther, or Utilities for Tiger, on the Menubar at the top of the screen.
    Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from disc to access Disk Utility.
    3.Click the First Aid tab.
    4.Click the disclosure triangle to the left of the hard drive icon to display the names of your hard disk volumes and partitions.
    5.Select your Mac OS X volume, if necessary.
    6.Click Repair. If DU reports errors it has fixed, then re-run Repair Disk until no errors are reported.
    7.When finished, select Quit Disk Utility from the Installer menu.
    8.Select Quit Installer from the Installer menu.
    9.In the resulting pop-up window, choose restart.
    10.After the computer has restarted, you can eject the CD.
    Repeat steps 5 & 6, but select the Hard Drive this time. It's usually the first listed with the manufacturer's model number.
    Make note of the S.M.A.R.T. status.
    ali b

  • In web console Attestation menu item not showing,after OIM 9.1.0.1 install

    In web console Attestationmenu item not showing,after OIM 9.1.0.1 installation
    Version: 9.1.0.1860.16
    Build 1860.16
    thanks.

    Choose option Oracle Identity Manager with Audit and Compliance Module during installation.
    INIYA.

  • Linking Menu Bar with views in the same window

    Hi everyone,
    I have a menu bar in a view and I would like to link each one of the elements with other view through an URL. The problem when I do this is that the view appears in a different window and I want that appears in the same window. Because if it doesn't, I'm going to have one window for each element of the menu bar :s
    Thanks in advance!

    Hi,
    As per my understanding, your requriement is: (Correct me if i am wrong).
    You have one default View and Window. In the View you are displaying the menu bar. Each menu bar item contails one specific URL. When user clicks on any of the menu bar item you need to open the corresponding URL in the same View.
    1)  Take the view set with two rows. In first row add the default MenuView (menu bar) and in second row embed another View (For example: ResultView).
    2). In RestultView create IFrame UI element (Note : it is deprecated). And bind one cotext attribute to url.
    Map this context attribute to MenuView also throug the Component Controller.
    3). Create inbound plug to MenuView and outbound plug to ResultView. On click on any of the menubar items change the URL in the context attribute and then navigate to the ResultView through plugs.
    Regards,
    Charan

  • Horizontal Spry Menu Bar with Horizontal Sub Menu

    I have created a horizontal menu bar with only one main menu item leading to a sub menu. I would like this sub menu to display horizontally also, instead of vertically as added by default.
    I am relatively new to dreamweaver and would appreciate any help possible.

    Came across the fix by accident thru extensions in menu bar,
    and choice of cursor for each section. Feeling happy! Happy New
    Year everyone.

  • Menu bar pop-up menu help

    i have created a menu bar, with an image. when you place the mouse over the image a pop-up menu apperas with 4 options (about us, contact, services, projects) is there a way i can have a text box open that contains the proper information for each one open when you click on it and then close when you click on a different one. also after a given amout of time have the box disapper like a pop up menu.
    i have cs5, i dont know much about webdesign so if you could plesae give detailed suggestions. thanks

    Tht's what's known in the trade as mystery meat navigation. If the viewer doesn't mouse over the image, they will never find the navigation. To be practical and usable by most people, top level navigation elements need be visible at all times. You will not be able to do what you want with pop-up memus in Fireworks anyway. Use Fireworks for creating the images. Use Dreamweaver for writing the code.

  • Custom tuning menu, menu bar, and contextual menu transparency levels?

    I'm not talking about simply toggling menu bar transparency (which you can already do in 10.5.5 using System Preferences), but I'd like having the chance to tune transparency level for different objects.
    Is there any way to tune:
    1) menu
    2) menu bar
    3) contextual menu
    transparency level?
    (possibly individually for each of the three categories)
    This would be cool.

    You can't - all the template navigation menus are not made to be changed.
    If you want anything different, then you need to open the Inspector and go to Page and then check the box where it says 'hide navigation menu' and then you can build your own text based menu by using text boxes or shapes etc. and then use hyperlink to link to your pages. In this way you have full control over colour and placement.
    The template navigation menus were not made to be changed.

  • SRM 7.0 - Unconfirmed PO limit items not showing up when creating Invoice

    Hi Guys,
    For PO standard items, when creating an invoice and is unconfirmed, these items still show up in the invoice screen and the invoice gets created with the status 'Waiting for preceding document'. For unconfirmed limit items, these items do not show up at all in the creation of the invoice and displays an error. My question is how will I make the unconfirmed limit items scenario work just like the standard items scenario whereby instead of the unconfirmed limit items not showing up and generating an error, they will show up and have the invoice created with the status 'Waiting for preceding document'?
    Thanks in advance!

    Is this thread still valid? If not, please close the thread.
    If so, as no response has been submitted, please rephrase your question and/or provide further information to describe your requirement.
    Thanks
    Jason
    SDN SRM Moderator Team

  • How to make preflight profile witch find out if exist in document spot color with name "CutContour", if not show allert,  I try many combinations but nothing works

    How to make preflight profile witch find out if exist in document spot color with name "CutContour", if not show allert,  I try many combinations but nothing works

    Thanks very much for your help, but I'm still overlooking something. I double checked to make sure that I did not have a hidden .txt file extention. I then decided to abandon the lock on preferences idea until I get it working. I converted my mozilla.cfg file back to plain text. I made sure I do not have an extra blank line at the end of each file. The syntax looks good, as far as I can tell. I'll copy and paste what I have so far. Did I have the file locations correct posted above? Also, if you feel i can delete some lines of text in my mozilla.cfg file I'll be happy to do so.
    mozilla.cfg
    <pre><nowiki>//
    pref("privacy.sanitize.sanitizeOnShutdown", true);
    pref("privacy.sanitize.promptOnSanitize", false);
    pref("browser.rights.override", true);
    pref(“app.update.auto”, false);
    pref(“extensions.blocklist.enabled”, false);
    pref(“extensions.shownselectionUI”, true);
    pref(“browser.shell.checkDefaultBrowser”, false);
    pref(“toolkit.telemetry.enabled”, false);
    pref(“toolkit.telemetry.prompted”, 2);
    pref(“toolkit.telemetry.rejected”, true);
    pref(“app.update.auto”, false);
    pref(“browser.download.useDownloadDir”, true);
    pref(“browser.search.update”, false);
    pref(“signon.autofillForms”, false);
    pref(“signon.rememberSignons”, false);
    pref(“browser.download.manager.scanWhenDone”, true);
    pref(“browser.formfill.enable”, false);
    pref(“xpinstall.enabled”, true);</nowiki></pre>
    channel-prefs.js
    pref("app.update.channel", "release");
    override.ini
    [XRE]
    EnableProfileMigrator=false
    all-lmc.js
    pref("general.config.filename", "mozilla.cfg");
    defaultPref("browser.startup.homepage", "data:text/plain,browser.startup.homepage=http://bbc.co.uk");
    Again, thank you very much for your time. Do I create my own browserconfig.properties, and firefox.js? Also, I forgot to mention I'm running Windows 8.

  • I am not able to view the default view of FF 4.0, It is showing menu bar with the windows border. When i turn off menu bar, the strip which should be present above the tabs goes missing.

    I have recently downloaded FF 4.0 and using a lot of add-ons. I am not able to view the default view of FF 4.0 with no menu bar. Even after turning off the menu bar from customization, I am able to see only the tabs and FF button, but not the strip over the tabs.

    When you hide the menu bar to display the Firefox button, the titlebar (strip above the tabs) is only displayed if the Firefox window is not maximized. If you always want the Window titlebar, you can use the Firefox 4 UI Fixer extension - https://addons.mozilla.org/firefox/addon/firefox-4-ui-fixer

  • The item in menu bar with the 3 rolling balls I used to download from You Tube are not on my tool bar since upgrading. How do I download now?

    There was an icon on the menu bar that had 3 balls that revolved. Next to it was a drop down arrow that would let me choose to download files from You Tube and others in several formats. I recently had to remove and reinstall Firefox from my computer and evidently with this version, that icon is not there. How do I get it back or how do I download now?

    If toolbar buttons aren't appearing then try http://kb.mozillazine.org/Corrupt_localstore.rdf
    For other problems with extensions, see "Corrupt extension files": http://kb.mozillazine.org/Unable_to_install_themes_or_extensions
    You may also need to reset some preferences created by that extension.<br />
    See http://kb.mozillazine.org/Resetting_preferences

  • Menu bar with rollover states not working properly

    I have a menu bar that I want to have as a certain size. The
    menu items that actually link somewhere are not showing up as the
    designated size (150x50px) but the one link that is not linked to
    somewhere else in the page looks fine (inventory).
    Can someone look at the css and tell me if there is something
    contradicting or if there is something I can do?
    THank you
    You can view the problem page at
    http://thebradfordcreativegroup.com/abs/indexold.html

    Sorry, I don't have the answers - but you need to see your
    site in IE6. It
    looks quite different - kind of bloated. Also, the "Quality"
    link doesn't
    have an arrow.
    "Inventory" as you say sits up at the top. FF is fine. Sorry
    I can't help
    though.
    Jo
    "joshuataylordesign" <[email protected]>
    wrote in message
    news:fqia5f$anb$[email protected]..
    >I have a menu bar that I want to have as a certain size.
    The menu items
    >that
    > actually link somewhere are not showing up as the
    designated size
    > (150x50px)
    > but the one link that is not linked to somewhere else in
    the page looks
    > fine
    > (inventory).
    > Can someone look at the css and tell me if there is
    something
    > contradicting or
    > if there is something I can do?
    > THank you
    > You can view the problem page at
    >
    http://thebradfordcreativegroup.com/abs/indexold.html
    >

  • Menu Bar - Sound Volume icon does not move with the press of the F key

    So I normally press the F keys to control the Sound Volume, right, just like everyone else does -
    but the Sound Volume icon in the Menu Bar at the top right does not respond to the F key at all!
    Isn't it supposed to react simultaneous with the press of the F key?
    I have to actually use my mouse click to make that volume go up and down.
    The actual volume does work with the F key, it goes up and down.
    But to make the 2 work in sync, I have to point the mouse to the one at the Menu Bar, fiddle with it, and then I can use the F key and both work together at the same time.
    If I haven't touched the Menu Bar one for a while and I only use the F key, the Menu Bar one doesn't move at all.
    It's weird. Any ideas?

    I see what Al is seeing. Normally I just use one method or the other. The Volume Adjustment keys provide visual feedback, so it's unnecessary to check the menu extra, i.e. the Volume menu bar icon, to see the same feedback.
    The slight delay in the reaction of the Volume menu extra, when open and while adjusting the volume with the Volume keys is normal.
    They're independent methods for adjusting the Volume setting. The Volume menu extra takes a moment to refresh when the slider is displayed and you're changing the setting via the Volume keys.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • I changed my "View" to Full Screen..How do I change it back since the Menu Bar with "View" is no longer available in "Full Screen" ?? I tried Esc but that does not work ..

    I used the VIEW tab at the top left to change my View to "Full Screen".
    Now I cannot access the VIEW tab to change it back. How do I change it back so that that Menu will show at the top of my screen??

    Some choices:
    # F11 toggle Full Screen
    # Move mouse up through the top of the screen to menu bars, if you show them
    # "Alt+V" -- to bring up the View Menu
    More information:
    * '''Firefox and other Browser Keyboard Shortcuts''' (Comparison Table)<br>http://dmcritchie.mvps.org/firefox/keyboard.htm
    * '''Keyboard shortcuts''' | How to | Firefox Help<br>https://support.mozilla.com/kb/Keyboard%20shortcuts
    * '''Netbooks''' - MozillaZine Knowledge Base<br>http://kb.mozillazine.org/Netbooks

  • Menu bar with file, edit and view are still there not the new drop down new file bar

    downloaded the new version of firefox and the new drop down menu bar that has file,edit,view and history, stuff like that is still there. i have what looks like a broken photo or missing picture square

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    In Firefox 4 [http://kb.mozillazine.org/Safe_mode Safe mode] disables extensions and disables hardware acceleration.
    * Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"

Maybe you are looking for