Re: problem with JTabbedPane and stateChangeEvent and set busy cursor



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
.



Relevant Pages

  • Re: IIF Statements
    ... the switch. ... with my Form and subforms and the tab key. ... If it goes correctly the first time, what could cause it to not the second ... Filling out the date field "Date Written Report ...
    (microsoft.public.access.formscoding)
  • Re: TAB properties in a UserForm - Requesting Help from Excel VBA Guru
    ... > VBA, I've created a UserForm. ... > Me.TextBox1.Value = Empty ... > after it has been cleared from the first entry), I can no longer tab from ... > first time the UserForm is opened it works fine. ...
    (microsoft.public.excel.programming)
  • Re: Why I Never Learned to Sight Read - A Sad Story
    ... a huge motivation for the inevitable practice needed to get it right first time through. ... In my case, and I'm self taught btw, it's an even split between showband/big band gigs, both of which, obviously, I wouldn't have unless I could read. ... Don't expect to see much standard notation coming your way, but don't be surprised at how many times you hear the word "tab" bandied about. ...
    (alt.guitar.bass)
  • Re: Why I Never Learned to Sight Read - A Sad Story
    ... is a huge motivation for the inevitable practice needed to get it right first time through. ... Don't expect to see much standard notation coming your way, but don't be surprised at how many times you hear the word "tab" bandied about. ... I've played rock covers for a living, ... Guys my age and older learned pretty much by ear. ...
    (alt.guitar.bass)
  • Re: CPropertySheet/Page
    ... The OnInitDialog is called when your app starts and creates the prop pages ... the first time. ... Whenever the user selects a tab, ...
    (microsoft.public.vc.mfc)