I am trying to draw a simple pointer, 0..360 degrees, in a JPanel on a SingleFrameApplication.
I am using NetBeans IDE 6.9.1 since it has a nice Palette of Swing Containers, Controls, Menus, etc.
I’d like the DrawPointer interface to be something like this since there will be more than one [pointer]:
DrawPointer(JPanel panel, double degrees);
but the JPanel is declared private by IDE generated code like this:
public class MyView extends FrameView {
public MyView(SingleFrameApplication app) {
super(app);
initComponents();
...
private void initComponents() {
...
private javax.swing.JPanel jPanelA;
...
How do I access the JPanel to draw in it if it is private?
If that being
privateis your sole concern, you can change that in netbeans ,