是否可以删除JInternalFrame中的小下拉箭头? [英] Is it possible to remove the little dropdown arrow in a JInternalFrame?

查看:102
本文介绍了是否可以删除JInternalFrame中的小下拉箭头?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 JInternalFrame ,我想删除框架左上角的下拉列表,因为它没有用处(我已禁用可调整大小,可关闭)等等。)

I'm using a JInternalFrame and I want to remove the dropdown in the upper left of the frame, as it serves no purpose (I've disabled resizeable, closable, etc.)

我没有看到这个属性,我不想删除整个标题栏,因为标题是必要的。我在网上看了一下,基本上空了。我希望这是一件很简单的事情,我只是忽略了,因为这是我第一次使用 JInternalFrame ,而我并不是一个开始时的GUI类型的人。

I don't see a property for this, and I don't want to remove the entire title bar, as the title is necessary. I've looked around online, and basically come up empty here. I'm hoping it's something simple that I've just overlooked, as this is my first time using JInternalFrame, and I'm not exactly a GUI kind of guy to begin with.

推荐答案

internalframe.setFrameIcon(null);

编辑:黑客删除Windows中的系统菜单:

hack to remove system menu in Windows:

BasicInternalFrameUI ui = (BasicInternalFrameUI)internalFrame.getUI();
Container north = (Container)ui.getNorthPane();
north.remove(0);
north.validate();
north.repaint();

这篇关于是否可以删除JInternalFrame中的小下拉箭头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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