aspose file tools*
The moose likes Beginning Java and the fly likes Tool to create Swing graphics without coding ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Tool to create Swing graphics without coding ?" Watch "Tool to create Swing graphics without coding ?" New topic
Author

Tool to create Swing graphics without coding ?

Lexington Smith
Ranch Hand

Joined: Sep 29, 2012
Posts: 67
I don't want to learn swing right now. I want to make GUI for my code.
The GUI should take input from a user and store it in the right
variable or call a method with that input.

Is there a GUI tool which can help me to do this ?
I am looking for some tool which will let me draw my front-end with all its
elements such as drop down menu, text-box etc. Then, I can join the element
with the variable it is supposed to correspond to.

Thanks.
Anayonkar Shivalkar
Bartender

Joined: Dec 08, 2010
Posts: 1505
    
    5

Hi Lexington,

NetBeans IDE provides almost similar facility as you are looking for (i.e. you'll have to drag-drop the controls, and corresponding code will be generated automatically).

However, please note that the generated code is so complex that it's quite tricky to make some extra changes, and its almost impossible to debug that code. If you are in hurry and don't need to make much changes in generated UI, then it's fine. However, in long run, learning swing is much better idea.

Another tools is Jigloo plugin for eclipse - which also provides basic UI functionalities.

I hope this helps.


Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)
Lexington Smith
Ranch Hand

Joined: Sep 29, 2012
Posts: 67
Anayonkar Shivalkar wrote:Hi Lexington,
Another tools is Jigloo plugin for eclipse - which also provides basic UI functionalities.


Thank you ! Will try Jigloo. Need a quick fix before I start studying Swing in detail.
Lexington Smith
Ranch Hand

Joined: Sep 29, 2012
Posts: 67
Lexington Smith wrote:
Anayonkar Shivalkar wrote:Hi Lexington,
Another tools is Jigloo plugin for eclipse - which also provides basic UI functionalities.


Thank you ! Will try Jigloo. Need a quick fix before I start studying Swing in detail.


Does not install from within eclipse, shows an error.
Stack overflow users discourage using any kind of GUI builder
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38363
    
  23
Lexington Smith wrote: . . . Thank you ! Will try Jigloo. Need a quick fix before I start studying Swing in detail.
Don’t. Learn Swing coding the hard way, by hand, and only use a GUI builder when you know what the code means. Otherwise you end up with a large block of code illegible to the human eye and don’t know why your layout looks peculiar.
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 7652
    
  19

Lexington Smith wrote:I don't want to learn swing right now. I want to make GUI for my code.

I think most of the others have covered that contrdictory statement.

The GUI should take input from a user and store it in the right variable or call a method with that input.

There's nothing to stop you doing all of that without a GUI; and furthermore, it's not a bad habit to get into because it separates the problem from its visual representation.

My advice: Unless the display itself is a major part of your problem, solve it first using keyboard input and a console display, and then refactor it for a GUI.
That way, when you come to the Swing part, you'll already be pretty sure that the "problem" part of your app is already working. Also, If you design it right, you'll be a fair way down the road to an MVC solution (Google it).

Winston


Isn't it funny how there's always time and money enough to do it WRONG?
Articles by Winston can be found here
Lexington Smith
Ranch Hand

Joined: Sep 29, 2012
Posts: 67
Campbell Ritchie wrote:
Lexington Smith wrote: . . . Thank you ! Will try Jigloo. Need a quick fix before I start studying Swing in detail.
Don’t. Learn Swing coding the hard way, by hand, and only use a GUI builder when you know what the code means. Otherwise you end up with a large block of code illegible to the human eye and don’t know why your layout looks peculiar.

That is exactly what happened to me after i managed to add it to eclipse. I am like why is the exit button occupying the whole window ? :P
Lexington Smith
Ranch Hand

Joined: Sep 29, 2012
Posts: 67
Winston Gutkowski wrote:
My advice: Unless the display itself is a major part of your problem, solve it first using keyboard input and a console display, and then refactor it for a GUI.
That way, when you come to the Swing part, you'll already be pretty sure that the "problem" part of your app is already working. Also, If you design it right, you'll be a fair way down the road to an MVC solution (Google it).
Winston


Thanks, thats what I will be doing now. The GUI is not really important. But who likes looking at a dichrome screen ?
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 7652
    
  19

Lexington Smith wrote:Thanks, thats what I will be doing now. The GUI is not really important. But who likes looking at a dichrome screen ?

Me, for starters; but I'm an old fart.

But that's not the point: Solve the problem first. Then display it.

Good luck.

Winston
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38363
    
  23
Lexington Smith wrote:. . . Stack overflow users discourage using any kind of GUI builder
Great minds think alike.

We discourage it too.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tool to create Swing graphics without coding ?