answersLogoWhite

0

A JButton on Java is a button used for G.U.I (graphical user interface) and displays a button on a window created which can be programmed for different tasks.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Difference between reference and object in java?

On the lower level of Java, a "reference" can be thought of like a pointer in C. It is essentially an integer which refers to (points to) a location in memory where the object data exists. // "button" is a reference to a JButton with a "1" on it (the object). JButton button = new JButton("1");


Explain the role of sizeof operator in java?

There is no sizeOf() operator in Java.


What is a simple java code and explain what the code does?

int a;This simple Java statement declares an integer.


Explain how objects are created in Java?

with new operator


Explain why Java programs running on Android systems do not use the standard Java API and virtual machine?

123


How do you place jbutton on jlabel n synchronize them with jscrollpane?

Exterminateee (Dalek)


How an exception subclass is created in java explain?

We can create a exception sub class by extending Exception class available in java


Hi friends i am new to java can you explain how java is secured?

java is an object oriented programme it is similar to c++ so if you know very well in c++ you can easily figure it out.


How do you add texture in buttons in java?

If you are using the Button class, you can't. java.awt.Button only allows for text to be displayed. However, if you are using the javax.swing.JButton class you can make a call to JButton.setIcon(Icon) to add an image onto your button. Example: // Let's create a new button JButton button = new JButton(); // Load the image in img.gif (this image may be a GIF, JPG, or PNG) ImageIcon icon = new ImageIcon("img.gif"); // Add the image to the button button.setIcon(icon);


How do you make login page with java in frame?

To create a login page in Java using a JFrame, you can utilize the Swing library. First, create a new JFrame and set its layout to a suitable manager, like GridLayout or FlowLayout. Add components such as JTextFields for username and password, JLabels for prompts, and a JButton for submission. Implement an ActionListener for the button to handle the login logic, validating user input accordingly.


Java explain the main feature of java language?

You don't have to rewrite your code to get it working 2 or more OS' That cuts down development cost and time by a lot.


Explain three different methods in java?

There are three different methods /functions in java are there : 1)computational methods.2)manipulative methods.3)procedural methods.