I have a JLabel (actually, it is a JXLabel).
I have put an icon and text on it.
Now I wand to add some spacing on the left side of the component, like this:
I DON'T accept suggestion to move the JLabel or add spacing by modifying the image.
I just want to know how to do it with plain java code.
...
Info - for better formatting, I used code-formatting throughout the whole posting.
Hi,
I have a highlighted JXTable. Rows are highlighted, depending on the value
of a specific column (c2). Everytime the value of column c2 changes, the color
is switched from white to grey or from grey to white.
Example
c0 c1 c2 c3
1...
I need to transfer focus onto another element when user press Enter key, so I succeded to register KeyStroke on most elements this way:
this.getInputMap( ).put( KeyStroke.getKeyStroke( '\n' ), "transferFokus" );
this.getActionMap( ).put( "transferFokus", transferFokusa );
everything works fine except for my class which extends JX...
hi
i want to write an applet that must render my map images with zoom/pan tools,
i find out JXMapViewer can help me,
how i can use it?
where i can find related docs which help me to write an applet that request on my image server to provide tiles to render?
what about image server and .... !!!!???
help me on : image server structure, ti...
package gui;
public class Solver {
void solveIt(){
CubeGui.moveThat();
}
}
I am trying to access method moveThat from this class, but it keeps telling me cant access non static method moveThat from a static reference. I don't see how this is a static reference?
...
I've seen "swingx" mentioned and referred to here.
However, every time I try to visit the site:
http://swinglabs.org/
It's down! Is this still an active, viable project? Or is it outdated and abandoned?
...
Has anyone successfully installed SwingX to NetBeans' Palette? I'm following the instructions in SwingX Wiki, but with some glitches:
The components appear in the Palette, but their icons won't show up correctly. If I add the componets shown by "Show All JavaBeans" (instead of "Show Marked JavaBeans") in the Palette manager, then I get ...
i would like to know how to use the library in https://swingx-ws.dev.java.net/ to scrape a web page and submit a form.
the simple code writen below is simply not working and i don't know why. could someone help me?
thanks in advance.
public static void main(String[] args) {
try {
Session s = new Session();
Resp...
Hi,
I need to popup JXDatePicker on a mouse click on the editor (got via getEditor() method).
I would code the logic in a MouseAdapter which will add to the JXDatePicker's editor.
...
I'm currently working on making my Swing application look better. I want to achieve something along these lines:
The idea is for each box to have a pretty header with a background similar to the above image. The closest I can get to anything like this using basic Swing components is adding a TitledBorder but this is nothing close to w...
I try to make the entire row in a JXTreeTable to become bold.
final TableCellRenderer doubleOldTableCellRenderer = this.buyTreeTable.getDefaultRenderer(Double.class);
final TableCellRenderer integerOldTableCellRenderer = this.buyTreeTable.getDefaultRenderer(Integer.class);
final TableCellRenderer treeTableModelOldTableCellRe...
I am trying to use JXMapViewer (from swingx-ws) with Open Street Maps. I was wondering if it would be possible to display the map tiles in the JXMapViewer based on heading up, rather than on North up. For example, the normal car GPS navigation systems let you do that.
I've looked through the documentation and there doesn't seem to be a ...
I have a class that contains a JButton. This can't be changed.
The problem is this: The actionListener calls getSource() and gets the JButton, not the container class.
Can I change what getSource retrieves, before the actionListener is added?
OR can JButtons have a variable reference to its container?
I can't make a class extend a JBu...
I guess I would have to use a Highlighter, but I cannot figure it out.
...
I need to have localized buttons in SwingX's JXLoginDialog and JXErrorPane. How to make it?
...
what kind of logging frame work or API to use for swing applications which is used by multiple users in Unix.
Is it possible to log all verbose/exception in one file per day or event one user one file per day? Since the user can open the same application with multiple instance.
I also have another solution is to save the exceptions into...
I need to display a document, which is in Cp037 character Encoding, in JTextArea? I think JTextArea by default supports UNICODE character encoding. How to add Cp037 charater set support to JTextArea?
...
I want to change defaultCellEditor to JComboBox only when a specific cell in a table is selected.
...
Requirement:
I have a list of strings displayed in the ComboBox. Each of these Strings can have some properties. These properties are displayed in PropertyTable. ComboBox's selected Item's properties are displayed in the table. In addition, we use PropertyTable for editing or setting property values to the selected item in the comboBox. ...
Hello,
I would like to have some exemple of implementation of jXSearchPanel with jTable. I didn't find something on the web.
Thank you in advance,
Best Regards,
Florent
...