首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >iceWm windows管理器窗口问题

iceWm windows管理器窗口问题
EN

Stack Overflow用户
提问于 2017-09-14 14:55:37
回答 1查看 60关注 0票数 1

我正在Debian 9上运行java应用程序,Debian 9安装了iceWm窗口管理器。

java应用程序有一个主框架,主框架上只有一个按钮,当单击该按钮时,将绘制一个新的Jframe。

再次按下按钮将触发java函数 the前台toback

当我第一次启动我的应用程序时,我按下按钮,第二个框架就会出现,然后按下它会像预期的那样再次隐藏,但是在那之后,如果我再次按下,我会看到框架选项卡正在闪烁,但没有显示在窗口管理器任务栏中!

我试图更改IceWm窗口管理器的首选项,但没有帮助。

如何确保每次按下按钮并调用to面 java函数时,新框架将显示在主框架的顶部?

谢谢你的帮助。

EN

回答 1

Stack Overflow用户

发布于 2017-09-14 16:13:21

我更喜欢使用twm --移除标题边框很容易,您可以在java端控制所有内容。它更适合嵌入式应用。

遵循我的system.twmrc,将它保存在/etc/X11上

代码语言:javascript
复制
#
NoGrabServer
NoTitle
RandomPlacement
RestartPreviousState
DecorateTransients
#IconifyByUnmapping
#TitleFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
#ResizeFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
#MenuFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
#IconFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*"
#IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*"
ClientBorderWidth 2
BorderWidth 2
ButtonIndent 3
NoHighlight

# This is for hiding the ugly menubar in windows who dont need em.
NoTitle
{
 #   "x11amp"         # x11amp, the winamp lookalike, http://x11amp.ml.org.
 #   "xlogo"          # a must have :)
     "xosview"
}

Color
{
    BorderColor "gray85"
    DefaultBackground "black"
    DefaultForeground "gray85"
    TitleBackground "black"
    TitleForeground "gray85"
    MenuBackground "black"
    MenuForeground "gray85"
    MenuTitleBackground "gray65"
    MenuTitleForeground "black"
    IconBackground "black"
    IconForeground "white"
    IconBorderColor "black"
    IconManagerBackground "black"
    IconManagerForeground "gray85"
    PointerForeground "black"
    PointerBackground "white"

}

Cursors
{
                         Frame     "left_ptr"
                         Title     "left_ptr"
                         Icon      "left_ptr"
                         IconMgr   "left_ptr"
                         Move      "fleur"
                         Resize    "fleur"
                         Menu      "hand1"
                         Button    "hand2"
                         Wait      "clock"
                         Select    "dot"
                         Destroy   "pirate"
}
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46222326

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档