1. JPanel grid issue stackoverflow.comOk, I am implementing a flowchart editor in Java. My goal is to provide a possibility to display grid lines on a drawing surface. I partially made it to work:
|
2. problem getting the grid right and no background Color stackoverflow.comThis is my code that attempts to make 400 x 400 grid but outputs the following: No doubt this not a 400 x 400 grid. I am unable ... |
3. JScrollPane shows graphics glitches on row header. How to avoid this? stackoverflow.comI'm trying to use a JscrollPane with columnheader and rowheader. On the rowheader, there is some text. When I scroll down the pane, some graphics artifacts appear on the rowheader. It's like ... |
4. Why do I get a NullPointerException when trying to draw graphics on a table? stackoverflow.comI keep getting a NullPointerException when I call the method I created, draw(), in the constructor. It's especially frustrating because I found a way around it but it's not what ... |
5. Graphics on JTable coderanch.com |
6. Graphics in jtable cell coderanch.comOriginally posted by Zach Donovan: how do i actually position the image in the center of a cell? The default cell render should be centring your icons. Demo: import java.awt.*; import java.net.*; import javax.swing.*; import javax.swing.table.*; public class Test { public static void main(String[] args) { EventQueue.invokeLater(new Runnable(){ public void run() { gui(); } }); } static void gui() { String[] ... |
7. JTable inside a Graphics Rectangle coderanch.comA components paint method will draw over the component. Here's a couple of variations of the idea. import java.awt.*; import java.awt.geom.*; import javax.swing.*; import javax.swing.table.AbstractTableModel; public class TableDrawing { Dimension d = new Dimension(250,200); private JPanel getContent() { JTable table = new JTable(getModel()); table.setRowHeight(getFitHeight(table)); table.setPreferredSize(d); TablePanel tablePanel = new TablePanel(table); JPanel panel = new JPanel(new GridLayout(0,2,10,0)); panel.add(table1); panel.add(tablePanel); return panel; } ... |
8. Graphics table pressure sensitivity java-forums.orgHi guys, I've done a search on this here, and it's come up blank. The internet doesn't seem to bu me much either! Is there a way to "monitor" the amount of pressure a graphics tablet pen is applying? Seems straightforward enough to me, but there's nothing I can spot in the API that suggests I can do this. I've had ... |