Jump to content
xisto Community
Sign in to follow this  
arunkumarhg

Java Swing (gui Developer)interview Tips Java Swing (GUI Developer)Interview Tips

Recommended Posts

Hello; What exactly you want to know about SWING? I've visited some workshop's on SWING and I know, creating a complex UI in SWING (which should also perform) is very hard, but possible. Now in java 5 the default Look and Feel looks great, but did you consider using SWT? For SWING there exists many books, creating a complex UI is far away from a Content Pane with the Label "Hello world". But even if for SWT there is not a lot of Documentation to read I would recommend to use SWT, it's easier to use and performs much better; there are some things in the concept of SWT that must be memorized, but after all I think (hope) the future of UI in Java belongs to SWT.If you have a precise question about SWING repost...Cheers....JDriveBTW: my first post here :)

Share this post


Link to post
Share on other sites

Well, I dont know any free e-book that really covers SWING; all free available e-books cover the basics of SWING; but to have full reference you should consume

(ebook - PDF - Java) Manning - Java Swing with Samples.pdf
or
Java Swing from O'Reilly.

Also, if SWT is not possible, you should consider to use FORM-Layout instead of the standard layouts, it's free and can be found here.

Cheers....

JDrive

Share this post


Link to post
Share on other sites

If you use Eclipse or Borland JBuilder they have gui designers you could use. I was required to use JBuilder for a class and hated it. It generates the most inefficient code I've ever seen sometimes. The designers for Eclipse are usually a little better, there's a bunch of them and they're plugins. I would just keep trying them until you find one you like. I've heard good things from friends about one that's called Jigloo, atleast I think that's what it's called. I don't remember anything about it, so I'm sorry I can't give you my opinion. Eclipse is also a really IDE if you didn't already use it, one of the better IDEs I've ever used.

Share this post


Link to post
Share on other sites

If you use Eclipse or Borland JBuilder they have gui designers you could use.  I was required to use JBuilder for a class and hated it.  It generates the most inefficient code I've ever seen sometimes.  The designers for Eclipse are usually a little better, there's a bunch of them and they're plugins.  I would just keep trying them until you find one you like.  I've heard good things from friends about one that's called Jigloo, atleast I think that's what it's called.  I don't remember anything about it, so I'm sorry I can't give you my opinion.  Eclipse is also a really IDE if you didn't already use it, one of the better IDEs I've ever used.

<{POST_SNAPBACK}>


I think Eclipse is a fabulous IDE, perhaps the best freeware one out there. Its GUI designers are solid and are not too difficult to pick up. I got introduced to it not too long ago but I love the JBUilder. Another facility that I have taken to is the JUnit unit testing facility. For those of you who don't know what the JUnit testing facility is, it allows you to write out a series of testcases (normally asserts) which run everytime you compile in debug mode. There's nothing more joyous than when that red light which signifies errors turns green.

Share this post


Link to post
Share on other sites

Yes, try Jigloo;

 

I've tried VE and I'm not satisfied at all; the generated code is ugly, and if you try to put your hands on the generated code

your WYSIWYG editor is broken

your CPU runns up to 100% until eclipse complains about an OutOfMemoryError

But don't forget:

If you want to create a complex gui which performs well and does not leak your memory forget about editors, consume some books and get your hands dirty with the editor

 

Cheers

 

JDrive

Share this post


Link to post
Share on other sites

Concentrate mainly on these things1. JTable2. JTree3. MVC with Swing (Good example JButton)4. Decorative Pattern5. Difference between AWT & Swing6. Different layouts available7. Differences between difference layouts8. Default layouts for panels & frames9. Switching between look & feel10. Explain MVC with JTree11. Using Threds in JTablegood luck

Share this post


Link to post
Share on other sites
for getting swing code..Java Swing (gui Developer)interview Tips

hi sir,

I have a one query,so pls give me a right solution. I m creating a one window via swing .And in that window I have to add a one browser. And that also have a one "browser button".If I will click on " browser button". Than open one window and  from that window I will access my computer and get path on that browser.And that selected path I have to delete via one "delete button".So what will be the  code of this proble...Pls give me right solution.How that problem can be solve

thank you sir...

 

 

 

-question by praveen kumarKeywords:

Share this post


Link to post
Share on other sites

1)Firstly you must know that the basic difference between swing and AWT is that swing is truly lightweight And platform independent as it is truly written in java but AWT isn't lightweight as it isn't written wholly in java. 2)Then comes the total hierarchy describing which comes under which like java.awt.Container comes above then JComponent i.e the whole inheritance hierarchy describing which extends which. Then the difference between Top level window and low level window. Like java.awt.Window is a top level window then java.awt.Frame is a low level window as one can't add components directly to Window but can do it so in case of a Frame.3)Thirdly the various layouts available like gridlayout,gridbaglayout, cardlayout,Borderlayout4)Event handling is something which is very important both in case of awt and swing package.The various Listener interfaces being extended for various components like for handling JButton events ActionListener interface.5)Finally if you do a small project involving swing like filling up a student registration form and then inserting the data to a database it would be very easy to explain to the interviewer your concepts regarding swing.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.