?
Solved

button

Posted on 2001-06-22
3
Medium Priority
?
193 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 300 total points
ID: 6217334
just create button
in\mport java.awt.Button;
Button b=new Button("Button");
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
In this post we will learn different types of Android Layout and some basics of an Android App.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses
Course of the Month10 days, 8 hours left to enroll

765 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