2005-03-31, 03:13 AM
ok ive got an assignment due for uni, its all done in java (which i havent used in a while). im having issues with eclipse (for some reason it doesnt like Vector<Object>), anyway after my love affair with vs.net, well is there a ide that you lets you create a JFrame by dragging and dropping ? (the assignment is on Java RMI, and well nothing to do with JFrames or anything, you just need to create a frame, and well, ive forgotten java (my borderlayout (or whatever its called) is giving me issues, this isnt the area i should be spending my time on, and well its taking far too long.). i know theres a lot of java programmers here, hopefully you all use an ide (and not TextPad/NotePad) just wondering if there was anythign out there like this for java?
oh the problem im having is the last control i add to the contentPane
is stretched to the full size of the frame, i init every control with the basic code
like name will be fine, but lastname is stretched to the full frame size
eg
this.setBounds(20,20,350,350);
txtLastName bounds for some reason is changed to (0,0,350,350);
any help would be appreciated (yeah its nothign to do with gbpvr, but oh well).
oh the problem im having is the last control i add to the contentPane
Code:
Container contentPane = this.getContentPane();
contentPane.add(txtName);
is stretched to the full size of the frame, i init every control with the basic code
Code:
JTextBox txtName = new JTextBox();
txtName.setBounds(20,20,100,20);
conentPane.add(txtName);
JTextBox txtLastName = new JTextBox();
txtLastName .setBounds(20,20,100,20);
conentPane.add(txtLastName );
eg
this.setBounds(20,20,350,350);
txtLastName bounds for some reason is changed to (0,0,350,350);
any help would be appreciated (yeah its nothign to do with gbpvr, but oh well).