Solved

button

Posted on 2001-06-22
3
191 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

724 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