• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can't disable the log panel.

 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I have passed in a elog pane reference to the button pane, when the operator selects black listing, the whole
panel, including the customer pane, the button pane and the log pane should be disabled,
But they aren't greyed out here. They aren't any exceptions thrown.
Any ideas why?
Thanks
Jack
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jacky Luk wrote:I have passed in a elog pane reference to the button pane, when the operator selects black listing, the whole
panel, including the customer pane, the button pane and the log pane should be disabled,

From the API docs for JComponent#setEnabled
Note: Disabling a component does not disable its children.
 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:
Jacky Luk wrote:I have passed in a elog pane reference to the button pane, when the operator selects black listing, the whole
panel, including the customer pane, the button pane and the log pane should be disabled,

From the API docs for JComponent#setEnabled
Note: Disabling a component does not disable its children.


Hi, I sort of made a hack to it, but it didn't grey out nor disable
Any enhancement be made to this?
Thanks
Jack






 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry. You have been told before to post SSCCE. Since you cannot be bothered to do so, I do not think I wish to invest my time in trying to make sense of your code which I cannot run on my system
 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have to say sorry.
Just make it simple.
Just wondering how to disable or gray out a JTable.
I just need to know that, actually.
Sorry for being misleading.
Thanks
Jack
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!