• Home
  • Popular Downloads
  • Contact Us
  • Submit

Softpile

Free Downloads

Main Navigation
  • Home
  • Windows
  • Mac OS X
  • Business
  • Desktop
  • Development
  • Education
  • Games
  • Internet
  • Multimedia
  • Utilities
Home » Linux » ArithmeticLayoutManager

ArithmeticLayoutManager

April 15, 2008
ArithmeticLayoutManager is an arithmetic layout manager for Swing/AWT.
Version: 1.0
License: The Apache License 2.0
Operating System: Linux
Homepage: code.google.com
Developed by: Marco Slot
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
arithmetic arithmetic layout awt layout manager swing swing layout
Free Download 246K
0
  • Share on:

ArithmeticLayoutManager User Reviews

Sponsored

Categories

  • Linux

Related Downloads

Chombo
Chombo project provides a set of tools for implementing finite difference ...
Qalculate! Bases
Qalculate! is a multi-purpose desktop calculator for GNU/Linux.
HeeksCAD
Free CAD based on Open CASCADE
MBDyn
The first and possibly the only free* general-purpose MultiBody Dynamics ...
universal_crc
universal_crc is a utility for generating optimized ANSI C code for CRC ...
Copyright © 1999-2017 Softpile Free Downloads
  • Contact Us
  • Submit
  • Privacy Policy
  • Disclaimer
  • Terms of Use