Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Summary - Basic GUI Elements

Basic GUI Elements

Tutorial Details:

String t; // A string. Interpreted as HTML if starts with "" and ends with "".
Font f; // A Font object.
Icon img; // An image.
Container cont; // Container is the superclass of JPanel.

Top-level Containers (JFrame)
JFrame - window, typically subclassed
w = new JFrame(); Constructor
w.setTitle(t); Sets titlebar text to t
w.setDefaultCloseOperation(opt); Use opt JFrame.EXIT_ON_CLOSE to terminate program when close box clicked.
w.setResizable(false); Prevent user from resizing window.
w.show(); Use w.setVisible(true) instead.


 

Rate Tutorial:
http://www.roseindia.net/java/java-tips/summaries/guisum.shtml

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Summary - Basic GUI Elements

View Tutorial:
Summary - Basic GUI Elements

Related Tutorials:

JavaWorld - Distributed applet-based massively parallel processing (DAMPP) - January 1997
JavaWorld - Distributed applet-based massively parallel processing (DAMPP) - January 1997
 
Process XML with JavaBeans, Part 3 - JavaWorld January 2000
Process XML with JavaBeans, Part 3 - JavaWorld January 2000
 
Internationalize JSP-based Websites - JavaWorld March 2000
Internationalize JSP-based Websites - JavaWorld March 2000
 
Use the JVM Profiler Interface for accurate timing - JavaWorld
Use the JVM Profiler Interface for accurate timing - JavaWorld
 
The art of EJB deployment - JavaWorld August 2001
The art of EJB deployment - JavaWorld August 2001
 
Cut down on logging errors with Jylog
Cut down on logging errors with Jylog
 
SGLayout—a layout manager for the rest of us
SGLayout—a layout manager for the rest of us
 
ULC - J2EE Rich Clients now on Eclipse
ULC - J2EE Rich Clients now on Eclipse it is porting ULC Visual Editor to the new Eclipse visual GUI construction and editor platform. The company has been invited to participate in the Eclipse Visual Editor project. Following its decision to contribute
 
Java and GIS, Part 2: Mobile LBS
Java and GIS, Mobile LBS Using LBS First, let\'s make sure that we understand what an LBS application is. Typically, an LBS application is trying to answer the question \"Where am I?\" and then do something with that information. There are a number
 
SpeedJG - XML Builder
SpeedJG - XML based Java Swing GUI Builder
 
JDBC scripting, Part 2
JDBC scripting, Part 2 Programming and Java scripting in JudoScript Summary JudoScript is a rich functional scripting language, and an easy and powerful general programming and Java scripting language. JudoScript's power comes from its synergy of
 
Welcome to the Tonic Look & Feel.
Welcome to the Tonic Look & Feel. This pluggable look and feel is a free substitute for the default native look and feel of Swing, 'Metal', distributed under the GNU Lesser General Public License.
 
J2EE security: Container versus custom
Choose the appropriate type of security for your application Summary This article covers the factors to consider when choosing between custom J2Esecurity and E standard security, also known as container security. It briefly covers how each type of secu
 
HA-JDBC: High-Availability JDBC
HA-JDBC: High-Availability JDBC Summary HA-JDBC is a JDBC driver proxy that provides light-weight, transparent clustering capability to any underlying JDBC driver.
 
Light-Weight Visual Components Library for different platform: SWT, J2SE, J2ME, .NET
Light-Weight Visual Components Library for different platform: SWT, J2SE, J2ME, .NET
 
SQL Uniform
SQL Uniform is a general interface (GUI), a helper application to relational databases of various types regarding query, maintenance, data comparison, export (convert).
 
Solving the logout problem properly and elegantly
Summary Properly handling the logout process in a password-protected Web application requires more than just calling the invalidate() method on the HttpSession object because most modern browsers, with the Back and Forward buttons, allow users to go back
 
Build scripts with Groovy and Ant
Build scripts with Groovy and Ant Summary In nearly all developers' toolboxes, Ant is the standard build tool for Java applications, thanks to its open, standard, and multiplatform structure. Though it represents a great improvement in automating produc
 
Automate GUI tests for Swing applications
Summary Automation is necessary for frequent and consistent testing, which is the foundation of agile development. However, acceptance tests of GUI applications are not always easy to automate. This article explains a simple way of automating Java Swing
 
Gain SQL SELECT functionality in Java
Gain SQL SELECT functionality in Java Summary In "Filter Collections," David Rappoport described a simple way to filter collections of objects. In this article, he expands on this idea and shows you how to treat an array or a collection of objects the s
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.