Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Using setEnabled on GUI components inside a JTabbedPane

Posted on 2009-04-06
3
Medium Priority
?
461 Views
Last Modified: 2013-12-14
I am using setEnabled(false) on the tabbed pane. When a certain condition is met, the setEnabled becomes true. I have panels inside the tabbed pane which I would like to disable until a condition is met. I have tried setEnabled(false) on them from various places and the constructor itself however no success.
0
Comment
Question by:namsu55
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 24

Expert Comment

by:sciuriware
ID: 24083998
Try .setVisible(false);

;JOOP!
0
 

Author Comment

by:namsu55
ID: 24084114
That removes the whole panel from the GUI, I want is visible but disabled for use (Greyed).
0
 
LVL 24

Accepted Solution

by:
sciuriware earned 1500 total points
ID: 24084922
I think that is not possible with this kind of components.
What you can do is swap the component with a label or such with the same size
and a grey background.
This swapping can be done by setting one visible and the other one to invisible.

;JOOP!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question