Multiple Menu Program

Hi,
I want to create a program in Java, and I am using JFrames for my GUI. What the program does is that it has some buttons on a JFrame and each button does an event. One of this buttons has to lead in a new menu.
I have decided that the best way to do this is to create two JFrames, set the one to visible (i.e. setVisible(true)) and the other one invisible (i.e setVisible(false))
When I press on the button I want the first frame to become invisible and the second one visible so I will be able to view the new menu.
Is there any way to do this? If you want my code so far I can post it here, just let me know guys.
Thanks

pisaia wrote:
Card layout does not seem to be the correct!!
What I want is like a JFrame with a menu (buttons menu), and when you press a button you are transferred to a new JFrame with other buttons. Once you are transferred to the new JFrame the old JFrame has to disappear.I see what you mean, my previous group project created similar functionality where our main GUI displayed four large buttons with an icon on each, where each button opened a new JFrame to a specific area in our application and closed the existing frame.
Inside your main JFrame create a method for example:
private void openJFrameX() {
  //create show new JFrame
  new JFrameX();
  //dispose current JFrame
  this.dispose();
}Then call the method when the corresponding button is pressed.
On a side note, the reason we took the above approach was due to each of the four JFrame's being independent elements. In regards to a menu, you may want to rethink this design as advised already.
Mel

Similar Messages

  • Will the antispyware that downloaded with the Firefox upgrade interfere with my CA security suite? I've been told not to intstall multiple security programs.

    Will the antispyware that was downloaded with the Firefox upgrade interfere with my CA security program? I've been told not to install multiple security programs?

    Alternatively, though we're not sure how it got on your system, if you don't want it installed you should be able to remove it via Add/Remove programs in your Windows XP Control Panel.
    From the Microsoft documentation for XP, located here...
    http://support.microsoft.com/kb/307895
    How to remove an installed program
    To remove a program that is installed on your computer, follow these steps:
    1. Click Start, click Control Panel, and then double-click Add or Remove Programs.
    2. In the Currently installed programs box, click the program that you want to remove, and then click Remove.
    3. If you are prompted to confirm the removal of the program, click Yes.
    Some additional observations...
    You seem to be running Firefox 3.0, for which security support ended in March of 2010. You may wish to update your Firefox to the newer Firefox 3.6 in order to continue to receive security updates. I believe simply pressing Help in the menu bar of Firefox, and then "Check for Updates" will accomplish this.
    Lastly, your Adobe Flash player for Firefox is out of date, and contains a security vulnerability. It can be updated by following the below link and clicking Agree And Install Now and then running the downloaded file.
    http://get.adobe.com/flashplayer/

  • Can multiple LabVIEW programs simultaneously access the same NI-DAQmx hardware?

    I am developing a test station system that, in essence, runs several
    seperate LabVIEW programs simultaneously on the same computer, each
    controlling a different set of I/O channels on one shared set of NI
    DAQ hardware (analog and digital I/O PCI boards with external signal
    conditioning).
    I have already gotten a system like this running almost flawlessly
    using LabVIEW 6.1, NI-DAQmx 7.1 with traditional channels, and older
    E-series DAQ hardware. So long as two programs do not try to write to
    the same output channel simultaneously, everything works exactly as
    expected--I can even read from the same (named) channel simultaneously
    from more than one program. The only issue I have had is that if
    one
    of the compiled applications is closed (not just stopped, but closed)
    while others are still running, Windows XP (SP1) will bluescreen on a
    driver error. This is undesireable, but acceptable (though if there's
    a fix/workaround, I'd love to hear it).
    I am now building a similar system using mostly the same software
    (with an upgrade to LabVIEW 7.1), and I've noticed that the new
    M-series DAQ hardware seems to offer much more bang for the buck than
    old E-series hardware and its kin.
    My question is this: It appears that I/O on M-series hardware must be
    performed with new mx channels, with traditional channels not being an
    option. I am therefore wondering if I will be able to do this kind of
    multiple simultaneous access with mx channels, or if I must purchase
    the classic hardware and use traditional channels for this somewhat
    unorthodox application.
    (Incidentally, the multiple simultaneous program thing is a
    requirement for this system, as it is the only clean way to run
    multiple
    identical copies of the same complete program that only
    operate on different I/O channels, and re-doing the program from
    scratch is not an option.)

    Dear Anonymous,
    Thank you for contacting National Instruments.
    To address your question, I don't know if multiple simultaneous access with mx channels is possible, but I do not see why it wouldn't be. The best way to find out would be to test it. I don't have your program or hardware, so I'm pointing you to some Compatibility VIs. These are VIs that look exactly like Traditional DAQ VIs except that underneath they call the DAQmx driver instead of the Traditional DAQ driver. If your device works when you substitute these Compatibility VIs in for the Traditional DAQ VIs, then you'll know the M Series boards will work for you.
    Here is the link for information about the Compatibility VIs:
    http://digital.ni.com/softlib.nsf/954feaeea92d90918625674b00658b
    83/9d67f671bcc6850586256e630059308b?OpenDocument
    Let me know if you have any further questions or if this does not resolve your issue.
    Thanks again and have a great day!
    Chad AE
    Applications Engineer - National Instruments

  • How to write a applet with multiple menu

    Hi all,
    How to write a applet with multiple menu or please tell me where can I get a examples
    thanks

    i'm writing a project and it seem not work with browser. If anyone can help please leave me a e-mail so that i can send my source to you.
    Thanks so much

  • Error message-The installer has insufficent privileges to modify this file:C:\Program Data\microsoft\windows\start menu\programs\iTunes\.iTunes.ink

    error message-The installer has insufficent privileges to modify this file:C:\Program Data\microsoft\windows\start menu\programs\iTunes\.iTunes.ink     
    How do I correct this to download iTunes so it will run?

    That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
    XP instructions in the following document: How to perform disk error checking in Windows XP
    Vista instructions in the following document: Check your hard disk for errors
    Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get an install to go through properly afterwards?

  • Can we run multiple sapinst programs in parallel?

    We are planning to upgrade our EP, XI and BW simultaneously. These SIDs all reside on the same server and same OS. Is it possible to run multiple sapinst programs in parallel? I know it may require specifying separate ports for the 2nd and 3rd instance of sapinst. For example: sapinst 1 gets default ports 21212, 21213. sapinst 2 will take 21214, 21215 and sapinst 3 takes 21216 and 21217.
    Has anyone attempted this sort of a thing before? Appreciate your thoughts.

    Never done that before, maybe it works .. however it could run into problems when the sapinst are trying to access the same paths / files.
    Regards,
    Siddhesh

  • How do I get multiple menu bars?

    Hi Guys,
    I was very excited when I found that OS X Mavericks had finally added a menu bar to each monitor. Excitement has now turned to dissapointment as I've found that disabling independent spaces for each monitor also disables the new multi menu bar feature. Why???????
    For my particular setup and workflow, sharing spaces between my monitors works better for me. I don't want seperate spaces for each monitor, but I do want a menu bar on each screen. Why is Apple punishing me? Anyway, I'm hoping someone is aware of a simple hack for enabling multiple menu bars without enabling independant spaces for each monitor.
    Thanks

    Try one of these:
    Try to repair the disk permissions:
    * http://thexlab.com/faqs/repairprocess.html
    Try to remove the Firefox plist file (org.mozilla.firefox.plist).
    * http://www.macfixit.com/article.php?story=20060606082246983 How .plist files become corrupt and troubleshooting the results
    Go to "Library > Preferences" and remove the plist file for Firefox (org.mozilla.firefox.plist).
    Make sure that toolbars like the "Navigation Toolbar" and the "Bookmarks Toolbar" are visible: "View > Toolbars"
    * If items are missing then open the Customize window via "View > Toolbars > Customize" or via "Firefox > Options > Toolbar Layout" (Linux, Windows)
    * If a missing item is in the toolbar palette then drag it back from the Customize window on the toolbar
    * If you do not see an item on a toolbar and in the toolbar palette then click the "Restore Default Set" button to restore the default toolbar set up.
    See also:
    * http://kb.mozillazine.org/Toolbar_customization
    * https://support.mozilla.com/kb/Back+and+forward+or+other+toolbar+items+are+missing

  • Message Include * is used in multiple main programs (210)

    Hi,
    I get the message:
    Select a main program in Properties View on tab "Source"
    Include /SAPDMC/SAP_LSMW_READ_FORMS is used in multiple main programs (210).
    when I want to modify an include in LSMW.
    The effect is for example that I cannot open the declaration of a data element.
    Is there something I can do?
    Best regards
    Volker

    Hi Michael,
    I have updated ADT to newest version (com.sap.adt.core is now 2.31.5).
    When I type something in that Include or save it, the error message is now displayed in status bar (which is of course much better, and I can at least edit the file):
    However, when I try to activate this Include, same popup comes as earlier with this error message. It is still not possible to edit the main program in properties.
    What I also found out:
    If I create new include, let's name it Z_INCL1, and use it in one program - Z_PROG1, include Z_INCL1 will have as main program Z_PROG1 and everything works fine. (of course).
    When I create Z_PROG2 which is including Z_INCL1, main program of Z_INCL1 will be Z_INCL1 and I can no longer compile Z_INCL1. (So far there was nothing new).
    Now when I remove Include statement from Z_PROG2, main program of Z_INCL1 will still be Z_INCL1 and I still cannot compile Z_INCL1 with the same error message even thougt it is now only included in 1 program again. I have to remove include statement also from Z_PROG1 and than I am able to compile Z_INCL1 again.
    Have a nice day!
    O.

  • After installation, why isn't PP CS4 showing up as a desktop shortcut or in Start Menu Programs?

    I have a new desktop for editing and have Windows 7 Pro loaded. With all other applications off, I installed PP CS4 with my program CD. Everything went smoothly without errors. When I wanted to open PP from Start Menu Programs, it wasn't listed. All of the accompanying Adobe software was listed except for Premiere. A shortcut on the desktop didn't appear either. Premiere is listed in the Control Panel under Programs & Features. It is also present in my C drive Program Files (x86) folder. Any thoughts about what happened and how I can fix it? Thanks!

    Hi Jim!
    Sorry I haven't responded for a month. I've been out-of-state on a family matter and have just returned.
    Here is what's in the PP CS4 folder:
    I followed the links to install the Windows Virtual PC feature into my Windows 7 Pro OS. I have attched the following screen shot that shows in the Note section at the bottom that the virtual application feature is not supported in Windows 7 Pro.
    Please let me know which way I should go from here.
    Thx!
    Sigrid

  • Can we use same data definition with multiple concurrent programs?

    Hi,
    My requirement is as below:
    I have two concurrent programs (say CP1 and CP2), both concurrent programs need to use same data definition (the same data template xml file) and same RTF layout template. However when registering data definition in the E-Biz, the data definition code must match concurrent program, hence I have to create two definitions (for the same data template xml file) and because layout template is attached with data definition I have to duplicate the layout definition also.
    In summary, i have to create two (duplicate) Data Definition and Layout Template for the same dataTemplate.xml and Layout.rtf files. Is there any way to avoid this duplication?
    The only issue with duplication is any change in xml or rtf needs to be updated in all the four definitions (2 data definitions and 2 layout definitions).
    Thanks
    Bhavik

    I found the resolution and thought of sharing
    you can see this post
    *[How to use same data definition/template between multiple concurrent programs? |http://techatwork.wordpress.com/2009/08/06/how-to-use-same-data-definitiontemplate-between-multiple-concurrent-programs/]*
    Thanks
    Bhavik

  • FNDLOAD: Downloading multiple concurrent programs at once

    Hi,
    Does anyone has the FNDLOAD syntax for downloading multiple concurrent programs at once into a single file in 11.5.10 tech stack.
    For e.g say I have programs p1 and pr2. I want to download p1 and pr2 into a single file say test.ldt which has both concurrent programs.
    Thanks in advance.

    Hi,
    I do not think this can be done in one step as you need to run the command twice (assuming you need to download two concurrent programs), then merge the ldt files before uploading it again (in a single file). If all the concurrent programs you want to download under the same application, you may try the following:
    FNDLOAD apps/apps 0 Y DOWNLOAD $FND_TOP/patch/115/import/afcpprog.lct file_name.ldt PROGRAM APPLICATION_SHORT_NAME="<application_short_name>"
    Regards,
    Hussein

  • Autostarting multiple terminal programs?

    Hi there,
    Is there any way I can start multiple terminal programs using Awesome WM?
    I'd like to start htop, alsamixer, cmatrix, irssi, moc and xfce-4 terminal. So essentially I'd like to start six alternate versions of xfce4-terminal on startup.

    Hi everyone.
    I now have multiple terminal programs running using urxvt -name, which works great. However, I can't get them to shift to different tags. I've tried quite a few different methods, but I can't seem to get it working.
    Using xprop I can determine that the window class is (using ranger as an example) is:
    WM_COMMAND(STRING) = { "urxvt", "-name", "RANGER", "-e", "ranger" }
    but in the rules section, I've tried multiple variations and nothing seems to work.
    --Autostart Programs
    awful.util.spawn_with_shell("urxvt -name HTOP -e htop")
    awful.util.spawn_with_shell("urxvt -name RANGER -e ranger")
    awful.util.spawn_with_shell("urxvt -name CMATRIX -e cmatrix")
    --awful.util.spawn_with_shell("urxvt")
    --awful.util.spawn_with_shell("")
    -- {{{ Rules
    awful.rules.rules = {
    -- All clients will match this rule.
    { rule = { },
    properties = { border_width = beautiful.border_width,
    border_color = beautiful.border_normal,
    focus = true,
    keys = clientkeys,
    buttons = clientbuttons } },
    { rule = { class = "HTOP" },
    properties = { tag = tags[1][4] } },
    { rule = { class = "urxvt -name RANGER -e ranger" },
    properties = { tag = tags[1][4] } },
    { rule = { class = "urxvt", "-name", "CMATRIX", "-e", "cmatrix" },
    properties = { tag = tags[1][4] } },
    Also, Trilby with Awesome WM tag essentially refers to a virtual desktop. With regards to the 2-D array, I believe the first digit refers to the monitor but the second refers to the tag you want to place it in.
    Edit:
    I think I will give Tmux a go. It does seem incredibly useful.
    Last edited by Gwynplaine (2014-11-14 20:15:51)

  • HT1926 when i try to download itunes 11 my computer stops the download and displays the message could not access network location #user profile%\start menu\programs\startup\

    when i try to download itunes 11.1 or any updates i get the message could not access network location #user profile%\start menu\programs\startup\. any help

    Let's try the fixit from the following Microsoft document with that one:
    Fix problems with programs that can't be installed or uninstalled

  • Working on a menu program

    I got everything done on my program with a couple minor issues...first my clear button in the menu exits my program and my exit the program button does not do anything and everything looks right on my end...the other issue is I am getting two errors in the parsing and it looks right to me but I guess I am doing something wrong:
    instructions:
    1.     4 Labels (align them to the right by using the parameter Label.RIGHT when you construct your label� Label lengthLabel = new Label(�Enter the length: �, Label.RIGHT);)
    2.     4 TextFields (2 for input and 2 for output� your output fields should be read-only). All of your TextFields can be length 10.
    3.     2 Buttons� one to calculate the area and perimeter and one to exit� use the labels for the buttons shown below
    area = length * width
    perimeter = 2 * (length + width)
    4.     create a menu for File -> Exit (to terminate the application)
    5.     create a menu for Edit -> Clear (to clear all TextFields)
    6.     only calculate/display the area and perimeter if length and width are valid and greater than zero� if not, display an error message in a dialog box, clear out all TextFields, and put the cursor in the length field.
    7.     when you click the Calculate button, be sure all 4 values in the TextFields are formatted to two decimal places with a comma in the thousands place (see below)
    8.     be sure to include code to terminate the application when the X is clicked
    9.     use a GridLayout for the frame with 5 rows, 2 columns, and 5 pixels for spacing horizontally and vertically
    10.     utilize the setActionCommand() method to allow for only one �exit� section of code in your actionPerformed() method
    11.     have the Frame display in the center of the monitor with a width of 350 and height of 200
    12.     have the Frame title of �Area and Perimeter of a Rectangle�
    //import packages
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.datatransfer.*;
    import java.text.DecimalFormat;
    import javax.swing.JOptionPane;
    //create a subclass at the fram class
    public class RectangleApp extends Frame implements ActionListener
         //construct variables
         private Label lengthLabel = new Label("Enter the length: ", Label.RIGHT);
         private Label widthLabel = new Label("Enter the width: ", Label.RIGHT);
         private Label areaLabel = new Label("Area: ", Label.RIGHT);
         private Label perimeterLabel = new Label("Perimeter: ", Label.RIGHT);
         private Panel topPanel;
         private Button calculateButton = new Button("Calculate");
         private Button exitButton = new Button("Exit the Program");
         private TextField lengthField = new TextField(10);
         private TextField widthField = new TextField(10);
         private TextField areaField = new TextField(10);
         private TextField perimeterField = new TextField(10);
         private boolean first;
         private boolean clearText;
         private DecimalFormat calcPattern;
         private double length;
         private double width;
         private double area;
         private double perimeter;
         //constructor method
         public RectangleApp()
              //create an instance of the menu
              MenuBar mnuBar = new MenuBar();
              setMenuBar(mnuBar); //display the previously constructed MenuBar
              //construct and populate File Menu
              Menu mnuFile = new Menu("File"); //create a command on the MenuBar
              mnuBar.add(mnuFile);
              MenuItem mnuFileExit = new MenuItem("Exit");
              //construct a command to go under a menu
              mnuFile.add(mnuFileExit);
              //construct and populate the edit menu
              Menu mnuEdit = new Menu("Edit");
              mnuBar.add(mnuEdit);
              MenuItem mnuEditClear = new MenuItem("Clear");
              mnuEdit.add(mnuEditClear);
              //register the action listener with each of the menuitems
              mnuFileExit.addActionListener(this);
              mnuEditClear.addActionListener(this);
              //assign an ActionCommand to each of the MenuItems
              mnuFileExit.setActionCommand("Exit");
              mnuEditClear.setActionCommand("Clear");
              //construct components and initialize beginning values
              topPanel = new Panel();
              calcPattern = new DecimalFormat("###,###.##");
              topPanel.add(lengthLabel);
              topPanel.add(lengthField);
              length = 0.0;
              topPanel.add(widthLabel);
              topPanel.add(widthField);
              width = 0.0;
              topPanel.add(areaLabel);
              topPanel.add(areaField);
              area = 0.0;
              areaField.setEditable(false);
              topPanel.add(perimeterLabel);
              topPanel.add(perimeterField);
              perimeter = 0.0;
              perimeterField.setEditable(false);
              topPanel.add(calculateButton);
              topPanel.add(exitButton);
              //set layouts for the Frame and Panels
              setLayout(new BorderLayout());
              topPanel.setLayout(new GridLayout(5, 2, 5, 5));
              //add components to frame
              add(topPanel, BorderLayout.NORTH);
              //allow the x to close the application
              addWindowListener(new WindowAdapter()
                   public void windowClosing(WindowEvent e)
                        System.exit(0);
              } //end window adapter
         } //end calculator[] constructor method
              public static void main(String args [])
                   //construct an instance of the Frame (Calculator)
                   RectangleApp f = new RectangleApp();
                   f.setTitle("Area and Perimeter of a Rectangle");
                   f.setSize(350, 200);
                   f.setLocationRelativeTo(null);
                   f.setVisible(true);
              } //end main
              public void actionPerformed(ActionEvent e)
                   //test for menu item clicks
                   String arg = e.getActionCommand();
              //exit was clicked
              if(arg == "Exit");
              System.exit(0);
              //clear was clikced
              if(arg.equals("Clear"))
                   clearText = true;
                   first = true;
              } //end if about
              //Calculate button was clicked
                   if(arg.equals("Calculate"))
                   convert data in TextField to int
                   double length = Double.parseDouble(lengthField.getText());
                   double width = Double.parseDouble(widthField.getText());
                   double area = Double.parseDouble(areaField.getText());
                   double perimeter = Double.parseDouble(perimeterField.getText());
                   area = length * width;
                   perimeter = length + width;
              } //end the if go
              //exitbutton was clicked
              if(arg.equals("Exit the program"))
                   System.exit(0);
              } //end the if exit
         } //end action performed
    } //end classby the way I know I have not done error checking just wanna make sure everything is right first before I check for errors

    one last thing and thank you for all your help...calculates fine just only showing one decimal and I thought it is right how it is but must be doin something wrong with it
    //import packages
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.datatransfer.*;
    import java.text.DecimalFormat;
    import javax.swing.JOptionPane;
    //create a subclass at the fram class
    public class RectangleApp extends Frame implements ActionListener
         //construct variables
         private Label lengthLabel = new Label("Enter the length: ", Label.RIGHT);
         private Label widthLabel = new Label("Enter the width: ", Label.RIGHT);
         private Label areaLabel = new Label("Area: ", Label.RIGHT);
         private Label perimeterLabel = new Label("Perimeter: ", Label.RIGHT);
         private Panel topPanel;
         private Button calculateButton = new Button("Calculate");
         private Button exitButton = new Button("Exit the Program");
         private TextField lengthField = new TextField(10);
         private TextField widthField = new TextField(10);
         private TextField areaField = new TextField(10);
         private TextField perimeterField = new TextField(10);
         private boolean first;
         private boolean clearText;
         private DecimalFormat calcPattern;
         private double length;
         private double width;
         private double area;
         private double perimeter;
         //constructor method
         public RectangleApp()
              //create an instance of the menu
              MenuBar mnuBar = new MenuBar();
              setMenuBar(mnuBar); //display the previously constructed MenuBar
              //construct and populate File Menu
              Menu mnuFile = new Menu("File"); //create a command on the MenuBar
              mnuBar.add(mnuFile);
              MenuItem mnuFileExit = new MenuItem("Exit");
              //construct a command to go under a menu
              mnuFile.add(mnuFileExit);
              //construct and populate the edit menu
              Menu mnuEdit = new Menu("Edit");
              mnuBar.add(mnuEdit);
              MenuItem mnuEditClear = new MenuItem("Clear");
              mnuEdit.add(mnuEditClear);
              //register the action listener with each of the menuitems
              mnuFileExit.addActionListener(this);
              mnuEditClear.addActionListener(this);
              //assign an ActionCommand to each of the MenuItems
              mnuFileExit.setActionCommand("Exit");
              mnuEditClear.setActionCommand("Clear");
              //construct components and initialize beginning values
              topPanel = new Panel();
              calcPattern = new DecimalFormat("###,###.00");
              topPanel.add(lengthLabel);
              topPanel.add(lengthField);
              length = 0.00;
              topPanel.add(widthLabel);
              topPanel.add(widthField);
              width = 0.00;
              topPanel.add(areaLabel);
              topPanel.add(areaField);
              area = 0.00;
              areaField.setEditable(false);
              topPanel.add(perimeterLabel);
              topPanel.add(perimeterField);
              perimeter = 0.00;
              perimeterField.setEditable(false);
              topPanel.add(calculateButton);
              calculateButton.addActionListener(this);
              topPanel.add(exitButton);
              exitButton.addActionListener(this);
              //set layouts for the Frame and Panels
              setLayout(new BorderLayout());
              topPanel.setLayout(new GridLayout(5, 2, 5, 5));
              //add components to frame
              add(topPanel, BorderLayout.NORTH);
              //allow the x to close the application
              addWindowListener(new WindowAdapter()
                   public void windowClosing(WindowEvent e)
                        System.exit(0);
              } //end window adapter
         } //end calculator[] constructor method
              public static void main(String args [])
                   //construct an instance of the Frame (Calculator)
                   RectangleApp f = new RectangleApp();
                   f.setTitle("Area and Perimeter of a Rectangle");
                   f.setSize(350, 200);
                   f.setLocationRelativeTo(null);
                   f.setVisible(true);
              } //end main
              public void actionPerformed(ActionEvent e)
                   //test for menu item clicks
                   String arg = e.getActionCommand();
              //exit was clicked
              if(arg == "Exit")
              System.exit(0);
              //clear was clikced
              if(arg == "Clear")
                   lengthField.setText("");
                   widthField.setText("");
                   areaField.setText("");
                   perimeterField.setText("");
                   first = true;
              } //end if about
              //Calculate button was clicked
                   if(arg == "Calculate")
                        //convert data in TextField to int
                        double length = Double.parseDouble(lengthField.getText());
                        double width = Double.parseDouble(widthField.getText());
                        area = length * width;
                        perimeter = 2 * (length + width);
                        areaField.setText(String.valueOf(area));
                     perimeterField.setText(String.valueOf(perimeter));
              } //end the if calculate
                   //exit the program was clicked
                   if(arg == "Exit the Program")
                   System.exit(0);
              } //end action performed
    } //end class

  • Multiple Menu List Selection question.

    In a form I have a multiple select list that's populated dynamically from a table, e.g. label = full name, value = name_id. I need to be able to insert both label and value into another table. Normally, selecting a label will insert the value, but what technique (short example, please) can I use to extract the label itself as well as it's value from the list?
    Thanks!

    Hi there,
    If you are prepared to consider a commercial solution then
    you might
    like to take a look at the WebAssist extension "Database
    Search"
    To learn more about this extension please visit the web
    address I have
    included below:
    http://www.webassist.com/professional/products/productdetails.asp?PID=72
    You might also like to consider our Dynamic dropdowns
    solution. To learn
    more about this product, take a look at this URL:
    http://www.webassist.com/professional/products/productdetails.asp?PID=1
    Feel free to contact me off list, if you would like to learn
    more about
    either of these or any other WebAssist software.
    Regards,
    Mark
    Mark Fletcher
    WebAssist.com
    MacPMH wrote:
    > Hi All,
    >
    > I am looking for a dreamweaver and/or PHP/MySQL tutorial
    and/or extension
    > and/or tool that can walk me through creating an
    advanced search page. For
    > example, I have multiple search criteria which allow
    users to select various
    > criteria:
    >
    > Menu/list #1 (Allows multiple)
    > Option 1, 2, 3?25
    >
    > Menu/list #2 (Allows multiple)
    > Option 1, 2, 3?50
    >
    > Menu/list #3 (Allows multiple)
    > Option 1, 2, 3?10
    >
    > Radio button (allows user to select the way the
    information is displayed)
    > By Date
    > By State
    > By Score
    > By whatever?
    >
    > Drop down (allows user to select how many records to
    display)
    > View 25
    > View 50
    > View 75
    > View 100
    > View ALL
    >
    > Any comments and suggestions would be greatly
    appreciated. BTW, I consider
    > myself a step above the beginner level - could consider
    myself an intermediate
    > user of Dreamweaver, PHP/MySQL so please be gentle
    >
    >

Maybe you are looking for

  • Probleming when starting Application Sharing

    Hello, when I open the CLP and want to start Application Sharing I have to select a user from my contact list first (otherwise I get a message to do so). But after selecting an application to share the user is still not invated and I have to select h

  • Table name for the field FAEDT(net due date)

    hi every body, plz can any body tell me the table name for the field net due date(FAEDT). its very very urgent thanq.

  • How to configure traveling MacBook and airport express

    Here is the probelm I am interested in getting help with I frequently travel with my family with Mac Books and an airport express. When we are at a hotel we dont want to pay for 5 internet connections at the daily rate. So if the hotel has an etherne

  • Merge pdf - Empty page

    Guys, I am trying to merge some pdf files into one file. This is my code - (BOOL) concateFiles:(NSArray *) filePaths {     PDFDocument * outputDocument = [[PDFDocument alloc] init];     NSUInteger pageIndex = 0;     for (id file in filePaths) {      

  • Cannot select playlists to sync because they do not appear on my screen?

    cannot select playlists to sync because they do not appear on my screen, how do I correct that?