import java.awt.
*;
import java.awt.GridLayout;
import java.awt.event.*;
import javax.swing.*;
class HotelDishes extends JFrame implements ActionListener
{
private JDesktopPane pane;
private JButton add_dish,update_dish,delete_dish,clear;
private JLabel dish_name,dish_no,dish_price,Search;
private JTextField txt_1,txt_2,txt_3;
private JScrollBar scr;
private JList lst;
private JPanel left_pnl,right_pnl;
public HotelDishes()
{
try
{
left_pnl = new JPanel();
left_pnl.setLayout(null);
this.add(left_pnl);
JLabel p = new JLabel("ADD | UPDTAE | DELETE DISH");
p.setFont(new Font("Gabriola",Font.BOLD,28));
p.setBounds(500,10,350,50);
p.setForeground(Color.RED);
left_pnl.add(p);
Search = new JLabel("Search : ");
Search.setBounds(10,60, 300,35);
Search.setFont(new Font("Calibri",Font.BOLD,20));
left_pnl.add(Search);
dish_no = new JLabel("Dish no.");
dish_no.setBounds(350,60,350,35);
dish_no.setFont(new Font("Calibri",Font.BOLD,20));
left_pnl.add(dish_no);
txt_1 = new JTextField();
txt_1.setBounds(450,60,150,35);
left_pnl.add(txt_1);
dish_name = new JLabel("Dish Name");
dish_name.setBounds(350, 120, 350, 35);
dish_name.setFont(new Font("Calibri",Font.BOLD,20));
left_pnl.add(dish_name);
txt_2 = new JTextField();
txt_2.setBounds(450,120, 150, 35);
left_pnl.add(txt_2);
this.setSize(300,200);
this.setVisible(true);
}
catch(Exception ex)
{
ex.printStackTrace();
}
public void actionPerformed(ActionEvent e)
{
}
}
class Sample
{
public static void main(String args[])
{
HotelDishes d = new HotelDishes();
}
}