Too many menu items

i have a menu that routinely (depending on the nubmer of a certain type of object) has too many items to display. the menu gets so big, it scrolls off hte page.
is there some way to mimick the Windows behaviour wher ehte menu splits itself in seveal panels when it gets too long?
thanks

import javax.swing.*;
import java.awt.event.*;
public class LongMenu extends JFrame
     public LongMenu()
          super("Displaying Long Menus");
          JMenuBar menuBar = new JMenuBar();
          this.setJMenuBar(menuBar);
          JMenu bigMenu = new JMenu("bigMenu");
          menuBar.add(bigMenu);
          // specify a layout manager for the menu
//          GridLayout menuGrid = new GridLayout(25,0);
          VerticalGridLayout menuGrid = new VerticalGridLayout(25,0);
          bigMenu.getPopupMenu().setLayout(menuGrid);
          // add items to the menu
          for (int i = 0; i < 90; i++)
               JMenuItem bigMenuItem = new JMenuItem("bigMenu" + i);
                  bigMenu.add(bigMenuItem);
     public static void main(String[] args)
          LongMenu frame = new LongMenu();
          frame.setSize(250, 200);
          frame.setLocationRelativeTo(null);
          frame.setVisible(true);
}VerticalGridLayout is found here:
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=645173

Similar Messages

  • Many Menu items on 4.1 is not working.

    Hi All,
    I have an application on 4.0.2 which has many menu items. (around 500 items with sub menus = which is a kind of conversion from other application)
    This application was running ok on ver 4.0.2 but when i installed ver 4.1 it and I run the application it hangs long time, memory usage on the server for Oracle increases up to 12 G (which is normally 1 G)
    If i hide the menu (with condition = show never) than everything works fine.
    What could be the problem? or where should i look to solve this problem?
    Kind Regards,
    Osman.

    Can you send a screenshot of the error? Or any LMS logs that can assit with troubleshooting? Are you able to ssh direct from the LMS server?
    Regards
    Stephen
    ==========================
    http://www.rConfig.com 
    A free, open source network device configuration management tool, customizable to your needs!
    - Always vote on an answer if you found it helpful

  • Too Many Line Items While Creating a PO

    Dear All,
    Here we have a scenario:
    We are creating a PO which is having around 10000(ten thousand) line items, and while saving system is showing error message "Too Many PO Line Items" Message No: FI899. and not able to save it.
    Kindly Let me know is there any limit for line item creation in a PO.
    Regards,
    Ravi B

    Limitations are limitations, you need a workaround or pay SAP for an extra developement. Probably worth, if you have such POs everyday.
    ( I cannot even imagine for what reason a PO should have more than 10000 items. Manual maintenance is impossible, the person would sit for a week and more to finish one PO. the CSR at your vendor is as well not able to put the items from your PO into their Sales order within a reasonable time frame - order entry should be ready before delivery date is arrived.
    This sounds like you want buy a company and want create just one purchase order to buy any single material they have on stock. But for that purpose the PO is certainly not designed.
    Can you give more background that makes my mind open ?   )

  • SSRS 2012 (SP Integrated) report on SP 2013 PerformancePoint Dashboard: when too many filter items selected together report does not update anymore!

    I am having a situation with SSRS 2012 (SP-integrated) report rendered on SP 2013 PerformancePoint Dashboard using linked PerformancePoint (PP) filters.
    The report works fine as long as too many PP filter items are not selected at the same time. When gradually selecting more items from the filter, the report updates itself until more than a sepecific numer of filter items are selected - the report simply
    does not update itself anymore. This "specific number of filter items", when hit, generates the following error in ULS:
    An exception  occurred while rendering a Web control. The following diagnostic information might help to determine the cause of this problem:  System.UriFormatException: Invalid URI: The hostname could not be parsed.    
     at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)    
     at System.UriBuilder..ctor(String uri)    
     at Microsoft.PerformancePoint.Scorecards.ServerRendering.ReportViewControl.ReportUrl(SqlReportViewData sqlReportViewData)    
     at Microsoft.PerformancePoint.Scorecards.ServerRendering.ReportViewControl.RenderSqlReport(TextWriter writer, ReportView sqlReportView)    
     at Microsoft.PerformancePoint.Scorecards.ServerRendering.ReportViewControl.RenderReportViewControl(HtmlTextWriter writer, ReportView rv)  PerformancePoint Services error code 20700.
    I already know that the cause of the issue is in the length of the query (perhapse RDL or MDX) that the browser is supposed to pass on to the instance of SSAS.
    Some people had suggested a workaround that was suitable for older versions or non-integrated SSRS (see here: http://social.msdn.microsoft.com/Forums/sqlserver/en-US/cb6ede72-6ed1-4379-9d3c-847c11b75b32/report-manager-operation-cannot-run-due-to-current-state-of-the-object).
    Knowing this, have already done the changes suggested (adding the lines suggested to SP's web.config for Reporting and the web.config of the site on which report is rendred) at no avail, just to make sure.
    I have rednered the same report on the same dashboard using SSRS filters and there is no problem; it just works fine. This has to be a bug in PP that is causing this.
    Has anyone had the same problem with SSRS 2012 (SP-integrated) report rendered on SP 2013 PP dashboard using PP filter? Any fixes or workarounds?
    thnx!

    Hello everybody.
    I confirm the issue in Service Pack 1 Release 2.
    Poor workaround is to remove the repeated infromation from the member keys (in SSAS they can be really long).
    The issue seems to be specific to SSRS: Excel Services works well with the same filter.
    Sergey Vdovin

  • CO 1SRJ-001: Too many line items selected via report interface

    Report group/report 1SRJ/1SRJ-001 (CCentres: Rolling Year):  provides an overview for the last 12 periods of actual and plan data.
    When you access line item report RKAEP000 (KSB1 or KSBP) from report Cost Centres Rolling Year (1SRJ-001) using the report/report interface, too much data is selected.
    For example, you enter fiscal year 2009 and month 8 in selection parameters, the report generates results for the last 12 periods:  2008/9 to 2009/8.  But the line item report accessed via report interface selected ALL data for the fiscal years 2008 and 2009.
    I searched and found Note 127643 that described a similar but not exactly the same situation.  Have anyone have any problems with this report?  Any suggestion is appreicated.
    Regards,

    Issue with report 1SRJ-001 (S_ALR_87013631) has been resolved.  The interfaced line item report selects all data records for fiscal years 2008 and 2009, instead of just for the selected last 12 months.  The problem is due to missing restrictions for a characteristic, in this case, the from-period and to-period fields.
    SAP has corrected the problem by issuing an updated version (1999) and the one we were using was the 1995 version.  I imported the updated version of report from client 000 and now it works fine.

  • Too many Startup Items?

    I've created 5 Startup Items for my custom installed and configured Services:
    +- Apache+
    +- Fetchmail+
    +- MySQLCOM+
    +- Squid+
    +- Tomcat+
    Most of the time when the Server starts up, every Service is running,
    but sometimes (especially Squid and/or Apache) does not run and must be started manually.
    Are 5 Startup Items too much for the Server (Mac Pro), or could there be a misconfiguration in the .plist Files in the Startup Items Folders?
    Kind regards,
    Chris

    Is this an install of 10.6 Server or a 10.6 client install you have modified to run the services you listed?
    My 10.6 servers load AFP, DHCP, DNS, iCal, iChat, Mail, MySQL, Open Directory, RADIUS, SMB, and Web as well as some other items.
    The five items you list would not be an issue.
    You may want to check your system console logs for any unusual entries on boot up that shows where one of your items was not loaded.

  • Too many menu bars

    I see that you are coming out with firefox 4 beta. My suggestion is to have all those menu and toolbars at the top be hideable - like windows taskbar. you could replace them with tabs across the top for each menu/tool bar and have it drop open when the cursor goes over the top and drop closed when it's not.

    Why not look at what has happened, you can try out the 4 beta yourself. Already with Firefox3.6 on Windows the toolbars etc are hideable. You may be interested in some of the changes in firefox version 4 such as:
    * [[Why are tabs on top?]]
    * [http://www.mozilla.com/en-US/firefox/beta/features/#feature-firefox-bottom firefox button]

  • Chart duplicating Series results in too many legend items

    I've created an item for this on bugs.adobe.com - https://bugs.adobe.com/jira/browse/FLEXDMV-2258
    My client requires this in order to finish the application I am working on so I'm hoping someone has a workaround or suggestions for me.
    The forum would not allow me to attach my jpg and mxml file but they are available on the bug url above
    Copied from the bug:
    My application has a collection of machines, each of which has the same properties. I want to graph those properties, but organize them by dates (the values of the properties are different for different days). So the y axis items are dates, and each date has a cluster of machines. Each date has the same number of machines and each machine has the same properties. The issue I'm having is that I want each property (in the example there are 3 properties, represented by BarSeries) to have the same color for each machine in each cluster. So overall, there should only be 3 colors and the legend should have 3 items. Instead, the chart creates different colors for each machine (represented by a BarSet), so there are 3 (machines/BarSets) times 3 (properties/BarSeries) which gives 9 colors and 9 items in the legend. I'm looking to have 3 colors and 3 items in the legend. I was hoping there would be a property on BarSet or BarChart to specify to share BarSeries among the BarSets rather than it forcing unique instances of BarSeries for the BarSets. I tried storing just 3 instances of BarSeries (one for each property) and assigning each BarSet.series property to the stored array of BarSeries, but the outcome was that it would only display one item for each cluster rather than 3.
    Thank you for any suggestions!

    The legend isn't the only problem.  The BarSets are being rendered with different colors for each BarSeries when I want each BarSet to have the same set of colors.

  • Too many execute items crashes the phone?

    Hello there! Just noticed that my 7970 crashed when I sent two CiscoIPPhoneExecute objects within less than 200ms. Anyone else have the same experience? Just want to make sure if it's a bug, or is it some firmware issue I need to pay attention to? Thank you very much for your help!

    Sounds like you should tell TAC...

  • Too many addresses in mail's "From" pull-down menu

    i have 3 mobileme addresses, a few of aliases, and 1 gmail account. my problem is this:
    when composing a new message, there are too many addresses the "from" pull-down menu, because mail includes both the .mac and .me versions of each of my aliases. so, instead of a list of 6 addresses, mail shows 10. furthermore, the addresses appear, in the menu, in a random order, making it even harder to find and select the address i need:
    they display in this order:
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    - how do i get mail to stop listing both the .mac and .me versions of addresses (aliases) in the pull-down menu?
    - and how do i alphabetize the list?
    thanks.

    i must have been really tired when posting the above. lol. obviously i meant "a few aliases" and "there are too many addresses in the 'from' pull-down menu."
    i hope someone knows how to address this issue. (no pun intended.)

  • Wheel scroll in List scrolls too many items

    Hi,
    I have a List with an item renderer. When I scroll down with
    my wheel, it scrolls too many items (it scrolls down 6 items while
    I can see only 3). What I want is too scroll down just one item at
    the time. How can I do this?
    Thank you!
    Andrej

    You should be able to fix that by rebuilding the LaunchServices database.
    I use OnyX (Maintenance tab, Reset section).
    http://www.macupdate.com/info.php/id/11582

  • Raport is extremely small when too many items in multivalue filter selected.

    Hello,
    I have a problem with report built in SSRS and deployed with Dashboard Designer to Sharepoint. There are few filters connected to report, 2 of them are multivalue. Regardless of data returned, when I select too many items in filter, the report is getting
    super small. It doesn't matter what you select, size changes when you select exact number of items or more. I replaced report with single line (filters where still conected) - result was the same.
    Small amount of items selected:
    More items selected:
    Size of the raport in Dashboard Designer is set to "Percentage of dashboard page", when I selected autosize, result was the same. I don't understand the behaviour of this report, do you know what is going on?
    Thanks in advance,
    MichalGo

    Yes, I deleted table and all other items from it, put line from toolbox and uploaded (filters were still connected to the dataset). The result was the same. 

  • Workflow queue - too many items

    Hi all,
    We are experiencing serious issue with too many documents in user's workflow queue. Namely, when number of documents in queue exceeds 100 (or so), rendering of "My workflow" page takes too long (10-20 seconds). Furthermore, when user approves some document from the list, page is reloaded, again very slow, which makes things very frustrating...
    My questions are:
    1. Does anyone have the similar problem ?
    2. If yes, how to determine if problem lies in time needed to read HDA file, or in time needed to show HTML page.
    3. Finally, is there any way to create pagination or whatever, ie. to make list more readable and faster ?
    Thank You in advance,
    Velimir

    Velimir wrote:
    Hi all,
    We are experiencing serious issue with too many documents in user's workflow queue. Namely, when number of documents in queue exceeds 100 (or so), rendering of "My workflow" page takes too long (10-20 seconds). Furthermore, when user approves some document from the list, page is reloaded, again very slow, which makes things very frustrating...
    My questions are:
    1. Does anyone have the similar problem ?Nope.
    2. If yes, how to determine if problem lies in time needed to read HDA file, or in time needed to show HTML page.Turn on system-wide tracing and you should see when a query and/or services (also requestaudit) is called. My guesses are that it will be rendering the content of HTML.
    3. Finally, is there any way to create pagination or whatever, ie. to make list more readable and faster ?This would require some customizing (not sure if anything is available by default). The easiest way is to provide some filtering (e.g. search by metadata value). I can send you a component which modifies the page template in that way (see email in my profile).
    >
    Thank You in advance,
    Velimir

  • RE:  PHOTOSHOP CC - MENU ITEM EXPLANATIONS

    1)  Where can I find a very basic, very in depth discussion of of all menu items?   There are so many that do not seem to be covered in any of the tutorials - such as "Image" > "Mode" > "8, 16, 32 Bit/Channel".   That's just an example.  Even Fundamental Tutorials do not cover.  Even the Photoshop "manual" I downloaded do not cover.
    2)  In trying to find and view tutorials, one illustrates how to move the entire opening screen around to avoid opening in the Bridge CC (and to keep them side by side if desired), through . .  the menu item "Window" > "Application Frame".  I don't have an Application Frame.
    3)  I was under the impression that if I subscribed to Creative Cloud that I would automatically have everything and it would be automatically downloaded with all of the appropriate updates.  Now I find there's so much I do not have - but worse - no way to know what I am missing.  Could anyone explain this.  I want to spend my valuable time doing my art work, not trying to learn how/when/what/why/IF Creative Cloud downloads, mess-ups, screw-ups, etc.
    Thanks for any help.

    I had at first, decided to ignore the implications of some of your responses. However, after much consideration and reading some other comments and blogs (and even a comment in a popular book) about Adobe customer service, I've decided to respond.  I think your response was condescending and somewhat rude. I do NOT expect anyone to explain the entire Photoshop CC program to me. If you could just look at my opening question - "Where can I find a very basic, very in depth discussion of of all menu items?", I'm asking where I might go to find an explanation of menu items.  You go on to tell me that a lot of what I was asking was not even specific to Photoshop, although every single thing I refered to…..File;  Scripts; Image;  Mode;  Window; Timeline; 8bit/16bit/32bit;  Application Frame…. IS within Photoshop. 
    Then, to suggest that I “type a handful of phrases into a web search” to do my own research - when its Photoshop’s own menu I’m trying to research….. and when I’m only asking to be directed to find what I need, is insulting.  I do not think it is appropriate customer service.
    At the same time, I recognize that I was the first to be rude in calling out Creative Cloud’s mess-ups and screw-ups, etc.  I must apologize for that because it was not you who participated in or had anything to do with failing in information about the missing Bridge “Output” module.  Nevertheless I did start out asking the right question - where to go to find what I wanted - because I too do not believe a forum is the correct place for in depth basic information about a program.  I believe is a strong failure on the part of Adobe is discarding a very useful in depth, item by item, manual. 

  • Too many archived documents are suddenly extracted into BW

    Dear All,
    I am not person of Finance but I will try to provide necessary details here.
    We have archiving in place in ECC. For a specific document, if I go to FB03 for the document, it shows the information but with message that 'Document is already archived'. Document is related to year 2011.
    Now, suddenly too many documents were extracted last week spanning from year 2009 to 2011. When I check in 'Document changes', it shows that last change was done in 2011 only.
    I want to know what possible change could cause these archived documents to extract again into BW.
    or any pointers are also welcome.
    Thanks,
    Purvang

    If you bought it from Apple, you are covered by one year of AppleCare, which includes three months of free phone support, for any problem. You should take full advantage of that. It sounds like you may have hardware issues (the audio jack) but a lot of your items sound like a matter of changing preferences or display settings - Apple can help with this, as can a local friendly Mac consultant.
    For example, you mention that you get a "screen-wide mass of writing". Do you know what application you're opening the file in? Many Mac apps have full-screen mode, which sounds like what you describe, and you can get out of it by moving your cursor to the top right of the screen until you see the menu bar appear - there's a blue icon with two arrows, and clicking this will get you out of full screen mode.
    QuickTime does not play all formats of video. Try an alternative video player such as VLC. (http://videolan.org/VLC)
    Hope that helps somewhat.
    Matt

Maybe you are looking for

  • Automatically open a program after opening a program

    Here's what I want to do... I have a menubar program that gives me info about the current iTunes track. Thing is, I don't want the program to open until I open iTunes. Is there a way to have the program automatically open when I open iTunes? (and may

  • Multiple problems with touchscreen on iPad Air

    I bought an iPad Air right when it came out last year, and it has started to give me problems with the touchscreen. These problems don't happen all the time, just enough to be annoying - but not enough that I can discern any pattern. So I can't figur

  • Need to create tree-view page.

    I'm trying to create a tree-view display using Oracle JDeveloper 10g Release 3, ADF and JSF. I need to show a tree (folder names) and on a click of the last level folder to show table with File names that are related to the selected folder. Data is s

  • Adding name to null in each level of hierarchy

    Hi Friends I have hierarchy like country,state,city  i have some state names missed in that case i am getting  a blue colour buble without name,i want to name it   Help Needed  Thanks ADKR ADKR

  • Is it possible to set primary and secondary display with 2 graphics cards?

    I have an Early 2008 Mac Pro with two graphics cards and four monitors installed. Does anyone know how the computer (or more specifically Keynote) determines which is the primary display and which is the secondary? Also is there any way to change the