Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果 JTable 的单元格有关联的渲染器,我可以得到插图。
: int x = ((JComponent)myRenderer).getInsets().left) : : int x = ((JComponent)myRenderer).getInsets().right) :
我有特定的代码来验证来自的调用是否getCellRenderer()返回 null 并且确实如此。发生这种情况时,我不确定如何检索插图?
getCellRenderer()