Re: problem with JTabbedPane and stateChangeEvent and set busy cursor
- From: usenet@xxxxxxx (Christian Kaufhold)
- Date: Fri, 28 Oct 2005 15:35:57 +0000 (UTC)
gbgkille69@xxxxxxxx wrote:
> Hi,
> I have written an application that consists of several JTabbedPanes
> (the number depends on the users action) and each Pane will contain a
> number of JInternalFrames showing some graphs. The Graphs are drawn
> with help of the paintComponent(Graphics g) function and are for the
> first time rather time consuming so I'd like to implement a set busy
> cursor function which is aactivated as soon as a user presses a tab and
> which is deactivated as soon as the drawing is done and the selected
> tabbedpane is fully visible.
> I can now see that the program issues several stateChanged events once
> the user clicks on a tab. It looks like that as many events are issued
> as there are tabs. E.g. if I have 4 tabs I will get the following
> output:
And you are sure that this is not because you happen to add one listener
for each tab?
> Is there another possibility that I could use?
ComponentListener
Christian
.
- References:
- problem with JTabbedPane and stateChangeEvent and set busy cursor
- From: gbgkille69
- problem with JTabbedPane and stateChangeEvent and set busy cursor
- Prev by Date: How to size a JTextField according to a fixed string length?
- Next by Date: Re: How to size a JTextField according to a fixed string length?
- Previous by thread: problem with JTabbedPane and stateChangeEvent and set busy cursor
- Next by thread: Hi, I need your help! Jtree - JTextArea
- Index(es):
Relevant Pages
|