如何在Java应用程序中创建选项卡控件 [英] how creat a tab control in Java application
本文介绍了如何在Java应用程序中创建选项卡控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我是Java初学者.我正在使用Eclipse在Java应用程序中进行GUI编程.
我想在.NET上使用1个标签页控件.但我没有在Java中找到任何控件来执行此操作.
因此,如果您知道,请帮助我如何创建选项卡控件并为其处理事件.
Hi all,
I am java beginner. I am using Eclipse to GUI programing in java application.
I want to 1 tab control the same on .NET. but I didn''t find any control in java to do this.
So if you know, please help me how to create a tab control and handle event to them.
thank you very much!
推荐答案
您需要使用tabItem和tabFolder.
看这个例子:
http://docs.oracle.com/javase/tutorial/uiswing/components/tabbedpane.html [^ ]
或这个:
http://www.java2s.com/Code/Java/SWT-JFace-Eclipse/SWTTabControl.htm [ ^ ]
问候
Hi,
you need to use a tabItem and tabFolder.
Look at this example :
http://docs.oracle.com/javase/tutorial/uiswing/components/tabbedpane.html[^]
or this one :
http://www.java2s.com/Code/Java/SWT-JFace-Eclipse/SWTTabControl.htm[^]
regards
尝试 JTabbedPane [^ ].
这篇关于如何在Java应用程序中创建选项卡控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文