Package se.datadosen.component
package se.datadosen.component
-
ClassDescriptionSimple LayoutManager that allows to center a single Component inside a Container, based on its preferred size.Choosing files and folders is a mess in Java.Keep the enabled state of listed components in sync with a JComboBox selection or the selcted state of an AbstractButton, for instance a JCheckBoxPass to JWizard in order to generate button with sub itemsA ControlPanel is a JPanel which has "RiverLayout" as default layout manager.This border only look good on macSVGIcon that defers loading until icon is actually displayedJFileChooser doesn't allow directory selection very well on Mac.Interface that maps well towards JFileChooser but allows us to exchange JFileChooser for other implementations For details on these methods, see JFileChooserLike JColorSelector, but with support for alpha channel.A ToolBar which looks better than the standard toolbarSwing panel that can be collapsed/expandedComponent that allows color selection by clicking on it.Menu that displays a list of multiple choicesA fix to JFileChooser that correctly allows only directories to be selected.Small vertical divider lineExpandable, but generic error dialogPanel that makes its content fade in smoothly Uses a BorderLayout as defaultJLabel that falls back to default font if it cannot display string in specified fontComponent that allows file or folder selection by clicking on it.Font selector with background loading of fontsJComboBox that allows different formatters to be installedA button looking with semi-transparent background, much like the jAlbum.net site buttons which show as users hover the mouse over images.JButton that only shows its border when the mouse is hovered over itFix for JButton on Mac OS-X which shrinks a button when an icon is being added so that text doesn't fitFix for JButton on Mac OS-X which shrinks a button when an icon is being added so that text doesn't fit (I assume this class is needed, as JIconButton is needed)JLabel that assigns itself to a component.Like JSplitPane, but with a discrete line as dividerSwing component that produces a graphical link to a URL.JTable that maps a Map object to a name-value table.A Toolbar button that produces a pull down menu of actionsJModalPanel<T extends JFrame>JPanel that occupies space in front of other panels.JComboBox that presents translated items by constructing keys based on enum class name .Panel that has a colorful background, close button and nice roll-up effect To be used for small informative notificationsLike JTextField, but only allows numbers (or empty)Clean toggle button lacking borders Ensure Action has a selected state and both icon and selected iconJTable that displays a list of name-value pairs.A button without extra margins, borders or paint effectsSlider with a plain (round) knob on all look & feelsMusic playlist.JLabel with progress bar and customizable progress bar colorProvide a Mac-like spinning wheel during long processesOrdinary JButton that picks up both icon and rollover icon from its actionJLabel that doesn't pass on mouse click events (Disable hiding of tool-tips when clicking)A button looking like the jAlbum.net site buttons as they were introduced in September 2009.JDialog that manages OS independent OK / Cancel buttons and mapping Enter press to Ok action and ESC press to Cancel actionLike JSmartTextArea but with default HTML syntax highlighting JTextArea with undo/redo support and popup menu Tab also moves between componentsJTextArea with undo/redo support and popup menu Tab also moves between componentsJTextField with undo/redo support and popup menuAllows texts to be pushed and popped.JSpinner that can be widened easilyUI component that hints the user on the next step in a work flow.Swing-like wrapper around XFileChooser (Windows) Cons: Windows only.Simple LayoutManager that puts a component in the vertical middle of its container The component stretches to the full width of the containerJTree where root node can't be collapsed (why would one want it?)Like EtchedBorder, but with just a line in the top/northThis class is used to create a multiple-exclusion scope for a set of panels of JCollapsiblePanel class.Common base interface for FileChooser and DirectoryChooser interfacesIcon that paints itself in twice the pixel densityImageIcon that paints itself in twice the pixel densityRiverLayout makes it very simple to construct user interfaces as components are laid out similar to how text is added to a word processor (Components flow like a "river".Next generation of RiverLayout.This class is a mess, I should really clean it up...Icons for popular social networksSmartAction<T extends SmartAction>Action exposing an enabledProperty (javafx)SmartTextComponent<T extends JTextComponent>Convenience "master listener" class that allows you to monitor component state events in a uniform and syntactically short way.SupportsSpelling<T extends JTextComponent>Manage completion of comma separated list of tagsA Verifier makes it convenient to verify the validity of the input of text components when the verification process might take some time (requiring network IO for instance).Action whos setEnabled method can be vetoed by listeners Enables a clean way to handle the enabled state of actions when the enabled state is dependent on multiple parts of a programManages presenting a wait cursor in a delayed fashion to avoid flickering Wrap possibly long running code in workStarted and workDone methods Also allows nested calls to workStarted and workDoneConvenience class to used in try-with-resources to ensure that workDone is always called.Companion to the Autocompleter classJLabel where you can set the preferred width only.