如何在Java中创建标题栏菜单 [英] How can I create title bar menu in Java

查看:136
本文介绍了如何在Java中创建标题栏菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用Java创建一个简单的应用程序.我设计了主模板,但是遇到了设计问题.

I wanna create a simple application with Java. I designed the main template in my head but I have a kind of design problem.

我正在使用JMenuBar和JMenu.它工作正常,但位置不完全是我想要的.

I am using JMenuBar and JMenu. It works fine but it's location is not exactly what I want.

在ubuntu中,我使用Eclipse,并且它在标题栏中具有菜单:

In ubuntu, I use Eclipse and it has menu in titlebar:

如您所见,菜单位于顶部.(文件,编辑,源等).

As you can see , menus are at top.(File,Edit,Source,etc..)

但是,我的应用程序不一样.

However, My application is not the same.

这是我的申请.

JMenu运行正常,但标题栏中没有菜单.

JMenu is working fine but in title bar there is no menu.

我该怎么做才能创建此菜单?

What can I do to create this menus ?

有什么用吗?

谢谢. 最好的祝福. 厄玛.

Thank you. Best Regards. Ömer.

推荐答案

您可能会对 查看全文

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