Results 1 to 2 of 2
  1. #1
    antitru5t is offline Member
    Join Date
    Jan 2009
    Rep Power

    Question Java JList Alignment Question?

    Is there any possible way that I can align a JList box within a panel. To the left side, right side, center side, or bottom side. If so, then how can I implement this?

    Can someone give me example coding? And, does this method require you to use the setHorizontalAlignment()?

    Thank you,

  2. #2
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Rep Power


    Google for this:
    Java Code:
     * A 1.4 file that provides utility methods for
     * creating form- or grid-style layouts with SpringLayout.
     * These utilities are used by several programs, such as
     * SpringBox and SpringCompactGrid.
    public class SpringUtilities
    it is hard to use but all you have to do is read the directions.

    I put a lot of effort into what you are trying to do, with no satisfactory useable production.

    I tried this SpringUtilities, got frustrated, kept working, shipped some code.
    Introduction to Programming Using Java.
    Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

Similar Threads

  1. Alignment Issue...
    By chanduseec in forum JavaServer Faces (JSF)
    Replies: 1
    Last Post: 09-30-2008, 06:47 AM
  2. [SOLVED] Alignment in GroupLayout
    By nanou in forum AWT / Swing
    Replies: 8
    Last Post: 09-03-2008, 03:14 AM
  3. Label Alignment Example
    By Java Tip in forum javax.swing
    Replies: 0
    Last Post: 06-27-2008, 07:49 PM
  4. [SOLVED] alignment problem
    By nanimtech in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 04-10-2008, 01:23 PM
  5. alignment of textfield in awt
    By nitinborge5 in forum New To Java
    Replies: 2
    Last Post: 07-30-2007, 11:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts