Results 1 to 20 of 21
Thread: GUI Designer for Swing/Java
- 01-23-2009, 07:23 AM #1Member
- Join Date
- Jan 2009
- Rep Power
- 01-23-2009, 08:52 AM #2
- 01-23-2009, 09:15 AM #3
Take me! Take me!
- 01-23-2009, 09:42 AM #4
i could be able to be a GUI designer in Java.
- 01-23-2009, 04:13 PM #5Member
- Join Date
- Jan 2009
- Rep Power
see the links..
i did in eclipse..if include jars for SWT Toolkit..u can easily do programs on GUI..see the links...
- 01-23-2009, 04:51 PM #6
Netbeans has the Matisse designer built in. The MyEclipse plugin for Eclipse also has a Matisse port. The MyEclipse port is almost very good; it isn't perfect, but I get complicated GUI's done very quickly. The Netbeans version might somewhat more stable; I haven't tried it.
The designer allows you to drag components onto your form and set their properties. It supports a number of layout managers, including one that I believe is specific to Matisse. I use GridBagLayout almost exclusively, and I couldn't do it without Matisse.
It also allows you to add your own components to the palette. I use this feature to use some special components I created (NumericTextField, MessageBar), and I also use it to create individual panels as separate forms, which I then put together on the main form.
Given that Matisse is free with Netbeans, and MyEclipse, with all its features, is $60/year, I would strongly recommend Matisse.
In addition, I would never design a complex form without a visual designer. Swing apps can look and feel great, if you take a bit of time to do them right.
- 01-24-2009, 01:18 AM #7
One caveat: no visual designer can be learned in a day or two. Be prepared for the learning curve, months after you start using it you'll still be discovering new and better ways to work.
The same is true of hand-coding GUIs.
- 01-24-2009, 06:57 AM #8
Darryl is right about that. But that's just a fact of life about all of Java. It's just not simple, which is why PHP and Ruby are so popular. I have, on the other hand, that once I know how to do something correctly, doing it is actually fairly easy. And Java imposes few limits on what I can get done.
I hate designers if only for the reason that it is so hard to sift through the code of newbies who use them and then don't understand why it's not working correctly. It is code that is not meant to be read by humans but instead by machines. Give me good old fashioned hand-coding any day.
- 01-24-2009, 07:20 AM #10
Good point about generated code in general. I pretty much don't let Matisse do anything except set the initial properties. That code is always tedious, and Matisse does a good job by not mangling it.
In general, I avoid putting much code in the form class, anyway. I try to keep all logic that deals with program flow in the controller class.
I have noticed a lot of Swing code mixed in with control and model code in general, regardless of the source of the Swing code. Using separate classes doesn't require a whole lot of effort, and keeping the code in small, separate chunks is *so* much easier for anything beyond "Hello, World!". I have also found that it forces me to come up with a solid design.
Last edited by Steve11235; 01-24-2009 at 07:24 AM. Reason: and ......
- 01-24-2009, 01:47 PM #11
Good points, Fubarable and Steve.
I would add that using a Visual Designer -- say Matisse -- in a work environment where its use is mandated (or, at least, the IDE of choice is and is likeley to remain, NetBeans) AND a good design pattern (usually MVC) is followed, can definitely improve programmer efficiency.
Amateurs and students, I feel, are better off hand-coding their GUIs.
Why? When modifications come due (and they will) you don't need the original project/folder structure (apart from package hierarchy, of course, and even that can be changed...) and can do the job on just about any computer that has an editor and compiler, or any IDE.
And a more general rule might be: if you are going to need to look at the GUI code in future, hand-code it. Designer generated code was never meant for human consumption ;)
- 01-24-2009, 07:42 PM #12
- 01-25-2009, 12:20 AM #13
A Java newbie using a visual designer is like someone who has never ridden a horse riding a horse that has never been ridden. Anything can, and usually does, go wrong.
- 01-25-2009, 05:00 AM #14
- 01-26-2009, 01:05 AM #15
It's funny, I see everyone's point. I guess my inclination is to say that Java just isn't a good language to start off in, unless you have an instructor who is willing to teach you how to use the related tools from the start.
I agree with hand-coding and compiling a couple of simple applications, just so you can learn how it works. In fact, that's how I did the majority of my programming before I moved to Java.
A good IDE and form designers make things so much easier, *once you know how to use them*. But if the instructor doesn't teach you, you don't have time to learn. I think this is true of OO programming in general.
I think Java is like a huge truck. It's very useful, but it's not the first vehicle you should learn to drive.
- 01-26-2009, 04:29 AM #16
Actually I found that lots of instructors/teachers on Java, first lesson is all about IDE. Most of them. In first few days they advice students how to select an IDE. Ultimately what happen is students' choice is same as the instructors.
Whenever learning a new language, best thing is leaning the basis thing in difficult way. Actually designing a Swing UI by hand is not an easy task. But it's much better to get hand dirty on such things before move to an IDE.
- 01-26-2009, 04:37 AM #17
I'm glad instructors are introducing IDE's from the start. I bit of hand-coding and compiling is a good learning experience, but it quickly becomes painful to do all the little things an IDE does.
I was wondering about the instructors; so many posters don't seem to even know what errors they are getting.
- 01-26-2009, 04:49 AM #18
- 01-27-2009, 12:07 AM #19
> I think Java is like a huge truck. It's very useful, but it's not the first vehicle you should learn to drive.
Well said, Steve.
- By RAMYA in forum New To JavaReplies: 3Last Post: 11-12-2008, 08:00 AM
- By M77 in forum Jobs OfferedReplies: 2Last Post: 07-04-2008, 05:35 PM
- By JavaBean in forum Java TutorialReplies: 0Last Post: 09-22-2007, 10:06 PM
- By JavaBean in forum Java TutorialReplies: 0Last Post: 09-22-2007, 09:08 PM
- By JavaBean in forum Java SoftwareReplies: 0Last Post: 06-22-2007, 01:51 AM