如何隐藏Jpanel? [英] How Do I Hide Jpanel?

查看:92
本文介绍了如何隐藏Jpanel?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里我开发了一个程序......

所以有一个登录部分。

实际上它是一个桌面应用程序..

当用户输入他们的用户名和密码时

如果正确它将能够访问其他标签。

否则不是。



有几个标签

tab1 - 登录

tab2 - 服务信息

tab3 - 客户信息



所以如果用户只输入正确的输入,则tab2和3可以访问。



基本上我有Jtabbedpane并且在顶部我有3个Jpanels



所以我想隐藏标签2和3.

如果tab1好按钮点击,条件将决定如果标签2和3可访问。



Here i have developed a program...
so there is a login part on it.
actually its a desktop application..
when user input their user name and password
if its correct it will give an ability to access other tabs.
otherwise its not.

there are few tabs
tab1 - login
tab2 - service info
tab3 - customer info

so tab2 and 3 can access if user put correct input only.

basically i have Jtabbedpane and on the top of it i have 3 Jpanels

so i want to hide tab 2 and 3.
if tab1 okay button click, condition will decide if tab 2 and 3 accessable.

public Visa_Request() {
        initComponents();
        visa_InfoPanel.setVisible(false);
        
        
    }





i只是想知道,这个程序是否正确?

因为我的申请不会给予隐藏能力。



请有人给我答复...



i just wanna know, is this procedure correct or not?
because my application won't give that hide ability.

please someone provide me an answer...

推荐答案

其实什么都不会发生?

每个人都能看到它?



请尽快给我答复尽可能....
Actually nothing gonna happen?
it will visible to everyone?

Please provide me an answer as soon as possible....


这篇关于如何隐藏Jpanel?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆