I have a class with GUI components where user inputs numbers into JTextFields. I want to pass that values as int to another class(Ticket) in the same package where I will calculate a result using those 2 ints a return a String back to GUI class where it would be put into JLabel.
I can't get it to work. I was able to access a method from Ticket class in GUI class and print something in JLabel, but I can't pass those 2 values from JTextField to do the calculation.