Solved

button

Posted on 2001-06-22
3
190 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 75 total points
ID: 6217334
just create button
in\mport java.awt.Button;
Button b=new Button("Button");
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Tomcat: Unable to run tomcat service. 2 30
sql import cannot be resolved jsp 3 76
SequenceInputStream example 3 22
running on tomcat not jboss eap 7.0 3 32
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 …
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

733 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