• Post Reply Bookmark Topic Watch Topic
  • New Topic

handling events

 
frank udoh
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can someone help me with brush ups on events,am still confused.though i understand the concept writing the codes is my problem
 
Ravikanth kolli
Ranch Hand
Posts: 179
Chrome Eclipse IDE Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Firstly,
welcome to javaranch.

This is a good place to start. It gives a clear idea about event listeners with examples.
 
Campbell Ritchie
Marshal
Posts: 52576
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like something which is usually discussed in our Swing forum. Moving.
 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
frank udoh wrote:can someone help me with brush ups on events,am still confused.though i understand the concept writing the codes is my problem

You'll probably want to give us more detail on what you're asking if you want a better answer. At present all we can do is point you to the tutorial and advise you to read. If however you were to express a specific question about actions and events, then we'd be better equipped to give you specific answers. Best of luck to you and your Swing coding.
 
Suraj Chandran
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also this
http://journals.ecs.soton.ac.uk/java/tutorial/post1.0/ui/eventstandard.html
Please take note of what pete said...if you can be more specific, helping might be easier
 
John M Morrison
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Head First Java does an excellent job of explaining listeners and events.
 
Campbell Ritchie
Marshal
Posts: 52576
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That Southampton lecture series seems very out of date; Swing was a new release when that was written.
 
frank udoh
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers ,
Thanks for your contribution.first of all i am working on an information system that takes the biodata of students.
my challenge is( 1) i have two radio buttons ,one is male and the second is female both on a button group.my challenge is writing the event such that when any of the sex button is selected it can show that male/female is selected when stored in a file .am using the random access file .
e..g
JRadiobutton malebuton= new JRadiobutton("Male");
malebuton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e){
// this is where my challenge is .
}

});
 
Campbell Ritchie
Marshal
Posts: 52576
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I presume you are familiar with the JRadioButton class, and the Java Tutorials section it links to.
 
Paper has not yet been outlawed – so let your Java Swing application print with wild abandon: JPDF
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!