通过拖动来调整JScrollPane中JTable的大小 [英] Resize JTable in JScrollPane by dragging

查看:110
本文介绍了通过拖动来调整JScrollPane中JTable的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何实现能够通过嵌入JScrollPane的鼠标拖动角(在单个视图中查看更多行)来调整JTable大小的功能?他们还有其他简便的替代方法吗?非常感谢.

How can I implement the functionality of being able to resize a JTable by dragging a corner by mouse (to see more rows during a single view) which is embedded in a JScrollPane? Is their any other easy alternative way? Thanks a lot.

推荐答案

将JScrollPane添加到 ComponentResizer 类.

Add the JScrollPane to the ComponentResizer class.

这篇关于通过拖动来调整JScrollPane中JTable的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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