public void setColorLabel(Event event, int i)
{
labelColor[i].setText(Text[i] + scrBar[i].getValue());
Color color = new Color((int)(2.5499999999999998D * (double)scrBar[0].getValue()), (int)(2.5499999999999998D * (double)scrBar[1].getValue()), (int)(2.5499999999999998D * (double)scrBar[2].getValue()));
labelDemo.setBackground(color);
float af[] = new float[3];
EventInSFColor eventinsfcolor = (EventInSFColor)myMaterial.getEventIn("set_diffuseColor");
for(i = 0; i < 3; i++)
af[i] = (float)scrBar[i].getValue() / 100F;
eventinsfcolor.setValue(af);
}
Scrollbar scrBar[];
Label labelColor[];
Label labelDemo;
Browser browser;
Node myMaterial;
String Text[] = {
"R=", "G=", "B="
};
boolean isScenceLoading;
}
这个程序是网上找到的,已经编译通过的了,我是用JAD把它反编译过来的,可是我在JCreator上再次编译时就通不过了,我命令行上编译出现同样的错误提示:
F:\zoufuxing\myjava>javac Changecolor.java
Changecolor.java:12: cannot resolve symbol
symbol : class Browser
location: package external
import vrml.external.Browser;
^
Changecolor.java:13: cannot resolve symbol
symbol : class Node
location: package external
import vrml.external.Node;
^
Changecolor.java:14: cannot resolve symbol
symbol : class EventInSFColor
location: package field
import vrml.external.field.EventInSFColor;
^
Changecolor.java:106: cannot resolve symbol
symbol : class Browser
location: class Changecolor
Browser browser;
^
Changecolor.java:107: cannot resolve symbol
symbol : class Node
location: class Changecolor
Node myMaterial;
^
Changecolor.java:31: cannot resolve symbol
symbol : variable Browser
location: class Changecolor
browser = Browser.getBrowser(this);
^
Changecolor.java:96: cannot resolve symbol
symbol : class EventInSFColor
location: class Changecolor
EventInSFColor eventinsfcolor = (EventInSFColor)myMaterial.getE
et_diffuseColor");
^
Changecolor.java:96: cannot resolve symbol
symbol : class EventInSFColor
location: class Changecolor
EventInSFColor eventinsfcolor = (EventInSFColor)myMaterial.getE
et_diffuseColor");
^
Note: Changecolor.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
8 errors