Module Java.Swing

Definitions for native components below javax.swing

Imports

Table of Content

Definitions

data SwingConstants = pure native javax.swing.SwingConstants

this is defined as an abstract type so as to enable the access to the constants in the usual way.

Note that the constants are in lowercase, in contrast to Java.

Member Functions

bottomInt
pure native javax.swing.SwingConstants.BOTTOM
centerInt
pure native javax.swing.SwingConstants.CENTER
eastInt
pure native javax.swing.SwingConstants.EAST
horizontalInt
pure native javax.swing.SwingConstants.HORIZONTAL
leadingInt
pure native javax.swing.SwingConstants.LEADING
leftInt
pure native javax.swing.SwingConstants.LEFT
nextInt
pure native javax.swing.SwingConstants.NEXT
northInt
pure native javax.swing.SwingConstants.NORTH
north_eastInt
pure native javax.swing.SwingConstants.NORTH_EAST
north_westInt
pure native javax.swing.SwingConstants.NORTH_WEST
previousInt
pure native javax.swing.SwingConstants.PREVIOUS
rightInt
pure native javax.swing.SwingConstants.RIGHT
southInt
pure native javax.swing.SwingConstants.SOUTH
south_eastInt
pure native javax.swing.SwingConstants.SOUTH_EAST
south_westInt
pure native javax.swing.SwingConstants.SOUTH_WEST
topInt
pure native javax.swing.SwingConstants.TOP
trailingInt
pure native javax.swing.SwingConstants.TRAILING
verticalInt
pure native javax.swing.SwingConstants.VERTICAL
westInt
pure native javax.swing.SwingConstants.WEST
data JFrame = native javax.swing.JFrame

A javax.swing.JFrame

Member Functions

dispose_on_closeInt
pure native javax.swing.JFrame.DISPOSE_ON_CLOSE

constant to dispose of the window when closed

do_nothing_on_closeInt
pure native javax.swing.JFrame.DO_NOTHING_ON_CLOSE

constant to do nothing when closed

exit_on_closeInt
pure native javax.swing.JFrame.EXIT_ON_CLOSE

constant to exit the application when closed

getContentPaneMutableIO JFrameSTMutable RealWorld Container
native getContentPane
hide_on_closeInt
pure native javax.swing.JFrame.HIDE_ON_CLOSE

constant to hide the window when closed

newStringSTMutable RealWorld JFrame
     | ()STMutable RealWorld JFrame
native new

The first form creates a new invisible frame with the specified title

The second form creates a new invisible frame

newαStringSTMutable RealWorld JFrame
native new  overloads new

The first form creates a new invisible frame with the specified title

The second form creates a new invisible frame

newβ()STMutable RealWorld JFrame
native new  overloads new

The first form creates a new invisible frame with the specified title

The second form creates a new invisible frame

setContentPaneMutableIO JFrameMutableIO ContainerIO ()
native setContentPane

this really belongs to interface RootPaneContainer

setDefaultCloseOperationMutableIO JFrameIntIO ()
native setDefaultCloseOperation

Sets the operation that will happen by default when the user initiates a "close" on this frame.

data JLabel = native javax.swing.JLabel

a swing label

Member Functions

newStringSTMutable RealWorld JLabel
     | ()STMutable RealWorld JLabel
native new

create a label or a blank label

newαStringSTMutable RealWorld JLabel
native new  overloads new

create a label or a blank label

newβ()STMutable RealWorld JLabel
native new  overloads new

create a label or a blank label

setTextMutableIO JLabelStringIO ()
native setText

Defines the single line of text this component will display.

invokeLaterMutableIO RunnableIO ()
native javax.swing.SwingUtilities.invokeLater

wrapper for javax.swing.SwingUtilities.invokeLater

invokeAndWaitMutableIO RunnableIO ()
native javax.swing.SwingUtilities.invokeAndWait  throws InvocationTargetException, InterruptedException

wrapper for javax.swing.SwingUtilities.invokeAndWait

data JComponent = native javax.swing.JComponent

an object with compiler time type javax.swing.JComponent

Member Functions

setOpaqueMutableIO JComponentBoolIO ()
native setOpaque
data JPanel = native javax.swing.JPanel

an object with compiler time type javax.swing.JPanel

Member Functions

new()STMutable RealWorld JPanel
native new
data AbstractButton = native javax.swing.AbstractButton

an object with compiler time type javax.swing.AbstractButton

Member Functions

addActionListenerMutableIO AbstractButtonMutableIO ActionListenerIO ()
native addActionListener

Adds an ActionListener to the button.

setHorizontalTextPositionMutableIO AbstractButtonIntIO ()
native setHorizontalTextPosition

Sets the horizontal position of the text relative to the icon.

setTextMutableIO AbstractButtonStringIO ()
native setText

set a text

setVerticalTextPositionMutableIO AbstractButtonIntIO ()
native setVerticalTextPosition

Sets the vertical position of the text relative to the icon.

data JButton = native javax.swing.JButton

an object with compiler time type javax.swing.JButton

Member Functions

newStringSTMutable RealWorld JButton
     | ()STMutable RealWorld JButton
native new

create a button with label or a blank one

newαStringSTMutable RealWorld JButton
native new  overloads new

create a button with label or a blank one

newβ()STMutable RealWorld JButton
native new  overloads new

create a button with label or a blank one

data JTextComponent = native javax.swing.text.JTextComponent

Member Functions

getTextMutableIO JTextComponentIO String
native getText
setTextMutableIO JTextComponentStringIO ()
native setText
data JTextField = native javax.swing.JTextField

an object with compile time type javax.swing.JTextField

Member Functions

new()STMutable RealWorld JTextField
native new
data GroupLayout = native javax.swing.GroupLayout

Member Functions

newMutableIO ContainerSTMutable RealWorld GroupLayout
native new
setHorizontalGroupMutableIO GroupLayoutMutableIO GroupIO ()
native setHorizontalGroup

Functions and Values by Type

MutableIO ContainerSTMutable RealWorld GroupLayout

GroupLayout.new

MutableIO RunnableIO ()

invokeAndWait, invokeLater

MutableIO AbstractButtonMutableIO ActionListenerIO ()

AbstractButton.addActionListener

MutableIO AbstractButtonStringIO ()

AbstractButton.setText

MutableIO AbstractButtonIntIO ()

AbstractButton.setVerticalTextPosition, AbstractButton.setHorizontalTextPosition

MutableIO GroupLayoutMutableIO GroupIO ()

GroupLayout.setHorizontalGroup

MutableIO JComponentBoolIO ()

JComponent.setOpaque

MutableIO JFrameMutableIO ContainerIO ()

JFrame.setContentPane

MutableIO JFrameIntIO ()

JFrame.setDefaultCloseOperation

MutableIO JFrameSTMutable RealWorld Container

JFrame.getContentPane

MutableIO JLabelStringIO ()

JLabel.setText

MutableIO JTextComponentStringIO ()

JTextComponent.setText

MutableIO JTextComponentIO String

JTextComponent.getText

StringSTMutable RealWorld JButton

JButton.newα

StringSTMutable RealWorld JFrame

JFrame.newα

StringSTMutable RealWorld JLabel

JLabel.newα

()STMutable RealWorld JButton

JButton.newβ

()STMutable RealWorld JFrame

JFrame.newβ

()STMutable RealWorld JLabel

JLabel.newβ

()STMutable RealWorld JPanel

JPanel.new

()STMutable RealWorld JTextField

JTextField.new

Int

JFrame.hide_on_close, JFrame.exit_on_close, JFrame.dispose_on_close, JFrame.do_nothing_on_close, SwingConstants.west, SwingConstants.top, SwingConstants.trailing, SwingConstants.vertical, SwingConstants.south_east, SwingConstants.right, SwingConstants.south, SwingConstants.south_west, SwingConstants.north_west, SwingConstants.north, SwingConstants.next, SwingConstants.north_east, SwingConstants.horizontal, SwingConstants.leading, SwingConstants.center, SwingConstants.bottom, SwingConstants.east, SwingConstants.left, SwingConstants.previous

ω

JButton.new, JFrame.new, JLabel.new

Valid HTML 4.01 Strict