Right so my team mate has created a JApplet which contains a countdown
I have to take his JApplet
and fit it inside a JPanel/JTab
(Which its inside a JFrame
), something from the NetBeans Palette.
Simply speaking i have a page with many components and I just want the countdown at the top right.
Using the GUI builder in netbeans, i created a JPanel
and an event. In the event handler, i put:
private void jPanel1ComponentShown(java.awt.event.ComponentEvent evt) {
// TODO: Countdown
Package.Packagename.Countdown.init();
}
The error message i get is:
non-static method init() cannot be referenced from a static context.
The Applet works fine on its own, i just cant put it in here.