Hello I would like to implement multiple swing timers, each of which have a different function, but I cannot seem to separate the functions. I have one actionlistener and I cannot make another one. Please help.
sirlink99
56
Practically a Master Poster
Recommended Answers
Jump to Post@ sirlink99 wrote
I would like to implement multiple swing timers
yes good idea, is possible
each of which have a different function
yes good idea, probably safer way
but I cannot seem to separate the functions. I have one actionlistener …
Jump to Postthere is nothing about, but maybe this one can help you
import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.text.NumberFormat; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.Timer; public class Junk implements ActionListener { private NumberFormat nf; private JLabel lGallons; private JLabel lCost; private JPanel p; private double d = …
All 7 Replies
mKorbel
274
Veteran Poster
sirlink99
56
Practically a Master Poster
mKorbel
274
Veteran Poster
mKorbel
274
Veteran Poster
sirlink99
56
Practically a Master Poster
Mattox
0
Junior Poster in Training
mKorbel
274
Veteran Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.