Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Posts: 47
Registered: ‎04-16-2009
My Device: Not Specified

Guage Field

Hi all,

 

   I wanted to add a progress bar when a button is clicked.i have seen so many example in the forum but i am bit confused.plz guide me how to add a progress bar and where to use the code in my application.

 

thanks&regards

 

Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: Guage Field

Check this Thread.

 

http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&message.id=21027&query.id=18...


Use Search. "Accept Solution" If the problem is resolved.
Highlighted
Developer
Posts: 696
Registered: ‎12-02-2008
My Device: Not Specified

Re: Guage Field

Hi,

 

Try this thread

 

http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&message.id=22816&query.id=18...

Regards,
Rajat Gupta.
--------------------------------------------------------------------------------
If your problem was get solved then please mark the thread as "Accepted solution" and kudos - your wish
New Developer
Posts: 47
Registered: ‎04-16-2009
My Device: Not Specified

Re: Guage Field

Hi all,

 

   where to add my code that should process my background operation. i have mentioned the code below

 

backup_data_button.setChangeListener(new FieldChangeListener()
        {
            public void fieldChanged(Field field, int context)
             {   
                percentGauge = new GaugeField("Backing up...Please Wait", 0, 100, 0,GaugeField.NO_TEXT);
                main_vfm.add(percentGauge);
                int  i= backupContact.getContacts();
                timer = new Timer();
                timer.schedule(new RemindTask(),1000,1000);
                
               //progressBar   = new ProgressBar("Backing up...Please Wait",100,600); 
               //progressBar.start();
              }
       });

 

Thanks&Regards

Developer
Posts: 696
Registered: ‎12-02-2008
My Device: Not Specified

Re: Guage Field

Hi,

 

If you look into those thread you will find answer to your solution Smiley Happy

Regards,
Rajat Gupta.
--------------------------------------------------------------------------------
If your problem was get solved then please mark the thread as "Accepted solution" and kudos - your wish