Hi. I am new here. I am developing free POS...
Is it possible to double align text, eg. 1 item on the left and price on the right?
I already figure it out I can use <html> tags to get double lines in jlist element.
I haven't followed that link. But if your question is about how to get the data in a JList to align itself into columns, well, that's what a JTable is for.
You can use either a JList or a JTable with a custom renderer. Read about renderers here.
For a list, the renderer could be a JPanel with two JLabels with appropriate horizontal alignment. Or you could use a BoxLayout and add a horizontal glue between the two labels.
For a table, you could extend DefaultTableCellRenderer and invoke the super implementation of getTableCellRendererComponent with the hasFocus parameter false.
luck, db
There are no new questions, but there may be new answers.
I am using JTable as recommended. Superimplementation removes focus (blue line), but joint edges between two horizontal cells in the middle is still there...