Seems like a status bar is a pretty common component of a swing GUI so hopefully the community has some advice.
I am wondering what the best way is to design a standard status bar in a swing gui. I am looking at two options
1. Provide a static interface to a swing component to add text to it. The con with this is that every component that wants to send a status message has to send the message to the status pane directly.
2. Use some sort of event/listener design. I.E. swing component just listens for an event (I have no idea what type of event). When it receives that event it posts the status message contained within that event. All other components just fire off these events every time they want to send a status message.
#2 seems like the best answer to me but I am having trouble wrapping my head around it. I.E. what messages do I send/listen to. Is there already messages in the
Java API that will work with this design. Seems like this has been done a thousand times before so hopefully someone can shed some light on this design for me.
Thanks in advance,
Billy