We are trying to edit an existing swing applet. It was created in netbeans.
It will not render any of the custom widgets.
We tried to make it simple and just create a new applet and put a single
custom widget on the screen.We created a new JApplet, and put a panel on it, then we tried to add a Bean. This bean is nothing more than an extended JButton that is super simple. It sees the bean and we can select it from the list but when we try to hover over the applet, it comes back with that circle with a slash thru it (the no BS symbol). We can add plain
old JButtons just fine, but not the custom ones (or any custom widget).
We are running Eclipse 3final with the 2.0.1 pro evaluation swing designer plugin.
The code for the button is nothing more than this:
- Code: Select all
package foo.bar.button;
import javax.swing.JLabel;
import javax.swing.JButton;
import java.awt.Point;
import java.awt.Font;
import java.awt.Color;
import java.awt.Rectangle;
public class AWSButton extends JButton {
public AWSButton(){
super();
}
public AWSButton(char hotKey){
super();
setMnemonic(hotKey);
}
}
anxiously awaiting any suggestions. thanks!
-ken