Need help on menu list logic

Thanks in advance!
I need help on a menu list logic.
There's this main menu which has 6 list buttons, and second
list with 4 buttons.
When I press on one button, it should load the next list.
Problem I have here is when I click on the one button, it
clears the previous main list buttons (which is what I want). On
the second list, it only shows the last button, aka 4th button.
I've attached my code here below, which is in the first
frame.

After posting this the solution hit me.
I had to pass the parameter for the createButton as a "_root"
instead of "this"

Similar Messages

  • Need help regarding Linked List

    I'm a beginner who just spent ages working on the following code.. but need help on re-implementing the following using a linked list, i.e. no array is allowed for customer records but you still can use arrays for names, address, etc.. Hopefully I've inserted enough comments..
    Help very much appreciated!! Thanks! =]
    import java.util.Scanner;
    import java.io.*;
    public class Bank
    /* Private variables declared so that the data is only accessible to its own
         class, but not to any other class, thus preventing other classes from
         referring to the data directly */
    private static Customer[] customerList = new Customer[30];               
         //Array of 30 objects created for storing information of each customer
    private static int noOfCustomers;                                                       
         //Integer used to store number of customers in customerList
         public static void main(String[] args)
              Scanner sc = new Scanner(System.in);
              menu();
         public static void menu()
              char choice;
              String filename;
              int custId,counter=0;
              double interestRate;
    Scanner sc = new Scanner(System.in);
              do
              //Displaying of Program Menu for user to choose
         System.out.println("ABC Bank Customer Management System Menu");     
         System.out.println("========================================");
         System.out.println("(1) Input Data from File");
         System.out.println("(2) Display Data");
         System.out.println("(3) Output Data to File");
                   System.out.println("(4) Delete Record");
                   System.out.println("(5) Update Record");
         System.out.println("(Q) Quit");
                   System.out.println();
                   System.out.print("Enter your choice: ");
                   String input = sc.next();
                   System.out.println();
                   choice = input.charAt(0);     
              //switch statement used to assign each 'selection' to its 'operation'               
         switch(choice)
         case '1': int noOfRecords;
                                       System.out.print("Enter file name: ");
              sc.nextLine();                                             
              filename = sc.nextLine();
                                       System.out.println();
              noOfRecords = readFile(filename);
    System.out.println(+noOfRecords+" records read.");
              break;
         case '2': displayRecords();
              break;
         case '3': writeFile();
         break;
                        case '4': System.out.print("Enter account ID to be deleted: ");
                                       sc.nextLine();
                                       custId = sc.nextInt();
                                       deleteRecord(custId);
                                       break;
                        case '5': if(counter==0)
              System.out.print("Enter current interest rate for saving account: ");
                                            sc.nextLine();
                                            interestRate = sc.nextDouble();
                                            update(interestRate);
                                            counter++;
                                       else
              System.out.println("Error: Accounts have been updated for the month.");
                                            break;
                   }System.out.println();
         }while(choice!='Q' && choice!='q');
    /* The method readFile() loads the customer list of a Bank from a specified
         text file fileName into customerList to be stored as array of Customer
         objects in customerList in ascending alphabetical order according to the
         customer names */
    public static int readFile(String fileName)
         int custId,i=0;
              String custName,custAddress,custBirthdate,custPhone,custAccType;
              double custBalance,curRate;
              boolean d;
    /* Try block to enclose statements that might throw an exception, followed by
         the catch block to handle the exception */
    try
                   Scanner sc = new Scanner(new File(fileName));
    while(sc.hasNext())          
    /* sc.next() gets rid of "Account", "Id" and "=" */
    sc.next();sc.next();sc.next();
    custId = sc.nextInt();
                        d=checkDuplicate(custId);               
    /* checkDuplicate() is a method created to locate duplicating ids in array */
    if(d==true)
    /* A return value of true indicates duplicating record and the sc.nextLine()
         will get rid of all the following lines to read the next customer's record */
                             sc.nextLine();sc.nextLine();sc.nextLine();
                             sc.nextLine();sc.nextLine();sc.nextLine();
                             continue;     
    /* A return value of false indicates no duplicating record and the following
         lines containing the information of that customer's record is being read
         in */
                        if(d==false)
    /* sc.next() gets rid of "Name" and "=" and name is changed to upper case*/
         sc.next();sc.next();
         custName = sc.nextLine().toUpperCase();
    /* sc.nextLine get rids of the following lines to read the next customer's
         record if length of name is more than 20 characters*/
         if(custName.length()>21)
    System.out.println("Name of custId "+custId+" is more than 20 characters");
                                  System.out.println();
         sc.nextLine();sc.nextLine();sc.nextLine();sc.nextLine();
         continue;
    /* sc.next() gets rid of "Address" and "=" */           
         sc.next();sc.next();
         custAddress = sc.nextLine();
    /* sc.nextLine get rids of the following lines to read the next customer's
         record if length of address is more than 80 characters*/                         
                             if(custAddress.length()>81)
    System.out.println("Address of custId "+custId+" is more than 80 characters");
                                  System.out.println();
         sc.nextLine();sc.nextLine();sc.nextLine();sc.nextLine();
         continue;
    /* sc.next() gets rid of "DOB" and "=" */                              
         sc.next();sc.next();
         custBirthdate = sc.nextLine();
    /* sc.nextLine get rids of the following lines to read the next customer's
         record if length of date of birth is more than 10 characters*/                         
                             if(custBirthdate.length()>11)
    System.out.println("D.O.B of custId "+custId+" is more than 10 characters");
                                  System.out.println();
         sc.nextLine();sc.nextLine();sc.nextLine();sc.nextLine();
         continue;
    /* sc.next() gets rid of "Phone", "Number" and "=" */                              
         sc.next();sc.next();sc.next();
         custPhone = sc.nextLine();
    /* sc.nextLine get rids of the following lines to read the next customer's
         record if length of phone number is more than 8 characters*/                         
                             if(custPhone.length()>9)
    System.out.println("Phone no. of custId "+custId+" is more than 8 characters");
                                  System.out.println();
         sc.nextLine();sc.nextLine();sc.nextLine();sc.nextLine();
         continue;
    /* sc.next() gets rid of "Account", "Balance" and "=" */                              
         sc.next();sc.next();sc.next();
         custBalance = sc.nextDouble();
    /* sc.next() gets rid of "Account", "Type" and "=" */                              
                             sc.next();sc.next();sc.next();
                             custAccType = sc.next();
                             if(custAccType.equals("Saving"))
    customerList[noOfCustomers] = new Account1(custId,custName,custAddress,custBirthdate,custPhone,custBalance,custAccType);
    sc.nextLine();
                                                 noOfCustomers++;
                                                 i++;
    else if(custAccType.equals("Checking"))
    customerList[noOfCustomers] = new Account2(custId,custName,custAddress,custBirthdate,custPhone,custBalance,custAccType);
                                                 sc.nextLine();
                                                 noOfCustomers++;
                                                 i++;
    else if(custAccType.equals("Fixed"))
    sc.next();sc.next();sc.next();sc.next();
                                                 curRate = sc.nextDouble();
                                                 Account3 temp = new Account3(custId,custName,custAddress,custBirthdate,custPhone,custBalance,custAccType,curRate);
                                                 customerList[noOfCustomers]=temp;
                                                 sc.nextLine();
                                                 noOfCustomers++;
                                                 i++;
                             else
                                  System.out.println("Account type not defined.");
         if(noOfCustomers==30)
         System.out.println("The customer list has reached its maximum limit of 30 records!");
         System.out.println();
         return noOfCustomers;
    //Exceptions to be caught
    catch (FileNotFoundException e)
    System.out.println("Error opening file");
    System.exit(0);
    catch (IOException e)
    System.out.println("IO error!");
    System.exit(0);
    /* Bubblesort method used to sort the array in ascending alphabetical order
         according to customer's name */
    bubbleSort(customerList);
              return i;
    /* The method displayRecords() displays the data of the customer records on
         screen */
    public static void displayRecords()
    int k;
    /* Displaying text using the printf() method */
         for(k=0;k<noOfCustomers;k++)
         System.out.printf("Name = %s\n", customerList[k].getName());
         System.out.printf("Account Balance = %.2f\n", customerList[k].getBalance());
         System.out.printf("Account Id = %d\n", customerList[k].getId());
    System.out.printf("Address = %s\n", customerList[k].getAddress());
    System.out.printf("DOB = %s\n", customerList[k].getBirthdate());
    System.out.printf("Phone Number = %s\n", customerList[k].getPhone());
         String type = customerList[k].getAccType();
         System.out.println("Account Type = " +type);
    if(type.equals("Fixed"))
         System.out.println("Fixed daily interest = "+((Account3)customerList[k]).getFixed());
         System.out.println();               
    /* The method writeFile() saves the content from customerList into a
         specified text file. Data is printed on the screen at the same time */
    public static void writeFile()
    /* Try block to enclose statements that might throw an exception, followed by
    the catch block to handle the exception */
    try
    int i;
              int n=0;
    //PrintWriter class used to write contents of studentList to specified file
              FileWriter fwStream = new FileWriter("newCustomers.txt");
              BufferedWriter bwStream = new BufferedWriter(fwStream);
              PrintWriter pwStream = new PrintWriter(bwStream);     
    for(i=0;i<noOfCustomers;i++)
         pwStream.println("Account Id = "+customerList.getId());
              pwStream.println("Name = "+customerList[i].getName());
    pwStream.println("Address = "+customerList[i].getAddress());
    pwStream.println("DOB = "+customerList[i].getBirthdate());
    pwStream.println("Phone Number = "+customerList[i].getPhone());
              pwStream.printf("Account Balance = %.2f\n", customerList[i].getBalance());
              pwStream.println("Account Type = "+customerList[i].getAccType());
                   if(customerList[i].getAccType().equals("Fixed"))
                        pwStream.println("Fixed Daily Interest = "+((Account3)customerList[i]).getFixed());
              pwStream.println();
              n++;
    //Closure of stream
    pwStream.close();
              System.out.println(+n+" records written.");
    catch(IOException e)
    System.out.println("IO error!");     
    System.exit(0);
         //Deletes specified record from list
    public static void deleteRecord(int id)
    int i;
              i=locate(id);
    if(i==200)
    //checking if account to be deleted does not exist
    System.out.println("Error: no account with the id of "+id+" found!");
              //if account exists
    else
                        while(i<noOfCustomers)
                             customerList[i] = customerList[i+1];
                             i++;
                        System.out.println("Account Id: "+id+" has been deleted");
                        --noOfCustomers;
         //Updates the accounts
    public static void update(double interest)
    int i,j,k;
              double custBalance,addition=0;
    for(i=0;i<noOfCustomers;i++)
                        if(customerList[i] instanceof Account1)
                             for(j=0;j<30;j++)
                                  addition=customerList[i].getBalance()*interest;
                                  custBalance=customerList[i].getBalance()+addition;
                                  customerList[i].setBalance(custBalance);
                        else if(customerList[i] instanceof Account2)
                             continue;
                        else if(customerList[i] instanceof Account3)
                             for(j=0;j<30;j++)
    addition=customerList[i].getBalance()*((Account3)customerList[i]).getFixed();
    custBalance=customerList[i].getBalance()+addition;
    customerList[i].setBalance(custBalance);
                        else
                             System.out.println("Account type not defined");
              System.out.println("The updated balances are: \n");
              for(k=0;k<noOfCustomers;k++)
    System.out.printf("Name = %s\n", customerList[k].getName());
    System.out.printf("Account Balance = %.2f\n", customerList[k].getBalance());
    System.out.println();
    /* ================== Additional methods ==================== */     
    /* Bubblesort method to sort the customerList in ascending alphabetical
         order according to customer's name */
    public static void bubbleSort(Customer[] x)
    int pass, index;
    Customer tempValue;      
    for(pass=0; pass<noOfCustomers-1; pass++)          
    for(index=0; index<noOfCustomers-1; index++)
    if(customerList[index].getName().compareToIgnoreCase(customerList[index+1].getName()) > 0)
    tempValue = x[index];
    x[index] = x[index+1];
    x[index+1]= tempValue;
    /* Method used to check for duplicated ids in array */     
         public static boolean checkDuplicate(int id)
              int i;
              for(i=0;i<noOfCustomers;i++)
                   if(id == customerList[i].getId())
    System.out.println("Account Id = "+id+" already exists");
                        System.out.println();
    return true;
              }return false;
    /* Method to seach for account id in array */
         public static int locate(int id)
              int j;
              for(j=0;j<noOfCustomers;j++)
                   if(customerList[j].getId()==id)
                        return j;
              j=200;
              return j;
    import java.util.Scanner;
    public class Customer
    /* The following private variables are declared so that the data is only
         accessible to its own class,but not to any other class, thus preventing
         other classes from referring to the data directly */
         protected int id;               
         protected String name,address,birthdate,phone,accType;                              
         protected double balance;               
    // Null constructor of Customer
         public Customer()
              id = 0;
              name = null;
              address = null;
              birthdate = null;
              phone = null;
              balance = 0;
              accType = null;
    /* The following statements with the keyword this activates the Customer
         (int id, String name String address, String birthdate, String phone, double
         balance) constructor that has six parameters of account id, name, address,
         date of birth, phone number, account balance and assign the values of the
         parameters to the instance variables of the object */     
         public Customer(int id, String name, String address, String birthdate, String phone, double balance, String accType)
    //this is the object reference that stores the receiver object     
              this.id = id;
              this.name = name;                         
              this.address = address;
              this.birthdate = birthdate;
              this.phone = phone;
              this.balance = balance;
              this.accType = accType;
    /* The following get methods getId(), getName(), getAddress(), getBirthdate(),
         getPhone(), getBalance() return the values of the corresponding instance
         properties */     
         public int getId()
              return id;
         public String getName()
              return name;
         public String getAddress()
              return address;
         public String getBirthdate()
              return birthdate;
         public String getPhone()
              return phone;
         public double getBalance()
              return balance;
         public String getAccType()
              return accType;
    /* The following set methods setId(), setName(), setAddress(), setBirthdate(),
         setPhone and setBalance() set the values of the corresponding instance
         properties */
         public void setId (int custId)
              id = custId;
         public void setName(String custName)
              name = custName;
         public void setAddress (String custAddress)
              address = custAddress;
         public void setBirthdate (String custBirthdate)
              birthdate = custBirthdate;
         public void setPhone (String custPhone)
              phone = custPhone;
         public void setBalance (double custBalance)
              balance = custBalance;
         public void setAccType (String custAccType)
              accType = custAccType;
    class Account1 extends Customer
         public Account1(int id, String name, String address, String birthdate, String phone, double balance, String accType)
              super(id,name,address,birthdate,phone,balance,accType);
              this.id = id;
              this.name = name;                         
              this.address = address;
              this.birthdate = birthdate;
              this.phone = phone;
              this.balance = balance;
              this.accType = accType;
    class Account2 extends Customer
         public Account2(int id, String name, String address, String birthdate, String phone, double balance, String accType)
              super(id,name,address,birthdate,phone,balance,accType);
              this.id = id;
              this.name = name;                         
              this.address = address;
              this.birthdate = birthdate;
              this.phone = phone;
              this.balance = balance;
              this.accType = accType;
    class Account3 extends Customer
         protected double fixed=0;
         public Account3(int id, String name, String address, String birthdate, String phone, double balance, String accType, double fixed)
              super(id,name,address,birthdate,phone,balance,accType);
              this.id = id;
              this.name = name;                         
              this.address = address;
              this.birthdate = birthdate;
              this.phone = phone;
              this.balance = balance;
              this.accType = accType;
              this.fixed = fixed;
         public double getFixed()
              return fixed;
    Example of a customers.txt
    Account Id = 123
    Name = Matt Damon
    Address = 465 Ripley Boulevard, Oscar Mansion, Singapore 7666322
    DOB = 10-10-1970
    Phone Number = 790-3233
    Account Balance = 405600.00
    Account Type = Fixed
    Fixed Daily Interest = 0.05
    Account Id = 126
    Name = Ben Affleck
    Address = 200 Hunting Street, Singapore 784563
    DOB = 25-10-1968
    Phone Number = 432-4579
    Account Balance = 530045.00
    Account Type = Saving
    Account Id = 65
    Name = Salma Hayek
    Address = 45 Mexican Boulevard, Hotel California, Singapore 467822
    DOB = 06-04-73
    Phone Number = 790-0000
    Account Balance = 2345.00
    Account Type = Checking
    Account Id = 78
    Name = Phua Chu Kang
    Address = 50 PCK Avenue, Singapore 639798
    DOB = 11-08-64
    Phone Number = 345-6780
    Account Balance = 0.00
    Account Type = Checking
    Account Id = 234
    Name = Zoe Tay
    Address = 100 Blue Eyed St, Singapore 456872
    DOB = 15-02-68
    Phone Number = 456-1234
    Account Balance = 600.00
    Account Type = Saving

    1) When you post code, please use[code] and [/code] tags as described in Formatting tips on the message entry page. It makes it much easier to read.
    2) Don't just post a huge pile of code and ask, "How do I make this work?" Ask a specific question, and post just enough code to demonstrate the problem you're having.
    3) Don't just write a huge pile of code and then test it. Write a tiny piece, test it. Then write the piece that will work with or use the first piece. Test that by itself--without the first piece. Then put the two together and test that. Only move on to the next step after the current step produces the correct results. Continue this process until you have a complete, working program.

  • I need help creating a list of vertical clickable buttons in an aside

    OK so here is the setup for this site I am working on. http://www.bestmarketingnames.com/default2.php I need to change that list on the left side into real buttons with destination when you click them. Here is a link that i have been tinkering with. http://www.bestmarketingnames.com/default.php I need them to fit in the left aside and vertical. I can't make them vertical. I'm sure it's a fairly simple thing but I don't know how to do it.
    Thanks

    Try this:
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5, Vertical Menu</title>
    <!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <style>
        /***add these to your CSS Reset***/
        margin: 0;
        padding: 0;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    nav {
        width: 250px;
        background: #555;
        color: #FFF;
        font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, sans-serif;
    nav li {
        list-style: none;
        width: 248px;
        line-height: 2.5em;
        border: 2px solid #CCC;
        text-align: center;
        font-weight: bold;
        font-size: 16px;
        cursor: pointer;
    nav li:hover {
        background-color: #FFF;
        color: #000
    </style>
    </head>
    <body>
    <aside>
    <nav>
    <ul>
    <li>Menu 1</li>
    <li>Menu 2</li>
    <li>Menu 3</li>
    <li>Menu 4</li>
    </ul>
    </nav>
    </aside>
    </body>
    </html>
    ❄  ☃  ❄Nancy O.

  • Need help for access list problem

    Cisco 2901 ISR
    I need help for my configuration.... although it is working fine but it is not secured cause everybody can access the internet
    I want to deny this IP range and permit only TMG server to have internet connection. My DHCP server is the 4500 switch.
    Anybody can help?
             DENY       10.25.0.1 – 10.25.0.255
                              10.25.1.1 – 10.25.1.255
    Permit only 1 host for Internet
                    10.25.7.136  255.255.255.192 ------ TMG Server
    Using access-list.
    ( Current configuration  )
    object-group network IP
    description Block_IP
    range 10.25.0.2 10.25.0.255
    range 10.25.1.2 10.25.1.255
    interface GigabitEthernet0/0
    ip address 192.168.2.3 255.255.255.0
    ip nat inside
    ip virtual-reassembly in max-fragments 64 max-reassemblies 256
    duplex auto
    speed auto
    interface GigabitEthernet0/1
    description ### ADSL WAN Interface ###
    no ip address
    pppoe enable group global
    pppoe-client dial-pool-number 1
    interface ATM0/0/0
    no ip address
    no atm ilmi-keepalive
    interface Dialer1
    description ### ADSL WAN Dialer ###
    ip address negotiated
    ip mtu 1492
    ip nat outside
    no ip virtual-reassembly in
    encapsulation ppp
    dialer pool 1
    dialer-group 1
    ppp authentication pap callin
    ppp pap sent-username xxxxxxx password 7 xxxxxxxxx
    ip nat inside source list 101 interface Dialer1 overload
    ip route 0.0.0.0 0.0.0.0 Dialer1
    ip route 10.25.0.0 255.255.0.0 192.168.2.1
    access-list 101 permit ip 10.25.0.0 0.0.255.255 any
    access-list 105 deny   ip object-group IP any
    From the 4500 Catalyst switch
    ( Current Configuration )
    interface GigabitEthernet0/48
    no switchport
    ip address 192.168.2.1 255.255.255.0 interface GigabitEthernet2/42
    ip route 0.0.0.0 0.0.0.0 192.168.2.3

    Hello,
    Host will can't get internet connection
    I remove this configuration......         access-list 101 permit ip 10.25.0.0 0.0.255.255 any
    and change the configuration ....      ip access-list extended 101
                                                                5 permit ip host 10.25.7.136 any
    In this case I will allow only host 10.25.7.136 but it isn't work.
    No internet connection from the TMG Server.

  • Need help translating menu from as2 to as3

    Ive been at this for a week now, trying to build a
    straightforward accordian menu, translating an existing as2 menu
    into as3. I desperately need help, I've reach my conceptual ends in
    terms of code knowledge. Could someone please take a look at what
    I've got and what I need to do to get it working? I've included the
    AS3 file I've been working on and well as the AS2 files I've been
    referencing and attempting to translate. Any help really be
    appreciated...also, here is the code I have so far below.

    you have a 4 enterframe loops running continually when they
    only need to run after a menu item has been clicked and can stop
    after all menu items have reached their final positions.
    and you need to compute the final positions for each menu
    item after one of them is clicked.
    you might do better to check for an as3 tutorial for an
    accordian menu. it's a bit more involved than you're thinking.

  • No display, need Zen V menu list

    Hello all! I have my daughter's "cast off" Zen V. It has a broken volume switch (turn up button doesn't spring out). I figured out how to use the player with the bad switch without much problem. Then the display faded and went out (permanently so far). For the past year I have used the player without a display. I use Microsoft's Media Player to re-sync new music every so often.
    The problem is that after reloading I need to select "random play all" before I can hear any music. I usually spend about 0 to 20 minutes trying to fight my way through the menus to select random play all. After that I use it with no problem.
    The question is this: Does anyone know of a list of the menu tree for the Zen V (not the plus) In a perfect world it would be a PDF document from Creative but after looking I suspect it doesn't exist. I have a rudimentary list I created by watching some programming posts on Youtube. I suspect something is not quite right since selecting random play all does not always work the first time.
    I'm not even sure that when I press the "backup" or "go back" button (the one below play/pause) where it actully ends up after pressing it a bunch of times. I think it is "music library" (so if I were to then press the select button it would go to the music library), but I have been wondering if instead I need to press "down" to select music library. Any assistance would be appreciated. I hate to throw it away becuause without a display it works very well and the battery lasts a long time!? :-)
    Here is the menu as I think I have it:
    (main): music library - now playing - photos - videos - FM radio - extras - system
    (I don't think I have FM radio on my player but I am not sure)
    (music library menu): playlists - albums - artists - genres - alltracks - recordings - bookmarks - dj
    (dj menu): album of the day - random play all - most popular - rarely heard
    Thanks -- HD

    Hey there,
    for a few days I had the WSoD on my Creative ZEN, so I needed a menuestructure, too. Now it's working again and I've wrote down the structure of the ZEN, seems to be equal to your player, just try it:
    Microphone
    Pictures
    Music
    actual Title
    Playlists
    Albums
    Artists
    Genres
    all Titles
    Records
    Bookmarks
    DJ
    Album of the day
    coincedence (all)
    most popular songs
    Videos
    FM-Radio
    Extras
    SD-CARD
    System
    By Zen there is another problem, when you"re pressing the back button for 0 times for getting into players beginning menuestructure it will not do it. So try to press 0 times the back button, then 0 times the up-arrrow button, the I think you must be at menuepoint "microphone".
    Hope could help you. Greets

  • Need help - Print Menue in Acrobat Pro and Standard

    Hello,
    at first, i have to apologize for my bad englisch because I'm german.
    I downloaded a Trial of Acrobat pro and there I hava an extended Print menue where I can choose individual Color Profiles.
    There is an image attached.
    But I don't really need the Acobat pro Features, because I need Acrobat only for Color Printing on my Printer. And it ist expensive.
    So my Question to you is: Is this extended Print menue also in Acobat 9 Standard?
    There is no Trial, so that I hope, that someone can help me.
    Can I also set this settings in Acrobat 9 Standard?
    Thank you very much for helping me with my buying decision.
    Greetings from Munich
    Sebastian

    The Advanced Print menu in 9 Standard does not have all of the options that are in your screen shot.
    Checked with a coworker who has 9 Standard, and the options are much more limited. (I have 8 Pro).
    Bad news is you would need 9 Pro.
    Saw this the other day; sorry for the slow answer, good luck.

  • Need help on Menu Bar in Muse.....

    I need to link directly one of my page in menu bar to my contact page, i want my page to go directly to contact page when click on menu bar or navigation bar..I need some help on this..
    Thanks

    I think my issue maybe similar, I have download a muse themed template, now i want to change the menu copy from the standard template text.
    I cant seem to be able to edit it, look at the screen shot below:
    It wont let me edit the text at all, I cant select it with the text tool or anything! Help.
    Thanks
    Alan

  • OT: Need help on menu, please (JavaScript)

    Hi there and thanx for your help so long.
    My question is about this menu:
    http://www.byscripts.info/scripts/javascript-dynamic-accordion-menu
    I must say that I really need this to work.
    My effort is here:
    www.energywa.co.za/layout/
    It works beautifully in IE but not as beautifully in FF and Chrome.
    Problem:
    By just putting in the adress as above, the coloured boxes do not appear at all. They only appear when I click on the Home link at the top of the page or I type www.energywa.co.za/layout/index.php in the address bar.
    It does this on my local machine as well as the server where it is hosted on.
    What bugs me is that it works perfect from the writer's site in all 3 browsers. Unfortunately there is no support forum on the site and I have alrwady mailed the writer but had no luck yet.
    Can someone please help me? I am in the process of learning JavaScript but can only copy & paste at the moment. ;-)
    Thank you so long.
    Deon

    Hi Gary.
    I eventually got it to work. There is still a lot of clutter in the script which I need to sif through, but it works! I am so relieved. I used the files another person modified (from the link I posted) and changed them here and there.
    I also still need to get my menu to the left, but that should be easy.
    You can again have a look at www.energywa.co.za/layout
    It works in IE, FF and Chrome.
    Thanx very much again for all your help. I don't know what exactly fixed it, but it is there somewhere.
    Regards,
    Deon

  • Need help in backuping list that extends linkedlist

    enum Status {Public,Player,Board}
    public class Pack extends LinkedList<DominoBone> {
         static Pack []Lists = new Pack[4];
         static Pack []backupLists = new Pack[4];
         private String playerName = "";
         boolean myTurn = false;
         Status status;
         public Pack() {
         public Pack(Pack pack){
              setPlayerName(pack.playerName);
              this.myTurn = pack.myTurn;
              this.status = pack.status;
              DominoBone bone;
              for(int i = 0; i < pack.size(); i++){
                   bone = new DominoBone(pack.get(i));
                   bone.setPack(this);
                   this.add(bone);
                   System.out.println("bone: " + bone.getName() + " click: " + bone.getClicked());
    public class DominoBone {
         private int right;
         private int left;
         private String name = "";
         private boolean clikced = false;
         private GraphicBone visualBone;
         private Pack head;
         public DominoBone(int left,int right) {
              if(right>left)
                   this.left = left;
                   this.right = right;
              } else {
                   this.left = right;
                   this.right = left;
              setName();
              setVisualBone( left, right );
         public DominoBone(DominoBone bone) {
              setLeft(bone.left);
              setRight(bone.right);
              setName();
              setClicked(bone.getClicked());
              visualBone = new GraphicBone(bone.getVisualBone());
    public class GraphicBone extends JLabel {
         private File filePath = null;
         private ImageIcon ii = null;
         private DominoBone bone = null;
         private Pack pack = null;
         private int degreeIndex = 4; //the next rotation will be degreeIndex - see class MainXXXX func. rotateBySpace
         private Side AvaliableSide = Side.none;
         private int up = -1;
         private int down = -1;
         public GraphicBone() {
              super();
              initialize();
         public GraphicBone(String picPath) {
              super();
              setImage(picPath);
              this.setBounds(this.getX(),this.getY(),95,48);
              this.setFile(picPath);
              initialize();
         public GraphicBone(GraphicBone visualBone){
              super();
              setFile(visualBone.getFile().getPath());
              setImage(visualBone.getFile().getPath());
              setBone(visualBone.getBone());
              setPack(visualBone.getPack());
              setDegreeIndex(visualBone.getDegreeIndex());
              setAvaliableSide(visualBone.getAvaliableSide());
              setBounds(visualBone.getBounds());
              initialize();          
    this is the classes u need to see inorder to help me. I tried simple backup:
         public static void savePacks(){
              for(int i = 1; i < 4; i++)
                   Pack.backupLists[i] = new Pack(Pack.Lists);
         public static void loadPacks(){
              for(int i = 1; i < 4; i++)
                   Pack.Lists[i] = new Pack(Pack.backupLists[i]);
    the problem it doesn't save the boolean clicked in the DominoBone.
    I tried to do this.
    bone.setClicked(true);
    save();
    load();
    all the things saved except the click, can u help me or u need more info?
    Edited by: Sashock on Mar 1, 2009 5:29 AM

    We can't help you with what you have provided... you are talking about setClicked() but I can't see it anywhere, you are talking about save() and load() and i cant see them too...
    just a comment about savePacks() and loadPacks():
    -- why the counter 'i' is starting from 1 instead of 0, you are missing the first entry...
    Clearly state what exactly you are trying to achieve and post relevant code in between tags.
    Thanks!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Need HELP with menu integration

    I have a project in which I am needing some seemless integration between movies and menus. Let me explain what I am doing. I am essentually imitating the actions of an iPhone or iPad in which you have the lock slide...icons appear...etc. What I did was create a flash file imitating these actions @ 720x480 then exported to a .MOV file. I then saved the last frame in Flash to a jpg, took into photoshop and created my buttons. See where this is going? So what I want is for the animation to play and end up with the menu (video to menu). My issue lies with the seemlessness of it. Currently when the transition happens from video to menu there is a black pause. I want it to be smooth from one to the other. I KNOW this can be done!! What am I doing wrong? I appreciate the help in advance.
    Troy

    I got my issue resolved (sort of). I used the suggestion of burning my project and playing on a DVD player to see if that
    "black pause" went away and to my dissapointment it didn't. What I found worked though was shortening the duration of the first play
    video under the properties -> motion tab.
    Now another issue I am having is when I preview, everything looks great and to my intentions, but when burned and played on a DVD player the video is one size and the menu is a smaller size. They are both @ the same 720x480 size in Encore so why the difference when played doesn't make sense to me. Any ideas out there? I am not as savvy with this stuff as most on here, so hopefully what I am saying makes sense.
    Thanx
    Troy

  • Need help with menu ring or listbox control.

    Hi,
    I would like a menu ring style of control that does the following. Initially, items will be put into the control through a string array. That is no problem. But,in addition to being able to select any of the existing items, I would like the user to be able to enter a new item. Is this possible with any of the menu or listbox controls? I prefer the menu type controls as I like how when you click on the control you get a pop up of the items in the list, as opposed to the listbox where you have to scroll. Thanks for any help.

    Not as such, but one alternative would be a combination of the menu ring and
    a string. Place the string above the menu ring. When people select something
    from the menu ring it's copied to the string and selected. When people type
    something into the string, it's added to the menu ring if it's not already
    there and again it's selected.
    Bear in mind though that if a menu ring gets too large I suspect a scrollbar
    will appear in it when it's popped up.
    sal wrote in message
    news:[email protected]..
    > Hi,
    >
    > I would like a menu ring style of control that does the following.
    > Initially, items will be put into the control through a string array.
    > That is no problem. But,in addition to being able to select any of
    > the existi
    ng items, I would like the user to be able to enter a new
    > item. Is this possible with any of the menu or listbox controls? I
    > prefer the menu type controls as I like how when you click on the
    > control you get a pop up of the items in the list, as opposed to the
    > listbox where you have to scroll. Thanks for any help.

  • Please help me :'( , I really need help in Linked List & Recursion program.

    Hi everybody..
    I hope all of you are ok..
    I'm new member in this forum and I hope anyone can help me in Linked List $ Recursion issue..
    I should write a Java program that implements a linked list of objects. This program / class will have the following methods:
    1- //print each node starting from startNode upto the end node in the list
    void writeList(Node startNode)
    2- //insert a new element to the end of the list
    void insertEnd(Object element)
    3- //Print each element statring from first element in list to the last element then start //printing each element from the last element to the first element
    void writeMirror()
    4- //delete the last node.
    void deleteEnd()
    5- //returns the number of the nodes in the list.
    int lengthList(ListNode x)
    Implement the above methods using the following restrictions:
    1- All above methods must be implemented as a recursive method.
    2- For the given linked list class, there is only a head reference
    variable, pointing the beginning of the list. Thus there is no last or
    end reference variable.
    I don't know how to write this program :'( ..
    I need your help guys and I will be so happy if anyone can do it for me ..
    The sad girl
    MaRia :(

    Any body can give me any idea any hint that may help
    me ??Hint that will help you: get a personal tutor. This is the wrong place to learn how to program. And you definitely won't learn by having your homework done for you.
    Oh, and I don't care at all that your hamster has diarrhea, your boyfriend broke up with you, both of your parents are dead and unemployed, that you have to look after your 231 siblings all by yourself and that you're forced to take this class and rather want to do something completely different.
    Heard it all before.

  • Need help using dropdown list control

    We have created a list of 30 markers & saved this as a
    field cast member, to create a dropdown list.
    We want the user to select from the dropdown list the marker
    they want to navigate to; it seems that this
    should be possible using the dropdown list control, but i am
    having trouble setting/choosing the correct
    parameters for this (the two main options are Contents of
    list & Purpose of List) - can anybody help???

    You need to set the Contents parameter to "Markers in this
    movie" and
    the Purpose parameter to "Execute..."
    This will tell the behavior to treat the contents of the
    field as a list
    of frame markers and then have the playback head jump to the
    markers
    that matches the selected line in the field.
    Rob
    Rob Dillon
    Adobe Community Expert
    http://www.ddg-designs.com
    412-243-9119
    http://www.macromedia.com/software/trial/

  • Beginner needs help w/ menu

    I think the topic says it all. I haven't actually done much
    with Flash but I am a quick learner. I am trying to make a simple
    menu with a box that pops down to show some details about the link
    that the user is about to click.
    I've only done 2 of the links since I've run into a small
    problem. I figured keep things simple for now. So the buttons work,
    rollovers and all, and the box shows up as expected. However, the
    rollOut effect does not seem to be working.
    I didn't know the best way to go about putting my
    ActionScript code up here because it's not as simple as just
    posting HTML or PHP which reads from top to bottom so I am posting
    a link to the source file for anyone that can help.
    http://www.parkwaygaming.com/header_menu.fla
    Thanks to anyone who can help.

    There is a better way to do this.
    You will make a single movie, instance "message_mc", instead
    of a bunch of dedicated movies for each of your seperate buttons.
    Within message_mc, you will have a dynamic text field with the
    instance name msg_txt which will accept the appropriate message
    from your code whenever you rollOver a menu button. Also, you are
    going to put all of your associated code in just the first frame of
    the main stage timeline. Try this:
    Create new movie, named "mc_message" shaped the same way as
    your current message box. In the box, put a dynamic text field with
    the instance name, "msg_txt". Once created, drag mc_message to the
    stage, but off to the left side so that it is not seen when you
    test the .fla. Give it the instance name of "message_mc".
    In the first frame of your actions layer, before stop() put:
    this.message_mc._visible = false;
    Now, put your "home" button on the main stage (anywhere, at
    this point) and give it the instance name "b1".
    Go back to your first frame actions layer, and after the
    previous code, but before stop(), put:
    _root.b1.onRollOver = function() {
    _root.message_mc._visible = true;
    _root.message_mc.msg_txt.text = "This is my homepage
    information";
    _root.message_mc._x = _root.b1._x+180; //these will need
    adjusting, depends on where you draw your box in mc_message.
    _root.message_mc._y = _root.b1._y+56;
    _root.b1.onRollOut = function() {
    _root.message_mc._visible = false; //gets rid of message_mc
    as soon as you leave the button.
    stop();
    So, for the rest of the buttons, you simply copy the above
    and paste it right below the previous code, all in that first
    frame. Obviously, you'd then change the respective instance names
    of the remaining buttons to b2, b3, b4, etc. as you move them to
    the stage, and the message associated with each button in the
    respective code.
    Also, you can make any effect that you want for message_mc
    right in that movie, mc_message (fade in, change color, etc.).
    Works great. Download your revised fade_Movie file
    HERE!

Maybe you are looking for