秋千-下拉面板 [英] Swing - Drop down Panel
问题描述
我正在使用Java Swing制作UI.我有一个带有信息的面板(面板1),我想创建一个下拉菜单,但不喜欢de comboBox.很难解释.
I am working on Java Swing, making an UI. I have a Panel (Panel 1) with information, and I want to create a dropdown menu, but not like de comboBox. Is hard to explain.
我看到面板,在底部,我有一个按钮.当我按下此按钮时,我要在面板1上显示另一个面板(透明).
I see the panel, and in the bottom, I have a button. When I press this button, I want to make appear another panel (transparent) on Panel 1.
我不知道该怎么办.如果我讲得很好,我会等你的帮助.
I dont know how can I do that.I wait for yoir help, if I have explained it well.
我不想要典型的下拉列表,就像一个下拉面板.
I dont want the typical dropdown list, is like a dropdown panel.
例如,在google主页上,当您单击上方的按钮时,将显示一个新菜单,但没有列表.我看到这不是一个好例子,我正在为此寻找另一个更好的例子.
for example, in the main page of google, when you hit a button above, appears a new menu, but not a list. I see that is not a good example, i am searching another better example for it.
我需要按下按钮时出现的东西是面板,因为我需要在上面添加一些JOGL.
EDIT 2: I need that the thing that appear when I press the button will be a Panel, because I need to add some JOGL on it.
推荐答案
您可以使用 x和y是屏幕坐标.
这篇关于秋千-下拉面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!