Computers & Internet Logo

Related Topics:

Posted on Mar 24, 2009
Answered by a Fixya Expert

Trustworthy Expert Solutions

At Fixya.com, our trusted experts are meticulously vetted and possess extensive experience in their respective fields. Backed by a community of knowledgeable professionals, our platform ensures that the solutions provided are thoroughly researched and validated.

View Our Top Experts

I am developing one java related application.In this there are three places place1,place2 ,place3 ,,if i'm click the place 1 ,in text box the text should come ilike ''place1 text.After that, when i click the second place it should come in the text box as ''Place2''. What should i do for that? I need java coding.

1 Answer

Anonymous

Level 2:

An expert who has achieved level 2 by getting 100 points

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

Vice President:

An expert whose answer got voted for 100 times.

  • Expert 249 Answers
  • Posted on May 28, 2009
Anonymous
Expert
Level 2:

An expert who has achieved level 2 by getting 100 points

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

Vice President:

An expert whose answer got voted for 100 times.

Joined: Mar 25, 2009
Answers
249
Questions
0
Helped
71096
Points
680

Public class MainWindow extends javax.swing.JFrame {

public MainWindow() {
initComponents();
textField1.setText("");
}
.....component initialization function
......

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
textField1.setText("Place1");
}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
textField1.setText("Place2");
}
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
textField1.setText("Place3");
}
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new MainWindow().setVisible(true);
}
});
}

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

177 views

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

ADMIN Andrew
ADMIN Andrew

Level 3 Expert

73795 Answers

ADMIN Eric
ADMIN Eric

Level 3 Expert

42244 Answers

Brad Brown

Level 3 Expert

19190 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...