Solved

button

Posted on 2001-06-22
3
186 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
Comment Utility
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
Comment Utility
oops add this
java.awt.Button button = new java.awt.Button ("HELLO");
0
 

Accepted Solution

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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
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…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now