Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2005

Tip: Looking for answers? Try searching our database.

Newbie - GUI Java

Thread view: 
Jacky - 27 Apr 2005 08:34 GMT
Hi,

I'm new to Java, and I am trying to create some applications for
learning purposes.

I find that creating the GUI in java is very troublesome; having
previously learnt Visual Basic.

My question is: is there an application that will churn out the codes
for the GUI in Java? Takes note of the events and stuffs? Pretty much
like Visual Basic?

Regards,
Jacky
Kroll, Michael - 27 Apr 2005 09:09 GMT
Hello,

> My question is: is there an application that will churn out the codes
> for the GUI in Java? Takes note of the events and stuffs? Pretty much
> like Visual Basic?

I think Netbeans is good for building GUI's in Java.
You can find it at www.netbeans.org.

Michael

----------------------
http://www.smurfi.de
Jacky - 27 Apr 2005 10:10 GMT
thanks! let me take a look at that, :)
Jacky - 27 Apr 2005 11:55 GMT
I've download and installed NetBeans, but there isn't control box for
me to input a command box or something?
Thomas Weidenfeller - 27 Apr 2005 10:40 GMT
> I find that creating the GUI in java is very troublesome; having
> previously learnt Visual Basic.

VB only has to run on a single platform (Windows), where everything is
fixed, largely predictable, and under the control of one manufacturer. A
Java program developed on platform X is supposed to run unaltered on
platform Y - if done right. This comes with a price. Part of the price
is the complexity of the Java AWT/Swing GUI system. And, the programmer
has to do his/her part, too. Java just provides the tools, if you don't
use them, then the application will still not run well on other platforms.

> My question is: is there an application that will churn out the codes
> for the GUI in Java? Takes note of the events and stuffs? Pretty much
> like Visual Basic?

Yes, there are a few, but there is usually no way around learning Java's
AWT/Swing system architecture. A good start is to learn

- The single-thread rule

- Layout Managers

- Event handling

- The painting system

All this and many more is taught in tutorials on Sun's web site.

/Thomas

Signature

The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq

Jacky - 27 Apr 2005 11:56 GMT
Hi Thomas,

What I meant was: is there a way to quickly create a command box or
text fields visually? Instead of specifying pixels and points?.....

Thanks,
Jacky
Perfect Reign - 27 Apr 2005 13:49 GMT
> Hi Thomas,
>
> What I meant was: is there a way to quickly create a command box or
> text fields visually? Instead of specifying pixels and points?.....

I feel your pain. :)  I have twelve years of VB experience (and can't get
away) which causes me no end to grief when learning this Java thing.

I am finding that - except for the bizzaro layout managers in Swing (box,
gridbag, card, flow) you'll get to understand things pretty well. I've
only been doing Java for a few months, and am fairly comfortable. The nice
thing is that I can write an app here on my Linux box and take it
unaltered into my WinXP system at work and it runs.

The ability to write in linux and have it automatically be able to
downgrade to WinXP is nice.

Creating the GUI components is really a no-brainer. You just
gotta put a J in front of whatever your thinking about and learn
to read the API, which is almost as useless as the MSDN.

Unlearning things like Left$ or instr are more the challenge. :)

Signature

kai - www.perfectreign.com

kai@yoda:~> format a:
Error: The DOS concept of formatting disk media is screwed.

Tor Iver Wilhelmsen - 27 Apr 2005 14:21 GMT
> What I meant was: is there a way to quickly create a command box or
> text fields visually? Instead of specifying pixels and points?.....

Yes, use a GUI designer in an IDE, like JBuilder or Eclipse.

But please learn about the layout manager concept first; though you
may experiment VB-like by setting the layout property to null.
Thomas Weidenfeller - 27 Apr 2005 14:30 GMT
> What I meant was: is there a way to quickly create a command box or
> text fields visually? Instead of specifying pixels and points?.....

This is exactly what you don't do: You don't specify pixels and points
in an AWT/Swing GUI. You use layout managers.

Please work through Sun's GUI tutorial. Without getting this essential
point you will not have fun.

/Thomas

Signature

The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq

IchBin - 27 Apr 2005 20:05 GMT
>> What I meant was: is there a way to quickly create a command box or
>> text fields visually? Instead of specifying pixels and points?.....
[quoted text clipped - 6 lines]
>
> /Thomas

Yes you should learn the layout mangers first. This very important. It's
like most things... Its 'pay me now or pay me later'.

I use a the JGoodies layout manager. It is much nicer than the Sun
layout managers. This way you do not to learn all of the sun layout
managers. You can just use one, JGoodies. They have real time visual
screen debugger and debug console output to correct any forms you are
trying to build. BTW - I do know Suns layout managers. I personally
understand much more for the time I put into learning them.

I keep referencing my website because I use the JGoodies Forms, Look and
Feel, color themes. I have not tried their animation libraries yet but
they look nice also.

You can see some of my screen shots at *http://24.115.55.47:8080/*.

Sorry I do not have a domain name yet. So I am using my IP address. Hay,
it  works. This is just a path into Tomcat for my site.

And\or go to JGoodies website  *http://www.jgoodies.com/*

Signature

Thanks in Advance...
IchBin
__________________________________________________________________________

'The meeting of two personalities is like the contact of two chemical
substances:
 if there is any reaction, both are transformed.'
-  Carl Gustav Jung,  (1875-1961),  psychiatrist and psychologist

Jacky - 28 Apr 2005 06:26 GMT
Thanks! I'm going to take a look at your website.

btw, you could run a dynamic IP for your server, http://www.dyndns.org,
FOC
Jacky - 28 Apr 2005 06:41 GMT
hi! went to http://24.115.55.47:8080/ and the page was always
refreshing?
Hal Rosser - 27 Apr 2005 21:59 GMT
you might be able to use JOptionPane class.

If you're familiar with VB's inputbox and msgbox,
you can use Java's JOptionPane class to showinputdialog and
showmessagedialog.
otherwise:
I would keep to the command line for a while.
Betty - 29 Apr 2005 07:36 GMT
> you might be able to use JOptionPane class.
>
[quoted text clipped - 3 lines]
> otherwise:
> I would keep to the command line for a while.

How about BEA WebLogic?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.