iceWm窗口管理器窗口问题
问题描述:
我在Debian 9上运行java应用程序,它已经安装了iceWm窗口管理器。iceWm窗口管理器窗口问题
java应用程序有一个主框架上有一个单一的按钮,当点击按钮时绘制一个新的Jframe。
按下按钮将再次触发Java函数tofront和toBack后
我第一次开始我的应用程序,我压在第二帧出现,再次按下它隐藏预期的按钮,但之后,如果我再次按下 我会看到框架选项卡闪烁但未显示在窗口管理器任务栏中!
我试图改变IceWm窗口管理器的首选项,但它没有帮助。
我该如何确保每次按下按钮时都会调用java函数调用java函数,并将新框架显示在主框架的顶部?
感谢您的任何帮助。
答
我更喜欢使用twm,很容易删除标题边框,并且您可以在java端控制所有标题边框。这对嵌入式应用程序更好。
按照我的system.twmrc,保存它的/ etc/X11
#
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"
}
感谢您的回复,但是当我安装了TWM,sikuli根本不运行!此外,我正在寻找一种解决方案,我不会更改窗口管理器。 – flashDisk