edu.uvm.ccts.common.ui.GetCredentials.jfd Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ccts-common Show documentation
Show all versions of ccts-common Show documentation
A library of useful generic objects and tools consolidated here to simplify all UVM CCTS projects
JFDML JFormDesigner: "5.2.1.0.138" Java: "1.6.0_65" encoding: "UTF-8"
new FormModel {
contentType: "form/swing"
root: new FormRoot {
add( new FormWindow( "javax.swing.JDialog", new FormLayoutManager( class java.awt.BorderLayout ) ) {
name: "this"
"modal": true
"title": "Provide Credentials"
"resizable": false
"defaultCloseOperation": 0
"alwaysOnTop": true
"$sizePolicy": 1
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.BorderLayout ) ) {
name: "dialogPane"
"border": new javax.swing.border.EmptyBorder( 12, 12, 12, 12 )
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class org.jdesktop.layout.GroupLayout ) {
"$horizontalGroup": "par l {seq {space :::p, par l {comp lblMessage::::334:x, seq t {par l {comp lblUser::l:p::p, comp lblPass::l:p::p}, space :::p, par l {comp txtPass::l::258:x, comp txtUser::l::258:x}}, comp lblPrompt::::334:x, seq l {comp lblNote:::p::p, space :::p, comp lblNoteText::::295:x}}, space :::p}}"
"$verticalGroup": "par l {seq l {space :::p, comp lblMessage:::p::p, space u:::p, comp lblPrompt:::p::p, space :::p, par b {comp lblNote::b:p::p, comp lblNoteText::b:p::p}, space u:::p, par b {comp lblUser::b:p::p, comp txtUser::b:p::p}, space :::p, par b {comp lblPass::b:p::p, comp txtPass::b:p::p}, space ::11:x}}"
} ) {
name: "contentPanel"
add( new FormComponent( "javax.swing.JLabel" ) {
name: "lblPrompt"
"text": "Please provide login credentials for 'x':"
} )
add( new FormComponent( "javax.swing.JLabel" ) {
name: "lblUser"
"text": "Username:"
} )
add( new FormComponent( "javax.swing.JTextField" ) {
name: "txtUser"
addEvent( new FormEvent( "java.awt.event.KeyListener", "keyPressed", "txtUserKeyPressed", true ) )
} )
add( new FormComponent( "javax.swing.JLabel" ) {
name: "lblPass"
"text": "Password:"
} )
add( new FormComponent( "javax.swing.JPasswordField" ) {
name: "txtPass"
addEvent( new FormEvent( "java.awt.event.KeyListener", "keyPressed", "txtPassKeyPressed", true ) )
} )
add( new FormComponent( "javax.swing.JLabel" ) {
name: "lblMessage"
"text": "Error message"
"foreground": sfield java.awt.Color red
} )
add( new FormComponent( "javax.swing.JLabel" ) {
name: "lblNote"
"text": "Note:"
"font": new java.awt.Font( "Lucida Grande", 2, 12 )
"foreground": sfield java.awt.Color darkGray
} )
add( new FormComponent( "javax.swing.JLabel" ) {
name: "lblNoteText"
"text": "text"
"foreground": sfield java.awt.Color darkGray
"font": new java.awt.Font( "Lucida Grande", 2, 12 )
"verticalAlignment": 1
} )
}, new FormLayoutConstraints( class java.lang.String ) {
"value": "Center"
} )
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class java.awt.GridBagLayout ) {
"$columnSpecs": "0:1.0, 80, 80"
"$rowSpecs": "0"
"$hGap": 5
"$vGap": 5
} ) {
name: "buttonBar"
"border": new javax.swing.border.EmptyBorder( 12, 0, 0, 0 )
add( new FormComponent( "javax.swing.JButton" ) {
name: "okButton"
"text": "OK"
addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "okButtonActionPerformed", false ) )
}, new FormLayoutConstraints( class com.jformdesigner.runtime.GridBagConstraintsEx ) {
"gridx": 1
"gridy": 0
} )
add( new FormComponent( "javax.swing.JButton" ) {
name: "cancelButton"
"text": "Cancel"
addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "cancelButtonActionPerformed", false ) )
}, new FormLayoutConstraints( class com.jformdesigner.runtime.GridBagConstraintsEx ) {
"gridx": 2
"gridy": 0
} )
}, new FormLayoutConstraints( class java.lang.String ) {
"value": "South"
} )
}, new FormLayoutConstraints( class java.lang.String ) {
"value": "Center"
} )
}, new FormLayoutConstraints( null ) {
"location": new java.awt.Point( 0, 0 )
"size": new java.awt.Dimension( 400, 265 )
} )
}
}