please dont rip this site

Layout managers

A layout manager controls the size and position of components in a panels, frames and windows.

Although possible, using absolute positioning of components (not using a layout manager) will result on interfaces that wont work on all platforms. This is because the size anfd apperance of componmets in the applet is dependant on the resolution and platform on which the browser is running.

the layout managers provided in Java are:

There is support for writing a custom layout manager, but these should be enough. all the applets above are really the same applet that takes different parameters. The source can be found in the file LayoutDemo.java


User interface widgets


Basic widgets

The following basic interface widgets are provided in the awt toolkit.
Button Checkbox Choice
Label List Scrollbar
TextArea TextField

Later I will discuss the writing of custom components. The applets in the examples above are really the same applet that takes different parameters. The source can be found in the file WidgetDemo.java


Containers

Widgets can live in containers:
Panel Frame Dialog
panels are used to contain other componenets. See the examples on layout managers above to see how panels are used

Applets are embedded in browsers and so do not have a frame, however there is no reason that applets can't create frames.

Dialogs can only be started from a frame.


Menus

And frames can have
MenuBar MenuItem CheckboxMenuItem
All of the frame and menu examples above are FrameDemo applets. The frames started from the applets are implemented by the class Simpleframe.
file: /Techref/language/JAVA/nosugar/ui/index.htm, 6KB, , updated: 1996/10/10 10:15, local time: 2024/11/19 07:38,
TOP NEW HELP FIND: 
18.218.125.85:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://massmind.org/techref/language/JAVA/nosugar/ui/index.htm"> Learning Java [ui]</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to massmind.org!

 

Welcome to massmind.org!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .