/* * Copyright (c) 1995 - 2008 Sun Microsystems, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are ...
My Java is a little rusty, but this should be what you're looking for. Here is your listener: private RadioListener implements ActionListener{ private JTextField textField; public RadioListener(JTextField textField){ this.textField = textField; } publ
Every Swing component has to have a field name so you can add the Swing component to a layout manager. The field name can be local to the createPartControl method, or global to the class in the case of JTextFields, as you want to get the text in an action
Post a Comment:
Showing 0 Comments: