answersLogoWhite

0


Best Answer

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

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is JButton in java and explain it?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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


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);


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.


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.


Why java is platform independent explain by diagram?

Java is a platform independent language becoz of the bytecode magic of java. In java, when we execute the source code...it generates the .class file comprising the bytecodes. Bytecodes are easily interpreted by JVM which is available with every type of OS we install.