Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Hayrah Burki   on Jan 18 In Java Category.

  
Question Answered By: Roderick King   on Jan 18

Make the String skinname a property of the OuterClass.

class OuterClass{
String skinname;

MyMethod(){
select.addActionListener(
new ActionListener() {
public void  actionPerformed(ActionEvent e) {
skinname = list.getSelectedValue().toString() ;
}});
System.out.println(skinname);

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on java actionlistener Or get search suggestion and latest updates.


Tagged: