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 / January 2007

Tip: Looking for answers? Try searching our database.

Newbie question re NetBeans and GUI appearance

Thread view: 
MikeB - 30 Jan 2007 18:51 GMT
I apologize. I expect this is the wrong forum to ask my question and
would appreciate a hint as to the appropriate forum to ask this
question in.

On the off chance that someone will answer, I will put my question
here as well.

I'm a student at university and we have to develop a GUI program with
NetBeans. I have managed to complete the layout of my frame and all
the components appear. However, the appearance is different depending
on how I display the frame. If, while in the IDE, I click on the
"Preview Design" icon, I see the frame rendered so that it looks
exactly like any other windows  window on my computer. If I choose to
Run the application, I get a clunky, less nice appearance of the
window.

Can anyone point me to what/where I need to change things so the run-
time window is as nice-looking as the design-time window?

Thanks.
Mike
Ike - 30 Jan 2007 20:47 GMT
I think you need to set the size of the frame, and take into account
whatever layout manager you are using. -Ike
Michael - 30 Jan 2007 21:11 GMT
> I'm a student at university and we have to develop a GUI program with
> NetBeans. I have managed to complete the layout of my frame and all
[quoted text clipped - 4 lines]
> Run the application, I get a clunky, less nice appearance of the
> window.

It sounds like you need to set the look and feel:
  http://java.sun.com/docs/books/tutorial/uiswing/lookandfeel/
plaf.html
Basically, you'll need to add code as shown to your main function (or
some other such place).  Presumably NetBeans is automatically doing
that in Preview Design mode.

Michael
MikeB - 30 Jan 2007 21:20 GMT
> > I'm a student at university and we have to develop a GUI program with
> > NetBeans. I have managed to complete the layout of my frame and all
[quoted text clipped - 13 lines]
>
> Michael

That was it! Thank you so much. It was a piece of cake to add it and
now my app looks the way I expect it to look.


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.