> Java > tools > ui
> Java > tools > ui
by ZweiBieren Package com.physpics.tools.ui Java coffee cup logo

Manyapplications need the same sorts of uer interface behaviors. The tools in this package are a a bit more specific versions of tools that are already in javax.swing.

src Jdoc class note
Java steaming cup doc with "J" AccentAction.java In lieu of many Input methods, this class provides keystrokes for most Eurpean characters and the arabic numerals.
Java steaming cup doc with "J" ButtonToImage.java Given an html files with objects, this application produces a new version of the file where all the buttons are replaced by images. The result can be dsplayed by all but the very most primitive browsers.
Java steaming cup doc with "J" CheckOff.java Presents a list of strings with checkboxes and asks the user to pick one or more.
Java steaming cup doc with "J" ChoosableFileField.java Combines a JTextField naming a file-or-directory and a button to set the field via JFileChooser.
Java steaming cup doc with "J" ColorRange.java Adjust the values of eleven colors; nominally they represent 0, 1, ... 10.
Java steaming cup doc with "J" DoSoon.java Schedule an event to be done in the future.
Java steaming cup doc with "J" DragRect.java Display a rectangle whose body and boundaries are draggable.
Java steaming cup doc with "J" HelpBox.java Adds to the display a window for a helpfile describing the client. Accepts location messages from the client and scolls the help window.
Java steaming cup doc with "J" HelpfulFileChooser.java Tries to do a slightly better job of asking for a file.
Java steaming cup doc with "J" HTMLDocPlus.java An augmented HTMLDoc. Most important is a mechanism for adding behaviors to what would otherwise be static elements in the document. Button presses can do anything. text can be revised. Images can change.
Java steaming cup doc with "J" INumber.java A number parser.
Java steaming cup doc with "J" JButtonGroup.java Extends javax.swing.ButtonGroup to provide methods that allow working with button references instead of button models.
Java steaming cup doc with "J" PropCon.java A subclass of Properties with defaults that can be connected to the same same set of properties files as accessed by Pictools's propcon.c
Java steaming cup doc with "J" PropertyPack.java A property machine that extends Java's ResourceBundles, especially in supporting multiple sources of propeties.
Java steaming cup doc with "J" PropertyPack_Bundle.java The Bundle manager for PropetyPack
Java steaming cup doc with "J" TextFields.java A TextFields is an adjunct to a JEditorPane. It delimits sections of the text that are editable and highlighted. There is also provision for adding labels with arrows to the segments.
Java steaming cup doc with "J" RunDemos.java DESCRIBE

AccentAction   The body of the window is a JTextArea named text1. AccentAction was enabled for it with

Text including accented characters entered with AccentAction   In each line the first character was entered by typing the middle sequence. The right-hand end names the character.

ButtonToImage. Failed qhile I was writing this. Has worked inthe past to convert fancy buttons to images requiring less browser capability.

CheckOff Sample

3 checkboxes in a single CheckOff

ChooseableFileField demo

text area and button

ColorRange window

11 colors in a range

DoSoon test

DoSoon doer = new DoSoon(400, e->{tt.print("done it");});
tt.print("start one; \"done it\" in greater than 400 msec");
tt.print("start two; expect \"done it\" in 700 msec");
0.062  start one; "done it" in greater than 400 msec
0.578  done it
0.671  start two; expect "done it" in 700 msec
1.390  done it

DragRect demo

window with various items, including three draggable rectangles
final DragRect frG = DragRect.create(bodyR); 
    new Color(255,128,128,100)); // pink wash
frG.setRect(new Rectangle(75, 50, 40, 20));



Copyright © 2018 ZweiBieren, All rights reserved. Aug 10, 2018 16:29 GMT Page maintained by ZweiBieren