Skip to main content

JXStatusBar?

8 replies [Last post]
siva
Offline
Joined: 2003-07-15

It may be good to have a status bar widget similar to the status bar we see in Mozilla/Netscape/IE which are good to provide feedback to the user's actions within enterprise applications.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Mark Davidson

On 08/31/2004 12:15 PM, jdnc-interest@javadesktop.org wrote:
> It may be good to have a status bar widget similar to the status bar
> we see in Mozilla/Netscape/IE which are good to provide feedback to
> the user's actions within enterprise applications.

I agree that the status bar should be IE/Moz like.

RFE 74 has been filed to track this issue.

https://jdnc.dev.java.net/issues/show_bug.cgi?id=74

As Richard mentions, we already have a JXStatusBar which listens for
messages. The editor demo has a status bar which listens to mouse over
message from Action components. At one point it was listening to data
loading but it seemed to have broken.

Some of the features of a good status bar component could be:

- insertion of custom components
- indeterminate progress bar
- indication of off/online for application.

--Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
For additional commands, e-mail: jdnc-help@jdnc.dev.java.net

rbair
Offline
Joined: 2003-07-08

Mark,

How does one go about adding comments to the issues being tracked? In the forums only?

Mark Davidson

Hi Richard,

On 09/01/2004 12:54 PM, jdnc-interest@javadesktop.org wrote:
>
> How does one go about adding comments to the issues being tracked? In
> the forums only?

I've just added the URL of this thread in the body of the bug report.
All discussion about JXStatusBar requirements and design should be done
in this thread.

I don't know who started it but adding forum thread URLs to bug reports
is a great way of capturing a discussion.

--Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
For additional commands, e-mail: jdnc-help@jdnc.dev.java.net

Anonymous

[Here is a posting I made about a month ago which I
thought went to the forum, but which turned out was only
directed at a sun-internal alias; it captures some
random thoughts on what I'd like to see in JXStatusBar..]

I was just thinking about the statusbar today, so I'll take this
opportunity to throw out some thoughts on how we could support easy
but rich statusbar configuration.

Currently, JStatusBar (soon to be JXStatusBar) supports a simple
API for displaying leading and trailing messages:

setLeadingMessage(String msg)
setTrailingMessage(String msg)

and since it's a ProgressListener, it can also easily display a
progress indicator for a longwinded operation by registering it
as a listener on a source or progress events (such as a DataLoader).

But what I'd like to see us move to in the base JXStatusBar is an
API which supports more flexibility in the types of messages/indicators
displayed. To do this, JStatusBar would be treated more as a container
for which one can easily place status 'beans', which are little
visual components that perform common status-indicating operations,
such as message-event display, progress indicators, online/offline
status, etc. It would be fun to create a library of these little
status beans!

Now some status beans would be tied directly to a component
(e.g. current rows/column count in a table), so it would be nice if the
statusbar could manage the visibility of such status beans by
watching for visibility event changes on that component. e.g. if
a tabbedpane contains a set of tables, as each table's visibility
changes as the user selects different tabs, the statusbar can
hide/show the appropriate table status bean.

And other status beans would not be tied to a specific component,
but could likely be smart enough to manage their own lifecycle
within the statusbar (e.g. once a longwinded progress operation
completes, the progress status bean would remove itself from the
statusbar).

Now certainly we could create a JNStatusBar which wraps JXStatusBar to
provide the simple view on status that the current JStatusBar provides,
but I believe that the underlying JX version needs to be more flexible
than it is today.

All still needs to be proven with a prototype, but I wanted to
stimulate discussion on what statusbar functionality you'd all like to
see.

Aim

Patrick Wright

Aim

These are interesting ideas you bring up.

One thing the Firefox browser has is status at several different levels:
status bar (text)
loading icon (top right)
tab loading icon

These are pretty nice variations. The status bar and main loading icon
apply to the current page, while the tab loading icon applies to the tab
in question (so you can see if another tab has finished loading).
Something like this would be nice to have. Would then be nice to attach
them anywhere an icon can go--menu item, label, toolbar, etc.

Also, JEdit has a multi-bar progress monitor. That is, the progress dialog
you can bring up shows one progress bar for each IO operation in progress.
JEdit is released under the GPL if someone wants to browse the code for
ideas on how it's designed.

There might be standard ones apart from progress bar--like a gradually
filling circle, a darkening or lightening circle--or people could use
animated gifs (for unknown progress).

Patrick

> [Here is a posting I made about a month ago which I
> thought went to the forum, but which turned out was only
> directed at a sun-internal alias; it captures some
> random thoughts on what I'd like to see in JXStatusBar..]
>
> I was just thinking about the statusbar today, so I'll take this
> opportunity to throw out some thoughts on how we could support easy
> but rich statusbar configuration.
>
> Currently, JStatusBar (soon to be JXStatusBar) supports a simple
> API for displaying leading and trailing messages:
>
> setLeadingMessage(String msg)
> setTrailingMessage(String msg)
>
> and since it's a ProgressListener, it can also easily display a
> progress indicator for a longwinded operation by registering it
> as a listener on a source or progress events (such as a DataLoader).
>
> But what I'd like to see us move to in the base JXStatusBar is an
> API which supports more flexibility in the types of messages/indicators
> displayed. To do this, JStatusBar would be treated more as a container
> for which one can easily place status 'beans', which are little
> visual components that perform common status-indicating operations,
> such as message-event display, progress indicators, online/offline
> status, etc. It would be fun to create a library of these little
> status beans!
>
> Now some status beans would be tied directly to a component
> (e.g. current rows/column count in a table), so it would be nice if the
> statusbar could manage the visibility of such status beans by
> watching for visibility event changes on that component. e.g. if
> a tabbedpane contains a set of tables, as each table's visibility
> changes as the user selects different tabs, the statusbar can
> hide/show the appropriate table status bean.
>
> And other status beans would not be tied to a specific component,
> but could likely be smart enough to manage their own lifecycle
> within the statusbar (e.g. once a longwinded progress operation
> completes, the progress status bean would remove itself from the
> statusbar).
>
> Now certainly we could create a JNStatusBar which wraps JXStatusBar to
> provide the simple view on status that the current JStatusBar provides,
> but I believe that the underlying JX version needs to be more flexible
> than it is today.
>
> All still needs to be proven with a prototype, but I wanted to
> stimulate discussion on what statusbar functionality you'd all like to
> see.
>
> Aim
> ---
> [Message sent by forum member 'Aim' (Amy Fowler)]
>
> http://www.javadesktop.org/forums/thread.jspa?messageID=26014斞
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
> For additional commands, e-mail: jdnc-help@jdnc.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
For additional commands, e-mail: jdnc-help@jdnc.dev.java.net

rbair
Offline
Joined: 2003-07-08

> Something like this would be nice to have. Would then be nice to attach them anywhere an icon can go--menu item, label, toolbar, etc.

Whoa, now that is a really COOL idea! I see two things here. First, animated gifs (or some other such thing) could be used for indeterminate progress indicators.

Second, couldn't an Icon be backed by a JProgressBar to have an Icon that is a determinate progress monitor? When the Icon is asked to paint itself it defers the painting to the JProgressBar. Getting it to paint it more than once would be the trick... I guess the progress bar could fire repaint events for the icon? Oh well, just a thought (really sounds like a hack, doesn't it?).

> Also, JEdit has a multi-bar progress monitor. That is, the progress dialog you can bring up shows one progress bar for each IO operation in progress. JEdit is released under the GPL if someone wants to browse the code for ideas on how it's designed.

I don't use JEdit much, is there any way to get a screenshot posted someplace we can look at? I tried to do something in JEdit that would take awhile, but its just too dang fast :). Likewise, I'll try to get a screenshot of the eclipse progress dialog posted (it really does look nice).

Rich

PS> Check out www.jgui.com. On the front page I have two screenshots from eclipse. One is for the progress dialog, and the other for a cheat-sheet widget (way, way, cool).

Message was edited by: rbair

rbair
Offline
Joined: 2003-07-08

There is a JStatusBar in org.jdesktop.swing (in the old project heiarchy, I don't know where it'd be now). It can be added to a form and shows messages from DataLoaders and such.

Richard

rbair
Offline
Joined: 2003-07-08

As an added note on this subject, the JStatusBar is still pretty rough. A really cool widget that JStatusBar could be inspired from is the progress bar widget in eclipse. When performing background tasks there is a little (and I do mean little) widget in the bottom right corner of the statusbar tracking the progress of possibly multiple items. Since the JStatusBar will also be tracking possibly multiple loaders/progress events it might do well to behave similarily (including the really good looking status dialog showing multiple progress bars...).

Richard