The java-course has started at school, so I'm new to this...
JFrame frame = new VB0210();
frame.setTitle ("Oefening 10");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(400,200);
frame.setContentPane (paneel);
frame.setVisible (true);
I just wonderd if this code could be shorted, in VB.NET we could use:
with openfiledialog
.filter "TekstFile *.txt|.txt"
.index = 1
end with
instead of always typing openfiledialog.filter or openfiledialog.index so I wonderd if there was also a method with java for doing this like
with frame
.setTitle ("Oefening 10");
.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
end with
Greetings
