User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » Java Swing Page [1]  
Kris
All American
36908 Posts
user info
edit post

So I haven't done any programming using Swing or AWT since college, anyways, I need to build a UI with a bunch of components inside of a pane, and a button below it, what's the easiest way to get some sort of table structure so I can have the button below the pane?

4/26/2010 12:11:27 AM

qntmfred
retired
40817 Posts
user info
edit post

java swing?

what is this 2002?

4/26/2010 12:35:31 AM

Kris
All American
36908 Posts
user info
edit post

I need 2 make a standalone app to convert data copybooks to xml blobber files, don't have VB or anything, but definately have java, plus it's what everybody uses, so if anyone needs to add features they can do it easily.

I generally use JSF for UI, and shits way easier to make something into rows

4/26/2010 12:43:00 AM

FroshKiller
All American
51913 Posts
user info
edit post

man ain't no shame in swing

4/26/2010 8:33:50 AM

Shaggy
All American
17820 Posts
user info
edit post

Doing swing by hand isn't impossible but it can be a big pain in the ass the more complicated your panes are. If it doesn't need to be too pretty you could probably just wing it off the swing tutorials on suns site. There are also grpahical drag and drop builders, but i've never used them. If i were doing any UI development thats where i'd start looking.

As far as alternative UI frameworks go, the eclipse swt looks real nice, but i thought it was kind of a pain to use. Again, there are probably graphical builders that would make it easier.

I would google for an eclipse gui builder plugin and see whats out there. Doing swing by hand becomes more of a pita the more components and layouts you start shoving in.

4/26/2010 9:26:00 AM

Kris
All American
36908 Posts
user info
edit post

can't install anything, it's for work, they're pretty strict on that stuff.

I figured it out anyways, the guide for layouts was on a different page, here's the code if anyone is interested:

pane.setLayout(new BoxLayout(pane, BoxLayout.Y_AXIS));

4/26/2010 7:18:22 PM

wwwebsurfer
All American
10217 Posts
user info
edit post

Quote :
"There are also grpahical drag and drop builders"


Please elaborate. I haven't found a decent one for quick development. Great ones if you want your GUI to be 10x the length of your program, but nothing quick and dirty.

4/26/2010 7:23:54 PM

Noen
All American
31346 Posts
user info
edit post

^wouldnt that be quick and dirty?

4/26/2010 7:56:00 PM

 Message Boards » Tech Talk » Java Swing Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.