Saturday, November 17, 2012

Code used in video "Java prog#34. Open new JFrame when clicking/selecting an index from the jcombobox in java "


Here I am providing the downloadable code link of  the Java code I have used in the video
 "Java prog#34. Open new JFrame when clicking/selecting an index from the jcombobox in Java "  of my YouTube channel ProgrammingKnowledge

Click Link to watch the video LINK

This code below is for the comboselect() method action perform


    public void comboselect(){
 
    if (ComboBox_name.getSelectedItem()=="marry"){
        Userino_frame s = new Userino_frame();
         s.setVisible(true);
 
 
 
    }
    if(ComboBox_name.getSelectedItem()=="julia"){
    LoginJframe l=new LoginJframe();
    l.setVisible(true);
 
 
    }
 
 
 
    } 

No comments:

Post a Comment