jgoodies

Essential Swing libraries? JGoodies, JFreeChart [closed]

▼魔方 西西 提交于 2019-12-03 03:16:24
The wheel is invented over and over again - at least it seems so when looking at any average Swing GUI project. In many areas there are one or two very well known libraries for things not directly addressed by the standard class library, e.g. hibernate for persistence. But things seem a little less clear for GUI applications - what are the libraries you see as essential for almost any new GUI project? I'd propose JGoodies as a start. And for anything involving displaying data graphically maybe JFreeChart. For more sophisticated components SwingX - I have never used it but I hear it often

Align Swing Components across Panels

你说的曾经没有我的故事 提交于 2019-12-01 04:31:50
We have a JPanel wich contains multiple JPanels wich contain JComponents (let's say JLabels and JTextboxes) Inside each of the internal JPanels we use JGoodies Layout in order to ensure proper alignement of all Labels. But of course we would like to have all the Labels aligned independently on which subpanel they are. How could we do that, without fixing the width of the column which contains the JLabels? We can't loose the JPanels since we have to have Borders around groups of Components Just because the JPanel s have borders, doesn't mean that they actually need to contain their apparent

How to adjust JTable columns to fit the longest content in column cells

牧云@^-^@ 提交于 2019-11-27 07:54:21
I'm using answer https://stackoverflow.com/a/5820366 and http://tips4java.wordpress.com/2008/11/10/table-column-adjuster/ and it works, but frequently columns' sizes are too wide or too narrow. No matter filling my table with HTML or text. Using standard TableModel from oracle documentation. Resize mode = JTable.AUTO_RESIZE_OFF Container of my tabel is jGoodies: FormLayout currentEventLayout = new FormLayout( "fill:p", "pref, pref"); PanelBuilder currentEventBuilder = new PanelBuilder(currentEventLayout); currentEventBuilder.add(mainQuotesTable.getTableHeader(), constraints.xy(1, 1));

How to adjust JTable columns to fit the longest content in column cells

心不动则不痛 提交于 2019-11-26 13:54:33
问题 I'm using answer https://stackoverflow.com/a/5820366 and http://tips4java.wordpress.com/2008/11/10/table-column-adjuster/ and it works, but frequently columns' sizes are too wide or too narrow. No matter filling my table with HTML or text. Using standard TableModel from oracle documentation. Resize mode = JTable.AUTO_RESIZE_OFF Container of my tabel is jGoodies: FormLayout currentEventLayout = new FormLayout( "fill:p", "pref, pref"); PanelBuilder currentEventBuilder = new PanelBuilder