Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
actionevent
- Page 1
ActionEvent for multiple JButtons
Programming
Software Development
11 Years Ago
by DoubleGee
… buttons work. Here is my actionPerformed method: public void actionPerformed(
ActionEvent
evt) { if(evt.getSource().equals(printButton)) // This is the first…
Re: ActionEvent for multiple JButtons
Programming
Software Development
11 Years Ago
by DoubleGee
…. Any suggestions what the problem might be? public void actionPerformed(
ActionEvent
evt) { if(evt.getSource().equals(printButton)) { System.out.println(inResult…
GUI Actions With Objects, ActionEvent ActionListener
Programming
Software Development
13 Years Ago
by kezkez
… like ... class Action2 implements ActionListener { public void actionPerformed (
ActionEvent
e) { String record1 = field2.getText(); String record2 =…,400)); } class Action implements ActionListener { public void actionPerformed (
ActionEvent
e) { String newDatabaseName = field1.getText(); StudentDB db =…
Faking An ActionEvent
Programming
Software Development
13 Years Ago
by ajst
… currently have a method that is called on a
ActionEvent
of being clicked. Now I want to call that … want to call. [CODE] private void gameEndTurnBtnActionPerformed(java.awt.event.
ActionEvent
evt) { if(theGame.WhosTurn() == 1) { theGame.SetWhosTurn(2);…
If statement non functional in button ActionEvent
Programming
Software Development
8 Years Ago
by shayan_doust
… java.awt.event.ActionListener; import java.awt.event.
ActionEvent
; import javax.swing.*; import java.awt.event.*; public…(true); button.addActionListener(new ActionListener() { public void actionPerformed(
ActionEvent
e){ if(parseduserguess > numberToGuess){ result.setText("…
Re: If statement non functional in button ActionEvent
Programming
Software Development
8 Years Ago
by Heanre
…awt.event.ActionListener; import java.awt.event.
ActionEvent
; import javax.swing.*; import java.awt.…); button.addActionListener(new ActionListener() { public void actionPerformed(
ActionEvent
e) { int numberToGuess = rand.nextInt(100); int…
Re: actionListener & actionEvent in diffirent classes
Programming
Software Development
13 Years Ago
by Dean_Grobler
… normaly you do that and then you have a method
actionEvent
/actionPerformed method in the same class that then says what… is clicked. What I want to do, is have this
actionEvent
/actionPerformed method, in ANOTHER class. Make sense?
Re: Faking An ActionEvent
Programming
Software Development
13 Years Ago
by JamesCherrill
Since your method's code doesn't actually use the
ActionEvent
parameter, you could just call gameEndTurnBtnActionPerformed(null); from anywhere in your class (or anywhere else if you make it public).
Re: Faking An ActionEvent
Programming
Software Development
13 Years Ago
by ajst
… needs to know [CODE] private void gameEndTurnBtnActionPerformed(java.awt.event.
ActionEvent
evt) { if(theGame.WhosTurn() == 1) { theGame.SetWhosTurn(2); theGame.ResetMoved…
The e.getSource() method from ActionEvent e in a listener
Programming
Software Development
14 Years Ago
by mastr924
In the listener for a button in the actionPerformed(
ActionEvent
e) part, if you call e.getSource it returns a type object. So how can I turn that object that it returns into the original button?
actionListener & actionEvent in diffirent classes
Programming
Software Development
13 Years Ago
by Dean_Grobler
Hi there, I just wanted to find out if one can have a actionListener() in one .class file and then have the
actionEvent
() in another .class file? If not, how would I go about to get the same effect? Thanks!
Re: actionListener & actionEvent in diffirent classes
Programming
Software Development
13 Years Ago
by JamesCherrill
This question doesn't quite make sense - the
actionEvent
is created by Swing normally. Can you please explain exactly what you want to achieve?
JFrame Code
Programming
Software Development
8 Years Ago
by hadisur_rahman
…lt;/editor-fold> private void memoryreadActionPerformed(java.awt.event.
ActionEvent
evt) { display1.setText(String.valueOf(memorydisplay.getText())); } private void onedividedbyxActionPerformed…
Help with subtotal
Programming
Software Development
14 Years Ago
by onlinegear
…TableList.addActionListener(new ActionListener() { public void actionPerformed(
ActionEvent
event) { } }); //Order 1 numberLabel1 =….addActionListener(new ActionListener() { public void actionPerformed(
ActionEvent
event) { if (DrinksCombo10.getSelectedItem().equals("…
Need guidance
Programming
Software Development
16 Years Ago
by nljavaingineur
…{ this.adaptee = adaptee; } public void actionPerformed(
ActionEvent
e) { adaptee.button15_actionPerformed(e); } } class … { this.adaptee = adaptee; } public void actionPerformed(
ActionEvent
e) { adaptee.button1_actionPerformed(e); } } } class …
Currency Conversion
Programming
Software Development
13 Years Ago
by Matt89
…} private void ZeroActionPerformed(java.awt.event.
ActionEvent
evt) { Money.setText(Money.getText()+Zero… private void EightActionPerformed(java.awt.event.
ActionEvent
evt) { Money.setText(Money.getText…
JFRame is not showen after button is clicked
Programming
Software Development
12 Years Ago
by KSBeyaz
…} } }); B.addActionListener(new ActionListener(){ public void actionPerformed(
ActionEvent
arg0){ for(int i=0;i<txt.length();i… } }); J.addActionListener(new ActionListener(){ public void actionPerformed(
ActionEvent
arg0){ for(int i=0;i<txt.length();i…
need help wth java calculator app
Programming
Software Development
11 Years Ago
by darylglenng
…(jTextField1.getText()+B3.getText()); } private void B5ActionPerformed(java.awt.event.
ActionEvent
evt) { jTextField1.setText(jTextField1.getText()+B5.getText()); } private void B6ActionPerformed…
parent/child
Programming
Software Development
16 Years Ago
by ceyesuma
…private void crnewacctActionPerformed(java.awt.event.
ActionEvent
evt) { if(evt.getActionCommand()==("…} private void CreditActionPerformed(java.awt.event.
ActionEvent
evt) { // TODO add your handling…
Confuzzled in sorting arraylist...
Programming
Software Development
14 Years Ago
by Evil_genius82
… { public void actionPerformed(java.awt.event.
ActionEvent
evt) { modifyButtonActionPerformed(evt); } });… { public void actionPerformed(java.awt.event.
ActionEvent
evt) { defaultRecordsButtonActionPerformed(evt); } }); botton1Panel…
Re: Confuzzled in sorting arraylist...
Programming
Software Development
14 Years Ago
by Evil_genius82
… java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.
ActionEvent
evt) { defaultRecordsButtonActionPerformed(evt); } }); botton1Panel.add(defaultRecordsButton); getContentPane().add(botton1Panel); bottom2Panel…
security building
Programming
Software Development
13 Years Ago
by ekofo
….getSelectedFile(); String filePath = fileName.getAbsolutePath(); save(filePath); } } private void jmiExit_actionPerformed(
ActionEvent
e) { int answer = JOptionPane.showConfirmDialog(this, "are you sure…
Help with hangman game
Programming
Software Development
13 Years Ago
by john sigma
…java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.
ActionEvent
e) { System.out.println("actionPerformed()"); // TODO… java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.
ActionEvent
e) { if (correctWordLen == wordlen || wrongLettersCount == maxTries) { newGame(); e.…
Java MultiThreading-Rotate an Image
Programming
Software Development
12 Years Ago
by MsBear92
…".png"); repaint(); } private void jComboBox7ActionPerformed(java.awt.event.
ActionEvent
evt) { // TODO add your handling code here: } private void jButton1ActionPerformed…
game problem (netbeans java)
Programming
8 Years Ago
by EarhawkPH
…{ last(); } playon.setEnabled(true); } private void d2ActionPerformed(java.awt.event.
ActionEvent
evt) { int got = 13; a2=(int) (Math.random()*6+1…
I need help in Java GUI
Programming
3 Years Ago
by Hisham_3
… = Integer.parseInt(lblmin.getText()); } private void bt10mActionPerformed(java.awt.event.
ActionEvent
evt) { // TODO add your handling code here: lblmin.setText("…
Hello there!
Programming
Software Development
17 Years Ago
by ScatmanTom
… private void northWestButtonActionPerformed(java.awt.event.
ActionEvent
evt) { rXM = -1…private void northEastButtonActionPerformed(java.awt.event.
ActionEvent
evt) { rXM = 1;…
Instantiating an Object of a Class Confusion
Programming
Software Development
16 Years Ago
by mariejt
…FlowLayout; import java.awt.GridLayout; import java.awt.event.
ActionEvent
; import java.awt.event.ActionListener; import javax.swing.*;…System.out.println("error"); } } setTextFields(); } // end lastButton
actionEvent
}); // end lastButton actionListener } // end constructor // method to calculate the …
Integrating code to GUI help please
Programming
Software Development
15 Years Ago
by Barman007
…;); b5.addActionListener(new ActionListener() { public void actionPerformed(
ActionEvent
e) { displayScreen.setText("dude, seriously"…;); b7.addActionListener(new ActionListener() { public void actionPerformed(
ActionEvent
e) { jButton7_actionPerformed(e); } }); // // …
Help me optimize this code!
Programming
Software Development
15 Years Ago
by PhiberOptik
… private class pc17Listener implements ActionListener{ public void actionPerformed(
ActionEvent
e) { System.exit(0); } } private …class freeAllListener implements ActionListener{ public void actionPerformed(
ActionEvent
e) { System.exit(0); } } private …
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC