我正在Debian 9上运行java应用程序,Debian 9安装了iceWm窗口管理器。
java应用程序有一个主框架,主框架上只有一个按钮,当单击该按钮时,将绘制一个新的Jframe。
再次按下按钮将触发java函数 the前台和toback。
当我第一次启动我的应用程序时,我按下按钮,第二个框架就会出现,然后按下它会像预期的那样再次隐藏,但是在那之后,如果我再次按下,我会看到框架选项卡正在闪烁,但没有显示在窗口管理器任务栏中!
我试图更改IceWm窗口管理器的首选项,但没有帮助。
如何确保每次按下按钮并调用to面 java函数时,新框架将显示在主框架的顶部?
谢谢你的帮助。
发布于 2017-09-14 16:13:21
我更喜欢使用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"
}https://stackoverflow.com/questions/46222326
复制相似问题