Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Science and Engineering > Mathematics

    ArithmeticLayoutManager 1.0

    Download button

    No screenshots available
    Downloads: 398  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.8/5)
    9 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Marco Slot | More programs
    The Apache License 2.0 / FREE
    April 15th, 2008, 19:26 GMT
    ROOT / Science and Engineering / Mathematics

     Read user reviews (0)  Refer to a friend  Subscribe

    ArithmeticLayoutManager description

    ArithmeticLayoutManager is an arithmetic layout manager for Swing/AWT.

    ArithmeticLayoutManager is an arithmetic layout manager for Swing/AWT.

    The ArithmeticLayoutManager is a layout manager which can be used to specify the bounds of a component as a series of mathematical expressions which are re-evaluated every time the parent is resized.

    The expressions consist of simple arithmetics combined with references to fields of other components (the parent and siblings).

    ArithmeticLayoutManager was born out of dissatisfaction with existing layout managers. Although some extremely powerful layout managers exist, most of them present the programmer with a horrendous amount of complexity by requiring intricate chains of invocations, an unintuive String syntax, or a complex configuration procedure (or all of the above). As a result most developers simply use the null layout, which decreases the usability of the program. ArithmeticLayoutManager aims combine an intuitive Java/CSS-like syntax with powerful arithmetic expressions.

    Lets start by doing a trick that is extremely hard to do in most layout managers:

    Container panel = getContentPane();
    panel.setLayout(new ArithmeticLayoutManager());

    JLabel nameLabel = new JLabel("Name:");
    panel.add(nameLabel,
    "name = nameLabel; "+
    "top = 20; "+
    "left = 20; ");

    JTextField nameField = new JTextField();
    panel.add(nameField,
    "top = 20; "+
    "left = nameLabel.rRight + 20; "+
    "right = 20; ");

    Requirements:

    · Java Runtime Environment



    Product's homepage

    Requirements:

    · Java Runtime Environment

      


    TAGS:

    layout manager | arithmetic layout | Swing layout | Swing | AWT | arithmetic

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM