answersLogoWhite

0

Why swing is used in java?

Updated: 8/10/2023
User Avatar

Wiki User

12y ago

Best Answer

Swing is a package in Java which contains tools for building GUI application. Swing is a part of Java's foundation classes.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

"Swing" is a library of graphical objects, implemented in pure Java. By using swing, you can guarantee that the graphical objects will look the same on every computer your program runs on.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

It is used to create light weight and powerful User Interface components. It is an alternative to AWT.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why swing is used in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is a getContentPane method in Java?

The getContentPane() method is used to get the main component in a Java Swing JFrame. It is usually a JPanel.


What are the advantages of java swing over java applet?

I think you may have your terminology off a bit.javax.swing is a Java package of graphical user interface (GUI) classes.An Applet is a class designed to be embedded in a web browser.Among the classes in the Swing package is JApplet, which is an Applet extended to work with Swing components.There really is no "advantage" of one thing over the other. They are just different, if related, parts of Java.


How do you create a e-passport website using java swing?

You really don't want to do that. Swing is for desktop applications. If you want to create a website, use Java Server Faces or Applets, not Swing.


What is font class in java?

It is a part of swing package.


What are the features of java swing?

Swing is the next-generation GUI toolkit that Sun Microsystems has developed for the Java language. It is essentially a vast component framework built over parts of the older AWT component libraries used in Java 1.0 and 1.1. Swing is written in 100% Java; there are no native calls. Hence, it can run on any platform with a compatible Java virtual machine. 1. It provides Java programmers many new powerful components-- most of which we've been begging for since Java's inception. 2. It gives developers a chance to create a powerful, portable application that can not only target users on any Java-compatible platform, but also target their desired look-and-feel as well. 3. The distribution is easy to learn, but can also be used at varying levels of complexity to curtail to the programmer's wishes.

Related questions

What is a getContentPane method in Java?

The getContentPane() method is used to get the main component in a Java Swing JFrame. It is usually a JPanel.


What is the difference between swing and swing events?

Java Swings is a technology that is used to create User Interface Components using Java. Swing Events are a part of this technology that is used to handle user actions like click of a button or closing the component etc


Is java swing technology or language?

swing technology


What are the advantages of java swing over java applet?

I think you may have your terminology off a bit.javax.swing is a Java package of graphical user interface (GUI) classes.An Applet is a class designed to be embedded in a web browser.Among the classes in the Swing package is JApplet, which is an Applet extended to work with Swing components.There really is no "advantage" of one thing over the other. They are just different, if related, parts of Java.


What are swing components?

Swing Components are elements like a Frame, Button, Panel etc that can be used as part of Java Swings to create User Interfaces.


How do you create a e-passport website using java swing?

You really don't want to do that. Swing is for desktop applications. If you want to create a website, use Java Server Faces or Applets, not Swing.


What is font class in java?

It is a part of swing package.


What are the features of java swing?

Swing is the next-generation GUI toolkit that Sun Microsystems has developed for the Java language. It is essentially a vast component framework built over parts of the older AWT component libraries used in Java 1.0 and 1.1. Swing is written in 100% Java; there are no native calls. Hence, it can run on any platform with a compatible Java virtual machine. 1. It provides Java programmers many new powerful components-- most of which we've been begging for since Java's inception. 2. It gives developers a chance to create a powerful, portable application that can not only target users on any Java-compatible platform, but also target their desired look-and-feel as well. 3. The distribution is easy to learn, but can also be used at varying levels of complexity to curtail to the programmer's wishes.


Is it easy to design chat server in java swing?

Yes.


Why would someone need a Java swing?

Java Swing might be needed by someone because Swing provides a native look and feel that matches the look and feel of several platforms, with more powerful and flexible components than AWT.


How do you set the constant textarea in java?

we can set the value of constant text area in Java in swing by creating a object of Jframe


What is AWT and Swing in java?

Swing is a library of GUI controls. Classes in swing are not OS dependent. They do not take the look and feel of the target platform so that they have a consistent appearance.