Cell Space « JTable « Java Swing Q&A





1. Intercell spacing in cell in tree    coderanch.com

How are you adding the border? I've run the code below through a profiler, and adding an empty border actually made the memory footprint go *down* due to less cells being able to be displayed on the screen... import java.awt.BorderLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.StringTokenizer; import javax.swing.BorderFactory; import javax.swing.JButton; import javax.swing.JComboBox; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTextField; import ...