Dropdown Menu bar being hidden by the Textarea

My problem is that the menu bar does show up, but the text area is over the dropdown menu. You can see the drop down menu start but then is hidden under the textarea. I hope that a good enough discription.
The frame is a typical JFrame that contains a BorderLayout. My class TheFrame is an extention of JFrame. In the CenterPanel I have a Text area. In the south panel I have another BorderLayout with a text area as the center and a button for the east panel. The menu is going under the text area in the center panel. This might be a bug with the borderlayout?
public TheFrame(){
super("Com");
getContentPane().setLayout(new BorderLayout());
JMenuBar menuBar = new JMenuBar();
setJMenuBar(menuBar);
menuBar.add(getMyMenuBar());
getContentPane().add(getCenterPanel(), BorderLayout.CENTER);
getContentPane().add(getSouthPanel(), BorderLayout.SOUTH);
pack();
private JMenu getMyMenuBar(){
JMenu menu = new JMenu("File");
menu.add(createConnectItem());
menu.add(new JMenuItem("test"));
return menu;
private JMenuItem createConnectItem(){
JMenuItem connect = new JMenuItem("New");
ActionListener listener = new ConnectMenuItemActionListener(com);
connect.addActionListener(listener);
return connect;
}

I don't see the textarea in the code you posted.
But I know that the described problem comes up when
you use "TextArea" unstead of "JTextArea".
"TextArea" is an awt component and "JTextArea" is
the corresponding swing component. You should not
mix awt and swing components in the same GUI.
However, "TextArea" has the scrolling facility already included.
With "JTextArea" you must use JScrollPane if you need
scrolling.
        JScrollPane scrollpane = new JScrollPane();
        JTextArea textarea = new JTextArea();
        scrollpane.setViewportView(textarea);

Similar Messages

  • The dropdown menu from the Creative Cloud icon on the menu bar keeps giving me the following message: "Download Error" I quit and restarted the creative cloud app to no avail. Running Mavericks on a mid 2011 iMac.

    The dropdown menu from the Creative Cloud icon on the menu bar keeps giving me the following message: "Download Error" I quit and restarted the creative cloud app to no avail. Running Mavericks on a mid 2011 iMac.

    Try below steps once
    click Gear icon on the top Right corner and Quit Creative Cloud App
    Click on Finder and then hold Command + Shift + G keys on your keypad
    It will open Go to folder window, type  exactly ~/Library and click on Go
    Make sure to open ~/Library not /Library (  there will be two Library folders )
    Then open Application Support > Adobe folders
    Trash AAMUpdater and OOBE folders.
    Then launch Creative Could and check.

  • Is there a way to show a web page title when the menu bar is hidden?

    I need to see the web page title on the top bar of the browser because the tabs don't give me enough information. However, when I have the menu bar hidden, the page titles go away, too. Is there a setting I'm missing to show the page titles even when the menu bar is hidden?

    Have you tried http://HOST:PORT/etc/linkchecker.html ? you can also nevigate to this link from tools -> External Link Checker.
    Yogesh
    www.wemblog.com

  • When menu bar is hidden, I cannot find the Tools option (and i.e. Session Manager plug-in options)

    The new look where the menu bar is hidden, looks really nice.
    ...but I can't find the Tools option when the menu bar is hidden.
    Therefore I can't access plug-in options like Session Manager.
    I would really like the Tools menu appearing i.e. below the Options in the Firefox 'start menu'.

    Press F10 or tap the Alt key to bring up the "Menu Bar" temporarily.
    * New Old Menu: https://addons.mozilla.org/firefox/addon/new-old-menu/

  • Tab Bar/Titlebar Acts Up while Menu Bar is Hidden

    While the menu bar is hidden (made to require ALT to be pressed to be visible), the tab bar suddenly becomes overlayed with the titlebar (making the Windows titlebar and minimize/maximize/close buttons appear over the tab bar) whenever anything on the top of the window is interacted with.
    Does the same thing in Firefox Safe Mode (no addons). I'm submitting this form in Safe Mode.

    Set the pref <b>browser.tabs.drawInTitlebar</b> to false on the <b>about:config</b> page.
    See:
    * http://kb.mozillazine.org/about%3Aconfig

  • Cannot click bookmarks on menu bar after ALT-key when menu bar is hidden

    If you personalize the toolbars, dock the "Bookmarks objects" to the menu bar (useful to reduce space) and hide the menu bar (making it visible by pressing the ALT key) you're not able to click a bookmarks bar's item anymore because (after having shown it by pressing ALT key) as you click the bookmark button the menu bar loses focus causing the whole bar to be hidden again and the click event to be catched by the main window instead of the bookmark button.
    [http://alextm.no-ip.com/bookmarks_on_menubar.JPG Screenshot of the header with bookmarks]

    With F10 you obtain the same result, the menu bar is shown but when you click on a non-menu item the bar is hidden again not allowing the bookmark item to catch the click event.
    Of course I know how to move the bookmarks bar back to the tab bar, but it is not a solution to the problem I've posted, just a workaround. As I've said in my previous post I've moved the bookmarks bar there to limit the height of the window's heading section: if I move it down again I miss my target.
    Anyway, I don't think we are here to decide wherever to place the bookmarks bar, but to notify to the developers the presence of this issue.

  • Firefox menu bar is hidden and refresh didn't help

    Hi, Firefox menu bar is hidden and refresh didn't help. It is not available if I right click the top of the screen beside tabs. I cannot find or restore it on the customize page. I have tried 3 or 4 solutions, and none worked.

    Make sure that you do not run Firefox in full screen mode (press F11 or Fn + F11 to toggle; Mac: Command+Shift+F).
    *https://support.mozilla.org/kb/how-to-use-full-screen

  • My menu bar is hidden. how do i restore?

    my menu bar is hidden. please tell me how to restore it.

    Other things that need attention.<br>
    See http://www.mozilla.com/plugincheck/
    Your above posted system details show outdated plugin(s) with known security and stability risks that you should update.
    # Shockwave Flash 10.1 r85
    # Java Plug-in 1.6.0_11 for Netscape Navigator (DLL Helper)
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/
    Update the [[Java]] plugin to the latest version.
    *http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)

  • My menu bar is hidden in Safari.  how can I unhide it?

    Recently did a reinstall of Lion and restored with Time Machine.  My menu bar is hidden.  How can I make it show all the time?

    Are you using Lion full screen mode?

  • The menu bar is missing AND the article about the full screen issue is NOT WORKING.

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/929810]]</blockquote>
    The entire Firefox window is visible (including tabs, x and +). I can enter and exit full screen, and the menu bar does not reappear.

    If the menu bar is hidden then press the F10 key or hold down the Alt key to make the menu bar appear.
    See also:
    *https://support.mozilla.org/kb/Menu+bar+is+missing
    *https://support.mozilla.org/kb/how-do-i-get-firefox-button

  • Ichat drop down menu from menu bar shows up in the wrong place.

    I'm not sure how this happened, but for some reason, ever since I've moved to college, my Ichat drop down menu from the menu bar shows up on the left side of my screen, and you can only see half of the menu. I don't know how to fix this problem so if anyone could help me out that would be great.
    Sincerely,
    Cody Martin

    Yep.
    Go to the Buddy List Status Message and option the Edit option.
    Delete that Status Message that you have that is over 42 characters.
    Ones of about 60 or more will introduce the "Left Shift" (And the fact the drop Down may line up with the right hand edge of the Menu Bar icon on in-between lengths)
    In Snow Leopard it is possible to have a Long Message that displaces the Drop Down Off Screen.
    The other factor is the order of the Menu Bar Icons on that side of the Screen
    The iChat one can be Dragged if you use the Apple (CMD) key.
    If the Drop Down can not fit the message in before the right hand edge of the Screen it will displace.
    Having a Second mac User Account and deciding to Display which mac User is Logged in can give you some extra "space"
    3:24 PM Sunday; October 11, 2009

  • My "Bookmarks" button is missing from my Menu Bar which is at the top of my screen. How can I get it back?

    I'm using version 3.6.8

    If it's the entire menu bar that's gone, you just need to press ALT or F10 in your keyboard to make the Menu Bar temporarily visible. If you want it to be permanently visible, go into ''View > Toolbars > Menu Bar'', or right-click the Navigation Toolbar (the Reload button, for example) and select ''Menu Bar''.
    If this doesn't help, right-click the navigation toolbar, select ''Customize...'' and click ''Restore Default Set''. If it doesn't appear right away, try pressing ALT or F10. You can go into ''View > Toolbars > Menu Bar'' to make it permanently visible, or right-click the Navigation Toolbar and select ''Menu Bar''.
    If none of this helps, you may be having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Try disabling all add-ons (just to check), to see if Firefox goes back to normal.

  • Spry Menu Bar display problem on the MAC

    Hello!
    I'm having issues with spry menu bar not displaying properly
    on the mac browser.
    i474.photobucket.com/albums/rr104/nastasia_20/DSC02618.jpg
    it should look like this
    s3.amazonaws.com/sitevista/c356ba1e-7f66-4cec-9b41-bc90b86455ee1773886_IE7.png
    You can find the page here : www.
    siia-design.com/eco_totes/modern_mums.html
    Any ideas what is wrong?
    Thank you

    Not an issue any more. I re-loaded the site w/o the menu bar
    after I made the original post (as you saw) because of the
    incompatibility issue I was having between Spry and IE6 & 7.
    Before that, I first updated Spry, re-loaded the page with Spry
    menu and still had the same IE 6 & 7 issue. Frankly, I simply
    gave up on Spry, due to time constraints in getting a new site
    layout operational (today was my deadline). From what I've read on
    these and and other forums, Spry does not play well with IE,
    especially IE7. Unfortunately for me, I don't use IE at all, so
    rely on Dreamweaver's compatibility check to tell me if all is
    well. Why Spry works so well on Safari, Firefox and Netscape, and
    not on IE, is beyond me. Thanks, anyway for your comment. Much
    appreciated.

  • Why does my menu bar keep blinking in the left corner of my screen?

    y menu bar keep blinking in the left corner of my screen?

    There used to be a disk activity or network activity indicator you could download that would make the uppermost left cluster of pixels flash when the disk or Network was accessed.
    I expect you have added some third-party utility that has installed this feature for you.

  • Can the desktop menu bar be hidden?

    I would like for the menu bar to be hidden until I want to use it, i.e. mouse over it to make it appear.  Can this be done?

    Here's an article that describes how to get the menu bar behaviour that the OP wanted (i.e., hiding until mouse-over) on an application-by-application basis. It requires nothing more than Xcode to be installed (which is free from Apple in the App Store) and a bit of Property List editing (which is what you need Xcode for).
    http://lifehacker.com/5280456/hide-your-mac-menu-bar-and-dock-for-a-cleaner-desk top
    The article's a little old, but I just tested it with TeXShop in Mavericks and the method worked perfectly.

Maybe you are looking for

  • How to update data from a web service

    Hi all, I have a webservice that returns some data as e4x type. I pull the data i need and put it into an object. I manipulate that data, then I want to write it back with another webservice. I get serialization errors when I call the update method.

  • Data fetch from two table without refresh

    hi Friends, I have a problem i want to extract data from two table without refresh into text field when i'll enter any value in a text field then corressponding value should come in to corressponding textfield. eg. there two table A and B. Table A ha

  • Distiller

    Why does Acrobat 9 Pro Distiller crash so often in the Esko Artwork Odystar 4.1 workflow? It runs on a Mac Pro running OS X Server 10.6.8. ~Cliff~ (not the fiscal)

  • Loosing the Internet.

    Hi, I had a wired network and my Router(Model WRT54G2  with firmware v. 1.0.03) worked fine for a long time until I recently bought and setup Wireless HP Office Jet Printer. After that my Network starts experience problem losing the Internet connecti

  • JDeveloper start VERY slowly first time after power cycle

    I'm running JDeveloper Version 9.0.2 in a classroom situation on about 15 Win-2000 machines (aprox 700Mz). The first time jdevw.exe is launched after power up, it takes 5-7 minutes before the splash screen appears. Re-launching the applcation subsequ