Untitled

 avatar
Rohit143
java
2 years ago
912 B
6
Indexable
Never

// <applet code ="practical6" height=100 width=300></applet>

import javax.swing.*;
import java.awt.*;

 public class practical6 extends JApplet {

    String  str[] = {"English","Marathi","Hindi","Sanskrit"};
    Panel panel;
    JComboBox combobox; 
    Label label;
    JScrollPane scrollpane;
     public void init() {

        BorderLayout borderLayout = new BorderLayout();
         setLayout(borderLayout);
         panel=new Panel();

         combobox = new JComboBox(str);
         label =new Label("By Rohit Nandagawali");

         scrollpane  = new JScrollPane(panel);
         scrollpane.setHorizontalScrollBarPolicy(scrollpane.HORIZONTAL_SCROLLBAR_ALWAYS);
         scrollpane.setVerticalScrollBarPolicy(scrollpane.VERTICAL_SCROLLBAR_ALWAYS);


         panel.add(label);
         panel.add(combobox);         
         add(scrollpane,"North");
     }
    
}