I have a question about static.
I have an application which consists of many JRadioButtons which allow the user to choose between the representation of various values on screen (it is a scuba dive logging system) - and so we have feet to metres and vice versa, psi to bar and vv, celcius to fahrenheit and vv etc etc etc.
I have created a class that handles my item events and intend to put all the conversion methods in this class, but am unsure how to implement it so that all objects that need these methods can access them.
can i make my item listener class static, or does it need to be public, or do i just make the methods static? etc etc.
any advice is always greedily absorbed and helpful to me regardless of whether it is the best way. Cheers for your time.
pipk
I have an application which consists of many JRadioButtons which allow the user to choose between the representation of various values on screen (it is a scuba dive logging system) - and so we have feet to metres and vice versa, psi to bar and vv, celcius to fahrenheit and vv etc etc etc.
I have created a class that handles my item events and intend to put all the conversion methods in this class, but am unsure how to implement it so that all objects that need these methods can access them.
can i make my item listener class static, or does it need to be public, or do i just make the methods static? etc etc.
any advice is always greedily absorbed and helpful to me regardless of whether it is the best way. Cheers for your time.
pipk