edit some swing

This commit is contained in:
Asaad Dadoush 2020-12-07 11:12:23 +03:00
parent 7d5f3452ad
commit 192a482bb4

View File

@ -105,27 +105,23 @@ public class MakkahCity {
btnViewCampaigns.setBounds(336, 428, 137, 23); btnViewCampaigns.setBounds(336, 428, 137, 23);
f.getContentPane().add(btnViewCampaigns); f.getContentPane().add(btnViewCampaigns);
JButton btnNewButton_2 = new JButton("View Routes"); JButton btnViewRoutes = new JButton("View Routes");
btnNewButton_2.setBackground(new Color(211, 211, 211)); btnViewRoutes.setBackground(new Color(211, 211, 211));
btnNewButton_2.setForeground(new Color(0, 0, 0)); btnViewRoutes.setForeground(new Color(0, 0, 0));
btnNewButton_2.addActionListener(new ActionListener() { btnViewRoutes.setBounds(496, 428, 113, 23);
public void actionPerformed(ActionEvent e) { f.getContentPane().add(btnViewRoutes);
}
});
btnNewButton_2.setBounds(496, 428, 113, 23);
f.getContentPane().add(btnNewButton_2);
JButton btnNewButton_3 = new JButton("Print Report"); JButton btnPrintReport = new JButton("Print Report");
btnNewButton_3.setForeground(new Color(0, 0, 0)); btnPrintReport.setForeground(new Color(0, 0, 0));
btnNewButton_3.setBackground(new Color(211, 211, 211)); btnPrintReport.setBackground(new Color(211, 211, 211));
btnNewButton_3.setBounds(633, 428, 113, 23); btnPrintReport.setBounds(633, 428, 113, 23);
f.getContentPane().add(btnNewButton_3); f.getContentPane().add(btnPrintReport);
JButton btnNewButton_4 = new JButton("Exit"); JButton btnExit = new JButton("Exit");
btnNewButton_4.setForeground(new Color(0, 0, 0)); btnExit.setForeground(new Color(0, 0, 0));
btnNewButton_4.setBackground(new Color(211, 211, 211)); btnExit.setBackground(new Color(211, 211, 211));
btnNewButton_4.setBounds(766, 428, 72, 23); btnExit.setBounds(766, 428, 72, 23);
f.getContentPane().add(btnNewButton_4); f.getContentPane().add(btnExit);
//window //window
f.getContentPane().setBackground(new Color(0, 0, 0)); f.getContentPane().setBackground(new Color(0, 0, 0));