This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

GridBagLayout in SWT  RSS feed

 
basha khan
Ranch Hand
Posts: 516
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I m back to GUI again.
Anybody made a class in SWT which allow to use the same syntax as GridBagLayout in AWT?.I mean that without working much on SWT layout patterns, can i make a complex layout in SWT by using a 'HELPER' class?.
OR
Anybody made a class in SWT which make me use GridBagLayout methods for achieving complex layout?.something like this,link

basha
 
Di Shoe
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, GridBagLayout in Swing is actually very easy, and you don't need any pre-made classes I think. You know the link from Sun to use it right?
http://java.sun.com/docs/books/tutorial/uiswing/layout/gridbag.html
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I thought that FormLayout that comes with SWT is very similiar to GridBagLayout. Not exactly, but I think you can get it to do pretty much everything that GridBagLayout can do... check out the JavaDocs here.
 
basha khan
Ranch Hand
Posts: 516
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi nate,
Any look n feel enhancement in SWT??.Only windows L&F?.Swing is better in my openion 4 all this.but i wanna install my program into low end client systems..so SWT required..
plz tell me abt this
basha
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No... SWT is actually using native widgets, so there's no such thing as changing the "look-and-feel".
 
basha khan
Ranch Hand
Posts: 516
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi nate,
But a better GUI is certainly possible in windows environment as we see most programs.If native win32 programming can make better GUI in windows,why cant SWT?.I actually dont mean 'look and feel' than better GUI(like skinning).
Cpp GUI + java program is possible?.JNI can do it?.how far it's possible with event notification?.plz giv ur thoughts.
basha
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you use a skinnable OS (like Windows XP or Gnome, etc.) SWT will use the current skin. However, as of now, I don't think that SWT supports skinning only your app.
 
basha khan
Ranch Hand
Posts: 516
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in SWT ,no method for handling MouseDragged event.I dont looked it so much,but just started.i think it's promising only due to it's speed in low end machines.
anyway i m a child here in SWT.let me look more.anyway i m interested.any good forums for it?.
why 'sun' not made a native compiler???.
basha
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!