Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class UI(){
- public static int cursorvar = 0;
- public UI(){
- JFrame frame = new JFrame();
- //frame settings and so on
- frame.setCursor(cursorvar);
- }
- }
- public class SettingsWindow(){
- public SettingsWindow(){
- //Window and window parameters
- button.addActionListener(new ActionListener(){
- public ActionListener(){
- cursorvar++;
- System.out.println(cursorvar);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement