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

    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,
    -Nathe

  2. #2
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Location
    Southwest
    Posts
    1,018
    Rep Power
    8

    Default

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

Posting Permissions

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