How to make JMenubar's menu  multiple rows?

These days I can not get any answers here about JMenubar. Is it possible????
I want to JMenubar to show multiple-rows menu such as flowlayout behavior.
But even I set flowlayout to JMenubar, the menu only display one row.
How to resolve thie problem???
Thank you !!!

Hi, the problem is solved. The record will be created in same way. just create more then one keys (allowing to make composite key in DB table)

Similar Messages

  • How to make RECORD for saving multiple rows for each employee..

    Hi,
    How can I create a record for saving multiple rows for each employee... (parent child relationship)
    I have created all required fields, then created a record, and then created a page. in that page i dragged-n-dropped a scroll area on that page and dropped all required fields from record into that scroll-area.
    whats is happening that its saving ONE (the first) record fine, but for the second record its not storing EMPLID for that row..
    Will I have to make some change at RECORD level ?
    OR Will i have to make some configuration in parent component ?

    Hi, the problem is solved. The record will be created in same way. just create more then one keys (allowing to make composite key in DB table)

  • How to make drop down menu

    Hi,
    Iam just wondering if somebody can tell me how to make drop down menus....or direct me to a URL so that i can get some sample code for how to make drop down menus like this:
    + drop down
    abc
    + first
    + second
    - third
       third-des
       third-des2
    i would really appreciate it.
    thanks all.
    -sangita

    Hi,
    something is working .....thanks.
    I have created a java class file as shown below and i did able to run it.........:)
    here is my code:
    package AppMirror;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class MenuLookDemo {
        public JMenuBar createMenuBar() {
            JMenuBar menuBar;
            JMenu menu;
            JMenuItem menuItem;
            //Create the menu bar.
            menuBar = new JMenuBar();
            //Build the first menu.
            menu = new JMenu("Menu Label");
            menuBar.add(menu);
            //a group of JMenuItems
            menuItem = new JMenuItem("Item Label");
            //menuItem.addActionListener(actionListener);
            menu.add(menuItem);
            return menuBar;
        public static void main(String[] args) {
            //Create and set up the window.
            JFrame frame = new JFrame("MenuLookDemo");
            //Create/set menu bar and content pane.
            MenuLookDemo demo = new MenuLookDemo();
            frame.setJMenuBar(demo.createMenuBar());
            //Display the window.
            frame.setSize(450, 260);
            frame.setVisible(true);
    but when i see the applet, it doesn't look the one i wanted to see......
    this shows the top menu bar ....but not the + drop-down.
    any ideas ???
    sorry, i don't know anything about swings, applets.....

  • How To Concatenate Column Values from Multiple Rows into a Single Column?

    How do I create a SQL query that will concatenate column values from multiple rows into a single column?
    Last First Code
    Lesand Danny 1
    Lesand Danny 2
    Lesand Danny 3
    Benedi Eric 7
    Benedi Eric 14
    Result should look like:
    Last First Codes
    Lesand Danny 1,2,3
    Benedi Eric 7,14
    Thanks,
    David Johnson

    Starting with Oracle 9i
    select last, first, substr(max(sys_connect_by_path(code,',')),2) codes
    from
    (select last, first, code, row_number() over(partition by last, first order by code) rn
    from a)
    connect by last = prior last and first = prior first and prior rn = rn -1
    start with rn = 1
    group by last, first
    LAST       FIRST      CODES                                                                                                                                                                                                  
    Lesand         Danny          1,2,3
    Benedi         Eric           7,14Regards
    Dmytro

  • How to make a good menu!!!

    Hi!!!
    How can I make a good menu that it executes at runtime? Also this menu has to read a .txt file, which has the user permissions to display the menu according the connect user.
    I try to do with javascript, but I don't know to read a file.txt with javascript and to give the parameters to the .java of the page.I have read a lot of manuals of studio creator and javascript and I don't read anything to do this.
    I also see that some people do these menus in jsp, but the studio creators jsp code view is in XML, and the tutorial and examples of jsp are in pure jsp with html, so I can't use in studio creator.
    Thankssss

    I've read about the destruction due to sweat and have been careful where I put the iPod. I'm in the humid deep south, so I have a real concern.
    I took it out on a run during a rainstorm on Jan 1, but didn't use the earphones. It only came along so it could record Nike+ data, and it was inside a baggie so it had a better chance of staying dry. It did fine.
    My concerns are keeping moisture out of the data port and the headphone jack. Since I've got the Nike+ dongle, it's more difficult for moisture to get in there.
    I've only had it in mild weather, minus rain. If it's fair weather, it clips to the front of my shorts off to the side, where I've seen that I tend not to drench my shirt with sweat. I thought of using a wrist strap, but there's been too many times where I've had sweat dripping off my wrists/palms.
    Of course, this is way off topic, but I thought I'd give you my opinion.

  • How to make a sidebar menu with subsection?

    Hello
    I've been trying to make a sidebar menu with subsections you can expand and collapse both in muse and edge animate but I just can't. I've search the net for tutorials for two weeks now, it's like such a menu just doesn't exist even tho I've seen them on several sites.
    Thos is a picture of how I want it to look:
    As a default, you can only see "home" and the two "subject". Then when you click on the first "subject", the two "tutorials" expand down, when you click on the individual "tutorials" the parts of that tutorial expands down. When you click on the buttons that expand subsection again, they collapse.
    As I've said I've search for tutorials for weeks, the person I'm making the website with has also search without any luck at all. I've found a tutorial that lets me have 1 button with subsection expanding when mouse is over it, but nothing where there are buttons below the button you expand. I'm starting to thing it's just impossible, but I can't understand how it should be impossible. In case it actually is possible I need to re-thing the way I organise and navigate the entire site.
    There is gonna be a whole lot of content on the site, we expect it to grow with up to 100 pages a month, therefor the navigation is obviously very important.
    I really hope someone can help me! A link to a tutorial I haven't been able to find or a description on how to do it, thanks!

    Hi,
    I am relatively new to Muse and hardly an expert, but I just did what you are describing.  Go to the Widget Library, Compositions > Blank.  In the Target, insert a Vertical Menu (also in the Widgets Library).  In the Options menu, under Menu Type select All Pages.  If that doesn't work the way you want it to, you might have to select the Manual menu option.
    Here's a short tutorial on how to use the Compositions Widget:
    Adobe Muse Mega Menu Dropdown Widget | MuseThemes.com
    Other tutorials that may help:
    http://terrywhite.com/how-to-create-a-dynamic-sliding-menu-for-your-mobile-website-in-adob e-muse/
    How To Create A Sliding Menu for Your Mobile Website in Adobe Muse - YouTube
    You might also look at Panels > Accordion.  You can insert your menu into the Accordion Target.
    Hope this helps.
    John

  • How to make a sidebar menu with drop down submenus

    I would like to make a sidebar menus as shown below. When you first get the menu only the home and subject button are shown, as you click on a subject you get the different tutorials and as you click each tutorials you are shown the parts. If you are on one a part page you will still have that part shown in the menu but if you click on it in the menu the it's collapsed again. I can't find anything about how to do this.

    Hi,
    I am relatively new to Muse and hardly an expert, but I just did what you are describing.  Go to the Widget Library, Compositions > Blank.  In the Target, insert a Vertical Menu (also in the Widgets Library).  In the Options menu, under Menu Type select All Pages.  If that doesn't work the way you want it to, you might have to select the Manual menu option.
    Here's a short tutorial on how to use the Compositions Widget:
    Adobe Muse Mega Menu Dropdown Widget | MuseThemes.com
    Other tutorials that may help:
    http://terrywhite.com/how-to-create-a-dynamic-sliding-menu-for-your-mobile-website-in-adob e-muse/
    How To Create A Sliding Menu for Your Mobile Website in Adobe Muse - YouTube
    You might also look at Panels > Accordion.  You can insert your menu into the Accordion Target.
    Hope this helps.
    John

  • How to make a keyboard navigating multiple choice list in Flash and control it through actionscript?

    i am making an rpg style game in actionscript 3.0 and i want to make a multiple choice list. I know how to make the list with buttons and how to control it. My question is, how do you make a list that can be navigated using the keyborad arrows? What i am after is being able to hit up, and down to highlight the buttons and enter to chose the button.

    You'll need to make the buttons as movieclips so that you can control which display state they are in (highlighted versus not).
    Then you need to set up a listener for the keyboard keys so that you can have the selected button change and the execute if the Enter is pressed.  Here is a basic setup for a keyboard listener that shows how to detect the three keys you mentioned...
    stage.addEventListener(KeyboardEvent.KEY_DOWN,keyIsDown);
    function keyIsDown(e:KeyboardEvent):void  {
             if (e.keyCode == Keyboard.DOWN) {
                     trace("DOWN");
             } else if (e.keyCode == Keyboard.UP) {
                     trace("UP");
             } else if (e.keyCode == Keyboard.ENTER) {
                     trace("ENTER");

  • How to make a game menu..

    How do you go abouts on making a game menu???
    I Know how to make a button with gotoAndStop, and gotoAndplay. I understand timeline coding. And have started with classes and OOP, im ok at writing classes i guess.
    But I have know idea how to make a menu that has basic things like instructions start ect basic things.. I have a library with a exported SWC, so i presume i need to grab my graphical assets from this, correct? or is there other ways?

    Thank you for this i have stumbled upon this before.
    Now really the real question is how do i add my game to that? I have a Main class attached to my game currently.. With a FLA holding graphics (I know i can add my buttons to this fla.) Thats the problem my game is currently the documents class. So if i change it to the main provided by emmanuel. that communicates with the the_game_itself.as, but im unsure as to how im supposed to put my code in this and still communicate with the main document class?
    If you want to see my code, let me know.

  • Easy Question: How to split concatenated string into multiple rows?

    Hi folks,
    this might be an easy question.
    How can I split a concatenated string into multiple rows using SQL query?
    INPUT:
    select 'AAA,BBB,CC,DDDD' as data from dualDelimiter = ','
    Expected output:
    data
    AAA
    BBB
    CCC
    DDDDI'm looking for something kind of "an opposite for 'sys_connect_by_path'" function.
    Thanks,
    Tomas

    Here is the SUBSTR/INSTR version of the solution:
    SQL> WITH test_data AS
      2  (
      3          SELECT ',' || 'AAA,BBB,CC,DDDD' || ',' AS DATA FROM DUAL
      4  )
      5  SELECT  SUBSTR
      6          (
      7                  DATA
      8          ,       INSTR
      9                  (
    10                          DATA
    11                  ,       ','
    12                  ,       1
    13                  ,       LEVEL
    14                  ) + 1
    15          ,       INSTR
    16                  (
    17                          DATA
    18                  ,       ','
    19                  ,       1
    20                  ,       LEVEL + 1
    21                  ) -
    22                  INSTR
    23                  (
    24                          DATA
    25                  ,       ','
    26                  ,       1
    27                  ,       LEVEL
    28                  ) - 1
    29          )       AS NEW_STRING
    30  FROM    test_data
    31  CONNECT BY LEVEL <= LENGTH(REGEXP_REPLACE(DATA,'[^,]','')) - 1
    32  /
    NEW_STRING
    AAA
    BBB
    CC
    DDDD

  • How to update xml attributes as multiple rows

    I am new to this technology, but i need to show the result
    in xml document i have to update these attributes get from Databse utility class.
    <equipment object="" manufacturer="" part_number="" type="" model="" items="" accessories="">
    <equipment object="" manufacturer="" part_number="" type="" model="" items="" accessories="">By using XSLT Doucment i have to show this in table format multiple rows of data.
    I'll be happy if anyone tell me the example.

    Now the changed data must be exported back into the XML file, meaning that the content of certain elements must be updated. How can this be done with XSLT?
    XSLT approach:  check these online tutorial
    http://www.xml.com/pub/a/2000/08/02/xslt/index.html
    http://www.xml.com/pub/a/2000/06/07/transforming/index.html
    ABAP approach:
    for example you have the xml (original) in a string called say xml_out .
    data: l_xml  type ref to cl_xml_document ,
            node type ref to if_ixml_node  .
    create object l_xml.
    call method l_xml->parse_string
      exporting
        stream = xml_out.
    node = l_xml->find_node(
        name   = 'IDENTITY'
       ROOT   = ROOT
    l_xml->set_attribute(
        name    = 'Name'
        value   = 'Charles'
        node    = node
    (the above example reads the element IDENTITY and sets attribute name/value to the same)
    like wise you can add new elements starting from IDENTITY using various methods available in class CL_XML_DOCUMENT
    so how do I access the XML file in order to update it?
    you have already read this XML into a ABAP variable right?
    Sorry couldnt understand your whole process, why do you need to read local XML file?
    Raja

  • How to disable resize function for multiple rows of inputText?

    I have a multiple rows inputText component like below:
    <af:inputText label="#{ZccToolbarGenBundle['OLabel.TransferNote']}"
    id="it1" autoSubmit="true" columns="150"
    immediate="true" simple="true" rows="5"
    binding="#{transferBean.transferNoteText}"/>
    How can I turn off the resizing icon on the bottom of right hand side of this input text box?
    Thanks for any help.

    Timo, the bug that I filed has been changed to 'not a bug'. The reason of that is 'That correct as it is not a valid CSS style on all browsers'. I sent email to ADF faces team and got following answers: 1. StyleClass that has agent specific setting for this setting. 2. You put the style class in a skin file and reference it. you can not use the inline style notation. It wants a Style Class.
    My question is what kind of StyleClass or skin file do you use so that you can use contentStyle="resize:none;"? Thanks.

  • How to check if "fetch" returns Multiple rows

    I want to know thru some variable (like %found) if the "fetch" returns multiple rows. How can I do it?
    My code:
    open      tab1_rec for
         'select fld1 '                ||
         'from     tab1 f '               ||
         'where     f.fld3 = :s1 and '     ||
         'f.fld4 = :s2 and '          ||
         'f.fld5 = 1 '
         using     fld3_in,
              fld4_in;
         fetch     tab1_rec into var1;
    -- If MULTIPLE
         if      tab1_rec%multiple
    Thanks

    If returning more than one row is unusual in some way (that is you are expecting only a single row) then you can do it like:
    BEGIN
       SELECT fld1 INTO var1
       FROM tab1 f
       WHERE f.fld3 = fld3_in and
             f.fld4 = fld4_in and
             f.fld5 = 1;
       < Do your processing here >
    EXCEPTION
       WHEN NO_DATA_FOUND THEN
          < handle no rows >
       WHEN TOO_MANY_ROWS THEN
          < handle multiple rows >
    END;No need for a cursor here. If you are expecting more than one row, and just want to know the count for information purposes, then you have to loop and fetch the records.
    HTH
    John

  • How Do I Present Result of Multiple Rows Using JavaBean

    How do I present to my users multiple rows that returned by a query using JavaBean?

    Well you're getting everything back in a ResultSet, right? It's not really a good idea to do much with that ResultSet beyond taking all the data it contains and sticking it in some other sort of data structure. ResultSets rely on a connection to retrieve the data, and once the connection is lost, so is the data they contain.
    So, if you have a ResultSet that contains the results of a query on a table, let's say Users, then you could put the results into a collection of some sort.. Vector maybe... and return that Vector. Then you could loop through your Vector to display multiple rows to the user.

  • How to make slide down menu?

    How to make such slide down menu like on the page: [categories in Whohas directory|http://www.whohas.com/]? Press on "[+] WHoHas DIrectory".
    I can't find anything in code...

    This is a Java forum. What you want is a JavaScript forum. I know it is a bit confusing but I thought the missing Script bit would have been a dead give away.

Maybe you are looking for

  • My ipad2 just refused to start up, can someone teach me how to wake it up?

    My ipad2 just shut down by itself and cannot be switched on after that. It is only about 2 mths old and was still about 80% charged. Any advice?

  • Loading "font.properties" from different location

    Is it possible to tell the JVM to load "font.properties" files from a different location instead of "$JAVA_HOME/jre/lib"? Thanks in advance. Regards.

  • Can i create IC  without  unit/currency dimention?

    i am not having the key figures of type amount and quantity, in that case can i create the infocube with out creating unit/currency dimention.

  • Query result to XML

    Hi! I need to do the following thing: after making a query in a database like: SELECT * FROM table WHERE column = 'value' Notice that the query always gets information from only one table. I need to get the results of the query and put them in a text

  • GRIR Balancing

    Hello Friends, I need to balance the GRIR accounts but it keeps updating every minute when the stores are doing transactions.  Can anyone please help on how I can  how to capture the List of GR/IR Balances as of a specific date to be able to validate