Results 1 to 2 of 2
Thread: shorten code
- 01-29-2008, 05:44 PM #1
Member
- Join Date
- Jan 2008
- Posts
- 1
- Rep Power
- 0
shorten code
The java-course has started at school, so I'm new to this...
I just wonderd if this code could be shorted, in VB.NET we could use:Java Code:JFrame frame = new VB0210(); frame.setTitle ("Oefening 10"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setSize(400,200); frame.setContentPane (paneel); frame.setVisible (true);
instead of always typing openfiledialog.filter or openfiledialog.index so I wonderd if there was also a method with java for doing this likeJava Code:with openfiledialog .filter "TekstFile *.txt|.txt" .index = 1 end with
Greetings :cool:Java Code:with frame .setTitle ("Oefening 10"); .setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); end withLast edited by Hypenate; 01-29-2008 at 05:51 PM.
- 01-29-2008, 08:04 PM #2
Similar Threads
-
I need help fixing my code.. or non code?
By MrHuggykins in forum New To JavaReplies: 1Last Post: 03-19-2008, 10:12 PM -
Pls some one to help mi wit this code
By _nik_ in forum New To JavaReplies: 3Last Post: 02-10-2008, 02:02 AM -
code help
By chitwood in forum New To JavaReplies: 0Last Post: 02-10-2008, 12:08 AM -
tic tac toe code
By zoe in forum New To JavaReplies: 1Last Post: 07-23-2007, 04:36 PM -
Generating Code Automatically Using Custom code Template In Eclipse
By JavaForums in forum EclipseReplies: 1Last Post: 04-26-2007, 03:52 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks