Solved

button

Posted on 2001-06-22
3
187 Views
Last Modified: 2010-03-31
how can i create a button in java and what is the syntax command?
0
Comment
Question by:mca2
  • 2
3 Comments
 
LVL 3

Expert Comment

by:rjackman
ID: 6217318
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
 
LVL 3

Expert Comment

by:rjackman
ID: 6217322
oops add this
java.awt.Button button = new java.awt.Button ("HELLO");
0
 

Accepted Solution

by:
anmadhu earned 75 total points
ID: 6217334
just create button
in\mport java.awt.Button;
Button b=new Button("Button");
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Weekend adv creator 3 38
use lov values 2 50
Convert from a json string array to a Java object 3 32
going to wrong jsp page 2 21
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question