阅读背景:

如何用3个滑块和2个下拉列表创建JDialog?

来源:互联网 

I have an existing frame with 2 panels on it. When the user presses one of the JButtons found on the JPanel, I need to handle the event by opening a JDialog box that allows the user to set settings - settings that include 3 sliders and 2 drop lists, when the user saves the settings I need to pull them from this dialog and use them later. I'm new to GUI and for the past 2 and a half days I have searched for many ways to create this such of thing, and I have succeeded to make a slider and a drop list each one by its own, but I still haven't figured out how to handle an event while a frame is open, because from what I have seen I need a new JFrame, but what happens to the one alrady open? In addition, how can I make this dialog with these sliders and drop lists?I have an existing frame with 2 panels on it. W




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: