NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums General General Discussion v
« Previous 1 … 153 154 155 156 157 … 159 Next »
java, i hate it.

 
  • 0 Vote(s) - 0 Average
java, i hate it.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#1
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
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 );
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).
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#2
2005-03-31, 04:18 AM
Reven, I don't do much GUI design with Java, most of my stuff is backend stuff. You might want to check out the Visual Editor for Eclipse. You can get that here:

http://www.eclipse.org/vep/

A tutorial on how to use it can be found here:
http://www-106.ibm.com/developerworks/op...-ecvisual/

Might make your life a bit easier.
dottore
Offline

Posting Freak

Posts: 986
Threads: 44
Joined: May 2004
#3
2005-03-31, 07:18 AM
for gui-design in java you could use netbeans ide. quite cool for the graphical stuff. try to use a layout-manager, not the default one...

conentPane.setLayout(new BorderLayout()) or something similar. then:
conentPane.add(txtName, BorderLayout.NORTH) and so on...
---------------------
www.sitecomposer.de
dottore
Offline

Posting Freak

Posts: 986
Threads: 44
Joined: May 2004
#4
2005-03-31, 07:30 AM
oh, by the way: i would like to use a database with c#. i know, that reven uses a database for myVideos and it is an access-db. that's exactly what i need...can you help me?
---------------------
www.sitecomposer.de
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#5
2005-03-31, 07:40 AM
yeah ill send you so sample code in a few days (have to get this assignment done first Smile).
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#6
2005-03-31, 03:00 PM
Dottore, for a sample of C# code using OLEDB take a look at the source for RenameRecording. It'll give you the basics.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#7
2005-04-04, 04:57 AM
thanks guys for the help, i couldnt get eclipse ve working, so i gave up, i managed to use
contentPane.setLayoutManager(null); (or whatever the code is to set it, i just passed it null and then i was able to just use obj.setBounds(...) for every control, problem solved).

and handed the assignment in Smile now i have to study for a test.... im sick of uni.
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#8
2005-04-04, 07:49 PM
Reven, here is something else that might work better than VE for Eclipse.

http://www.cloudgarden.com/jigloo/

Probably will make your life easier if you have to do any more Swing or SWT based GUI applications.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Java problem on Windows7 IE9 ACTCMS 17 22,288 2012-04-16, 10:38 AM
Last Post: eric9090

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode