I have migrated from Linux (Ubuntu) to Mac OS. I have wrote an application in Java (swing). I have run it successfully the same code in windows and linux but in mac os I have some problems.
Here is the code and problems in comments:
public MainForm() {
setResizable(false);
setAutoRequestFocus(false); // This method is undefined for type MainForm
initComponents();
}
Another:
Object[] industries = jList1.getSelectedValuesList().toArray(); // This method is undefined...
And the last one:
setType(Type.UTILITY); // Type can't be resolved as variable
Of course I can't compile it.
Java versions: Ubuntu:
java version "1.7.0_07" Java(TM) SE Runtime Environment (build 1.7.0_07-b10) Java HotSpot(TM) Server VM (build 23.3-b01, mixed mode)
MacOS:
java version "1.6.0_35" Java(TM) SE Runtime Environment (build 1.6.0_35-b10-428-11M3811) Java HotSpot(TM) 64-Bit Server VM (build 20.10-b01-428, mixed mode)
I can't update java (because It seems to be the newest version for mac). I want to develop this app on mac now.