« Return to Thread: Clock help

Re: Clock help

by Johnny Kewl :: Rate this Message:

Reply to Author | View in Thread


----- Original Message -----
From: "Doctor Sup" <kreitals@...>
To: <nbusers@...>
Sent: Thursday, October 09, 2008 7:51 PM
Subject: [nbusers] Clock help


>
> I am very new to Netbeans and java programming in general so excuse my
> ignorance, but i am trying to implement a simple digital clock via a
> Jlabel
> but when i attempt to add a TimerBean it says "Components from the default
> package cannot be used outside of the default pakage" what does this mean?
> and more importantly how can i implement this clock ( as a basic decktop
> aplication ).
>
> Thankyou for any help.

Doctor, sounds like its just bitchin about packages...
Its not good practive to stick stuff in the default package... so do this...

Right click on your source folder... new package and call it...
com.myclock.test

anything... idea is that its unique to you..

Then drag you application to the new package... it will ask you to
refactor... say ok, let it do its thing...

... should be happy...

 ---------------------------------------------------------------------------
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---------------------------------------------------------------------------
If you cant pay in gold... get lost...

 « Return to Thread: Clock help