7 Replies - 1951 Views - Last Post: 03 November 2011 - 11:56 AM Rate Topic: -----

#1 amture106  Icon User is offline

  • D.I.C Head

Reputation: -1
  • View blog
  • Posts: 157
  • Joined: 08-September 11

Making Busy icones with Progress Bar

Posted 02 November 2011 - 11:51 PM

Hey guys,

I would like to add a busy I cone using progress bar, but I've got no clue how to do it. I only have this code
jProgressBar1 = new javax.swing.JProgressBar();
jProgressBar1.setBackground(new java.awt.Color(204, 0, 0));
private javax.swing.JProgressBar jProgressBar1;



so what's next?
Is This A Good Question/Topic? 0
  • +

Replies To: Making Busy icones with Progress Bar

#2 DimitriV  Icon User is offline

  • They don't think it be like it is, but it do
  • member icon

Reputation: 584
  • View blog
  • Posts: 2,738
  • Joined: 24-July 11

Re: Making Busy icones with Progress Bar

Posted 03 November 2011 - 12:26 AM

There is actually a Java tutorial on it:
http://www.dreaminco...s-bar-tutorial/
Was This Post Helpful? 0
  • +
  • -

#3 amture106  Icon User is offline

  • D.I.C Head

Reputation: -1
  • View blog
  • Posts: 157
  • Joined: 08-September 11

Re: Making Busy icones with Progress Bar

Posted 03 November 2011 - 12:44 AM

well this is a cool tuttorial, but I want to make like busy with criculing icon.
Was This Post Helpful? 0
  • +
  • -

#4 Sheph  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 432
  • View blog
  • Posts: 1,020
  • Joined: 12-October 11

Re: Making Busy icones with Progress Bar

Posted 03 November 2011 - 03:40 AM

That would be called changing the cursor. Look into the setCursor method for your component.

http://www.catalysof...busyCursor.html I just googled this one. Seems to have what you are looking for.
Was This Post Helpful? 0
  • +
  • -

#5 n8schatten  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 144
  • View blog
  • Posts: 263
  • Joined: 07-December 10

Re: Making Busy icones with Progress Bar

Posted 03 November 2011 - 04:02 AM

I don't think amture wants to change the cursor, but rather is looking for some kind of customized progressbar (e.g. progress indicators as they are common in web applications).

@amture:
I've found these two projects which may be helpful:
http://rabbit-hole.b...icon-redux.html
http://code.google.c...jbusycomponent/

Since I'm also interested in using these components (and did not yet have the time to do so), I'd be glad if you shared your experiences.

Edit: Yet another one: http://www.jroller.c...x/date/20050215 by Romain Guy.

This post has been edited by n8schatten: 03 November 2011 - 04:03 AM

Was This Post Helpful? 1
  • +
  • -

#6 Sheph  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 432
  • View blog
  • Posts: 1,020
  • Joined: 12-October 11

Re: Making Busy icones with Progress Bar

Posted 03 November 2011 - 04:06 AM

Oh I see now. That looks pretty cool. I would also be interested in your findings.
Was This Post Helpful? 0
  • +
  • -

#7 g00se  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2831
  • View blog
  • Posts: 11,988
  • Joined: 20-September 08

Re: Making Busy icones with Progress Bar

Posted 03 November 2011 - 05:36 AM

One easy way would be to use an animated gif in a label. Set the image before start and remove the image on finish. Always use a SwingWorker when doing this kind of thing.
Was This Post Helpful? 1
  • +
  • -

#8 amture106  Icon User is offline

  • D.I.C Head

Reputation: -1
  • View blog
  • Posts: 157
  • Joined: 08-September 11

Re: Making Busy icones with Progress Bar

Posted 03 November 2011 - 11:56 AM

well so far what n8schatten gave was not clear enough. It was so confusing, but still working on it :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1