JColorChooser [英] JColorChooser

查看:54
本文介绍了JColorChooser的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

1)如何在屏幕上从诸如JColorChooser之类的控件中找到对话框?
2)默认为屏幕中间.我想更改默认值.
3)在JcolorChooser组件上将使用什么侦听器来检测瞬间的闭合和断开(changeState由于某些原因而无法工作)

1) How can i locate a dialog from a control such as JColorChooser on the screen ?
2) The default is middle of the screen. I want to change the default.
3) What listener would be used on a JcolorChooser component to detect moment closing and opening (changeState didn''t work for some reason )

推荐答案

您可以放置​​对话框创建之后,但显示之前.查看setLocation(point)方法.
You can position the dialog AFTER you have created it but BEFORE it is shown. Look at the setLocation(point) method.


这篇关于JColorChooser的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆