answersLogoWhite

0

Swing is the api defined in javax.swing package and used to add graphical interface to the user by providing controls like JButton , JLabel , JTextField etc.

if there is a User Interface then there has to be a way to handle the events generated by these controls so event is the general interaction of the user and the application which can be delegated using any delegation model..simple examples of the events are MouseEvent (click, double click etc.)

swing is also known as JFC (java foundation classes) before using swing for designing user interface we were using awt which are heavy objects as compared to swing objects and swing has a better look and feel also.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What is the explanation for the swing delegation event model?

The Swing delegation event model in Java is based on the principle of event listeners and event sources. In this model, components (like buttons or text fields) act as event sources that generate events when user interactions occur. These events are then processed by registered listeners—objects that implement specific interfaces to handle particular types of events. This decouples the event generation from event handling, allowing for flexible and modular code design, as multiple listeners can respond to the same event source.


Where to rent swing set for sweet16?

You can rent a swing set for a Sweet 16 party from local party rental companies or event supply stores. Websites like Party City, Rent My Party, or local listings on platforms like Yelp may have options for renting swing sets. Additionally, check with community centers or parks that might have rental services. Be sure to book in advance to secure availability for your event date.


How high can you swing on a swing set swing?

The height you can swing on a swing set swing depends on how high you pump your legs and the length of the swing chains. Generally, you can swing up to about 20 feet high on a standard swing set.


What is the historical event in Swing Kids?

The Swing Kids movie involved the event known as Hitler trying to take over Czechoslovakia and Poland; which led to WW!!. Not only that, 6 million Jews were killed in the Holocaust. The propaganda that Hitler spread about the Jews was just white wash; in other words; he was using his words to paint the Jews as evil when there was no evil done by them!


When should the method invokeLater be used?

invokeLater should be used when your code is performing a GUI change in the Swing UI library, and you cannot guarantee that the change is being made in the Event Dispatching Thread (which can cause data problems, as Swing is not "thread-safe"). So, invokeLater should be used if (1) you are using Swing, and (2) you are using Thread, and (3) the thread from 2 needs to update a GUI element that is part of Swing.


When was Swing Brother Swing created?

Swing Brother Swing was created in 1949.


When was Swing Batta Swing created?

Swing Batta Swing was created on 1993-11-09.


What is the future tense of swing?

The future tense of swing is will swing.


When was Swing Phi Swing created?

Swing Phi Swing was created on 1969-04-04.


What is ersatz swing?

An ersatz swing would be an imitated; or fake swing.


What are the release dates for Swing Shift Swing - 1942?

Swing Shift Swing - 1942 was released on: USA: 1942


What do you call a swing that is like a sofa?

If it's on your porch, porch swing. If a regular swing then it's called, a swing couch.