Re: SteppedComboBox problem



On Sat, 29 Oct 2005 01:09:50 -0400, hilz <now@xxxxx> wrote, quoted or
indirectly quoted someone who said :

>If i change this method
>
> public void show() {
> ....
>
>to
>
> public void setVisible(boolean isVisible){
> if(!false==isVisible){
> super.hide();
> return;
> }
> ....
Why would you override setVisible? Leave it alone!

if (!false == isVisible) is one heck of a roundabout way of saying

if ( isVisible )

The return is not likely needed.

--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.



Relevant Pages

  • Re: Boxing & UnBoxing access question
    ... public void UpdatePoint ... copied onto the stack in any event as a return value. ... In the end, I suppose that it doesn't matter, except that saying ... I just helps me keep things straight in my head. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: A simple question for Abstract Class
    ... public void method_1{ ... If you implement all the abstract methods of the base class, ... Canadian Mind Products, Roedy Green. ... http://mindprod.com Java custom programming, consulting and coaching. ...
    (comp.lang.java.programmer)
  • Re: Unable to paint (using paint() in JPanel) inside mouse listeners
    ... Saying "paint" was accidential.. ... The JPanel has PUBLIC VOID PAINT, so to call that again I'm ... Prev by Date: ...
    (comp.lang.java.programmer)
  • Re: about static variable
    ... >i.e static variable will be common for all objects. ... There is a point is saying it. ... Canadian Mind Products, Roedy Green. ... http://mindprod.com Java custom programming, consulting and coaching. ...
    (comp.lang.java.help)
  • Re: Passing arguments in Main - not simple
    ... public void run{ ... http://mindprod.com Java custom programming, consulting and coaching. ...
    (comp.lang.java.programmer)