What is the difference between Swing and AWT components?
Java questions?
#1
Posted 01 January 2014 - 09:43 PM
What is the difference between Swing and AWT components?
#2
Posted 01 January 2014 - 10:33 PM
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
#3
Posted 05 May 2014 - 03:52 AM
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
#4
Posted 14 May 2014 - 02:19 AM
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 ?
#5
Posted 15 July 2014 - 01:55 AM
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
Similar Topics
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users