![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java Swing
ccren
这个作者很懒,什么都没留下…
展开
-
Swing添加鼠标右键菜单单击选择监听,并显示右键菜单
public static final void initMouseInputListener(final JComponent component, final JPopupMenu popupMenu, boolean enableRightKey) { final MouseInputListener mouseInputListener原创 2014-08-12 14:29:07 · 4246 阅读 · 0 评论 -
基于Document机制的Swing IP地址控件
import java.awt.Dimension;import java.awt.Rectangle;import java.awt.Toolkit;import java.awt.datatransfer.Clipboard;import java.awt.datatransfer.DataFlavor;import java.awt.datatransfer.String原创 2014-08-12 14:33:26 · 774 阅读 · 0 评论 -
可模糊匹配下拉框
public class FilterableComboBox extends JComboBox{ private interface Filter { public boolean accept(Object obj); }//去掉:表格中显示问题// public void setItem(final Object item)原创 2014-08-12 14:43:39 · 1143 阅读 · 0 评论 -
表格单元格内嵌IP地址输入选择控件
public class TestZuhe{ private final JButton addBtn = new JButton("增加(A)"); private final JButton deleteBtn = new JButton("删除(D)"); private static Color selectForeground; p原创 2014-08-16 00:10:59 · 941 阅读 · 0 评论