English 中文(简体)
净户Hide jButton
原标题:Hide jButton in Netbeans

是否有办法隐藏在Netbeans的jButton? (与纽特州相似;可视性=在VS中的虚假)

最佳回答

您正在研究button.setVisible(false);

问题回答

我的布特顿.setVisible(false);





相关问题
从0到99的上升按钮

我需要我的按钮从左下角的0开始,并一直到右上角的99。你能帮我纠正代码吗?每次更改都会影响所有按钮...

can I rotate the button or label into vertically in java?

I want button in vertically, for that i can extend the height and shrink the width of that button. But the text of the lable of buttons are in the form of horizontal only. For that can i rotate the ...

how to reposition JButton on resizing the window

I have kept a JButton in the bottom middle part of my JFrame. Now whenever I resize the window the JButton should be repositioned (in the new centre) depending on new resized window. Can anyone tell ...

Sharing state between JButtons

I want to create two or more JButtons that share state, i.e. when the mouse button is pressed over either JButton, both are rendered as depressed (aka "armed"), or if they are checkboxes, both are ...

Can I make Swing JButtons have smaller margins?

I prefer buttons with minimal margins, about as wide as their text caption. Is there a way to achieve that in a JButton in Swing? What I am seeing in practice now is that even if I try to use ...

Java Swing JButton

I want to create button with custom look and feel. I have got different images to be set as background of button for normal, mouse over, mouse click, button disabled etc. I have created my own class, ...

reseting a flow layout with a button

What I am trying to do here is set the layout scheme once I press a button to align all the buttons to the left of the contentPane I have three buttons this is the code i have for that particular ...

Howto make JButton with simple flat style?

whats the most simple way to make a JButton only show the background color? I don t need any other effects like borders, 3D-look or hover-highlighting. Thanks in advance.

热门标签