Notes
![]() ![]() Notes - notes.io |
import java.awt.event.*;
import javax.swing.*;
public class routineMaintenance {
private JFrame frame;
private JLabel topic;
private JPanel checkboxes;
private JLabel checking;
public routineMaintenance() {
prepareGUI();
}
public static void main(String[] args) {
routineMaintenance box= new routineMaintenance();
box.showlist();
}
private void prepareGUI() {
frame=new JFrame();
frame.setSize(400,400);
frame.setLayout(new GridLayout(7,1));
frame.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent windowEvent){
System.exit(0);
}
});
topic=new JLabel();
checking=new JLabel("",JLabel.CENTER);
checking.setSize(350,100);
checkboxes= new JPanel();
checkboxes.setLayout(new FlowLayout());
frame.add(topic);
frame.add(checkboxes);
frame.add(checking);
frame.setVisible(true);
}
private void showlist() {
topic.setText("list of maintenance");
final JCheckBox chkoil= new JCheckBox("oil change");
final JCheckBox chklube= new JCheckBox("Lube Job");
final JCheckBox chkradiator= new JCheckBox("Radiator Flush");
final JCheckBox chktransmission= new JCheckBox("Transmission flush");
final JCheckBox chkinspection= new JCheckBox("Inspection");
final JCheckBox chkmuffler= new JCheckBox("muffler replacement");
final JCheckBox chktire= new JCheckBox("tire rotation");
chkoil.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
checking.setText("oil change checkbox:" +(e.getStateChange()==1?"checked":"unchecked"));
}
});
chkoil.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
checking.setText("Lube Job:" +(e.getStateChange()==1?"checked":"unchecked"));
}
});
checkboxes.add(chkoil);
checkboxes.add(chkoil);
frame.setVisible(true);
}
}
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team