Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Java questions?


  • Please log in to reply

#1
rafiqtolas

rafiqtolas

    New Member

  • Member
  • Pip
  • 1 posts
Hi i am rafiq,

What is the difference between Swing and AWT components?
  • 0

Advertisements


#2
zep516

zep516

    Trusted Helper

  • Malware Removal
  • 7,567 posts
Hi rafiqtolas,

The below is from research only, I personally know little about it.

When developing a Java program it is important to select the appropriate Java Graphical User Interface (GUI) components. There are two basic sets of components that you will most likely build your Java programs with. These two groups of components are called the Abstract Window Toolkit (AWT) and Swing. Both of these groups of components are part of the Java Foundation Classes (JFC).

An Overview of the AWT

AWT stands for Abstract Window ToolKit. The Abstract Window Toolkit supports GUI Java programming. It is a portable GUI library for stand-alone applications and/or applets. The Abstract Window Toolkit provides the connection between your application and the native GUI. The AWT provides a high level of abstraction for your Java program since it hides you from the underlying details of the GUI your program will be running on.

AWT features include:

  • A rich set of user interface components.
  • A robust event-handling model.
  • Graphics and imaging tools, including shape, color, and font classes.
  • Layout managers, for flexible window layouts that don't depend on a particular window size or screen resolution.
  • Data transfer classes, for cut-and-paste through the native platform clipboard.

All that information is from Here. Please see the link for additional information on swing and the pros an cons of both.

Thanks
Joe :)
  • 0

#3
Shivapandian

Shivapandian

    New Member

  • Member
  • Pip
  • 1 posts

hi Friend,

 

some of the different components of swing and awt are given below.

 

 

AWT

AWT stands for Abstract windows toolkit.
AWT components are called Heavyweight component.
AWT components require java.awt package.
AWT components are platform dependent.
AWT is a thin layer of code on top of the OS.

SWING
Swing is also called as JFC’s (Java Foundation classes).
Swings are called light weight component because swing components sits on the top of AWT components and do the work.
Swing components require javax.swing package.
Swing components are made in purely java and they are platform independent.
Swing is much larger. Swing also has very much richer functionality.

 

 

 

Java Training Institute in Chennai


  • 0

#4
Anandha Krishnan SKM

Anandha Krishnan SKM

    New Member

  • Member
  • Pip
  • 1 posts

Hi,

 

We want to internationalise JAVAFX DESKTOP APPLICATION(Front end), MYSQL(Backend) for our product in our company.

 

We dragged and dropped some tools(like button,label,textbox,menuitem,list etc..) from palette window and those are converted to uneditable text in .fx file.

 

Is there any option to internationalise those forms ?


  • 0

#5
Veitch

Veitch

    Member

  • Member
  • Pip
  • 6 posts

Hi,

 

We want to internationalise JAVAFX DESKTOP APPLICATION(Front end), MYSQL(Backend) for our product in our company.

 

We dragged and dropped some tools(like button,label,textbox,menuitem,list etc..) from palette window and those are converted to uneditable text in .fx file.

 

Is there any option to internationalise those forms ?

 

You should probably make your own thread with this question. But have a look at the following links:

https://stackoverflo...nationalization

http://docs.oracle.c...18n-support.htm


  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP