Description:
GUI toolkits and windowing: AWT, IFC etc.
|
|
|
JTable in JTable
|
| |
I am trying to set a JTable of 3 colums with some JTables in columns 1 and 2. I have gone quite far but I am now facing a bug when adding a line with a selection active in the the column where I have JTables embedded.
The structure of my JTable :
- Column 0 is standard, with Strings.
- Columns 1 and 2 contain JTables.... more »
|
|
TransferHandler exportAsDone called before exportAsDrag returns
|
| |
I have a subclass of JPanel for which I am trying to implement
drag-and-drop. I add a mouse listener to the component, and in its mousePressed() method I call
JComponent c = (JComponent)event.getSource();
TransferHandler th = c.getTransferHandler();
th.exportAsDrag( comp, event, TransferHandler.COPY );... more »
|
|
Finding the windows taskbar
|
| |
I want to find the bounds of the taskbar (on Windows) so that I can constrain the position and size of a dialog such that it does not overlap the taskbar.
For a single screen, I can use Toolkit.getDefaultToolkit().ge tScreenSize()
and toolkit.getScreenInsets().
But I have multiple screens, with the taskbar only on one of them.... more »
|
|
Horizontal columns in a JTable?
|
| |
In article <JTable-20130529152...@ram.dia lup.fu-berlin.de>,
...
...
JTable displays what the TableModel returns for getValueAt();
you will have to transpose the model.
...
You can recycle the default cell renderer(s), as shown here:
<[link]>
...
You can recycle the default header renderer, as shown here:... more »
|
|
JTable CellRendererPane placement
|
| |
I have a JTable with two columns and a JTableHeader.
The left column contains strings, and the right column contains JTextFields.
Clicking on a header sorts the rows.
If I click in one of the text fields to begin editing it ( say, for
instance, in row 7), and then click in the header to sort the table,... more »
|
|
two labels in sequence, how hard can it be?
|
| |
...
Never liked Box'es much...
- GridBagLayout
- weightx = 1; weighty = 0; anchor = EAST; gridx = 0; gridy = 0;
- add first label;
- ++gridy;
- add second label;
If the Panel is bigger than those two labels and you want them pushed to
the top:
- ++gridy; weighty = 1
- add Box.createGlue();... more »
|
|
app framework and arch for new Swing GUI?
|
| |
Hello,
I will be starting a new Swing-based GUI and have been looking at some existing frameworks to leverage on the UI side not only regarding the Widgets but also architecture-wise. I'm sure I need JIDE Grids (and other UI components) but I'm unsure what path to take architecture-wise without... more »
|
|
|