JList items with horizontal wrap not extending all the way through?

As I noted in my comment, your problem lends itself well to solving through creation of an SSCCE In fact, I did one myself using your code snippet and some of my code.

As I noted in my comment, your problem lends itself well to solving through creation of an SSCCE. In fact, I did one myself using your code snippet and some of my code: import java.awt. Dimension; import javax.swing.

*; public class Foo001 { private static void createAndShowUI() { DefaultListModel model = new DefaultListModel(); JList sList = new JList(model); for (int I = 0; I SINGLE_INTERVAL_SELECTION); sList. SetVisibleRowCount(-1); sList. SetLayoutOrientation(JList.

HORIZONTAL_WRAP); JFrame frame = new JFrame("Foo001"); frame.getContentPane(). Add(new JScrollPane(sList)); frame.getContentPane(). SetPreferredSize(new Dimension(400, 300)); frame.

SetDefaultCloseOperation(JFrame. EXIT_ON_CLOSE); frame.pack(); frame. SetLocationRelativeTo(null); frame.

SetVisible(true); } public static void main(String args) { java.awt.EventQueue. InvokeLater(new Runnable() { public void run() { createAndShowUI(); } }); } } Since I cannot reproduce your problem with my code, I must conclude that your problem lies elsewhere in code that you've not shown us. Again, if you can create and post your SSCCE, we will likely be able to help answer your question, but until then, I'm not sure if we can even guess what the problem is.

Warz: I just read camickr's comment. Why haven't you created your own SSCCE yet? What are you waiting for?

– Hovercraft Full Of Eels Aug 7 at 18:37 Got it to work as I was building an SSCCE. Thanks for getting me started. – Warz Aug 7 at 22:26 You're welcome.

That's one of the benefits of creating these guys as often you find the problem and its solution in the process. Congrats! – Hovercraft Full Of Eels Aug 7 at 22:28 1 @Warz, And how many times have I told you that is the point of creating a SSCCE so you can actually solve your own problems?

It's amazing what you can do when you actually make an effort. – camickr Aug 7 at 22:50.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions