posted 15 years ago
Dear Programmers,
Having downloaded the JDK 6.0 (see console input/output below) it returns compiler errors on a program I copied direct from the SunJava site -
being SpinnerDemo3.
I was wondering whether the code is faulty, the jdk is faulty - or perish the thought - I am faulty.
Anyhow whatever the cause, I enclose the code for SpinnerDemo3 below, also the console response.
Thank you for helping.
Yours
Simon.
Console output:-
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Administrator>cd C:\Java\Java Six
C:\Java\Java Six>set PATH=C:\Program Files\Java\jdk1.6.0_05\bin;%PATH%
C:\Java\Java Six>javac SpinnerDemo3.java
SpinnerDemo3.java:74: cannot find symbol
symbol : class CyclingSpinnerListModel
location: class components.SpinnerDemo3
monthModel = new CyclingSpinnerListModel(monthStrings);
^
SpinnerDemo3.java:96: cannot find symbol
symbol : class CyclingSpinnerListModel
location: class components.SpinnerDemo3
if (monthModel instanceof CyclingSpinnerListModel) {
^
SpinnerDemo3.java:97: cannot find symbol
symbol : class CyclingSpinnerListModel
location: class components.SpinnerDemo3
((CyclingSpinnerListModel)monthModel).setLinkedModel(yearModel);
^
SpinnerDemo3.java:130: cannot find symbol
symbol : variable SpringUtilities
location: class components.SpinnerDemo3
SpringUtilities.makeCompactGrid(this,
^
4 errors
C:\Java\Java Six>