[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 197
  • Last Modified:

button

how can i create a button in java and what is the syntax command?
0
mca2
Asked:
mca2
  • 2
1 Solution
 
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
 
anmadhuCommented:
just create button
in\mport java.awt.Button;
Button b=new Button("Button");
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now