button

how can i create a button in java and what is the syntax command?
mca2Asked:
Who is Participating?
 
anmadhuConnect With a Mentor Commented:
just create button
in\mport java.awt.Button;
Button b=new Button("Button");
0
 
rjackmanCommented:
hi
just use the java.awt.Button class
e.g
in ur code add following
java.awt.Button button = new Button("HELLO");

Cheers
RJ
0
 
rjackmanCommented:
oops add this
java.awt.Button button = new java.awt.Button ("HELLO");
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.