Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.TextField;
- import java.util.Observable;
- public class SubjectValue extends Observable
- {
- public void update()
- {
- setChanged();
- notifyObservers();
- }
- public String getValue()
- {
- return .....getText1(); // get the text from a textfield in the main class
- }
- }
Add Comment
Please, Sign In to add comment