protected void changed( Icon oldValue, Icon newValue ){
setIcon( newValue );
}
};
text = new DockActionText( "rename", this ){
protected void changed( String oldValue, String newValue ){
setText( newValue );
}
};
tooltip = new DockActionText( "rename.tooltip", this ){
protected void changed( String oldValue, String newValue ){
setTooltip( newValue );
}
};
menu.setLayout( new GridBagLayout() );
JPanel panel = new JPanel( new GridLayout( 1, 2 ));
panel.add( okButton );
panel.add( cancelButton );
menu.add( titleField, new GridBagConstraints( 0, 0, 1, 1, 100.0, 1.0,
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
new Insets( 1, 1, 1, 1 ), 0, 0 ));
menu.add( panel, new GridBagConstraints( 1, 0, 1, 1, 1.0, 1.0,
GridBagConstraints.CENTER, GridBagConstraints.VERTICAL,
new Insets( 1, 1, 1, 1 ), 0, 0 ));
titleField.setColumns( 10 );
textOk = new DockActionText( "rename.ok", this ){
protected void changed( String oldValue, String newValue ){
okButton.setText( newValue );
}
};
textCancel = new DockActionText( "rename.cancel", this ){
protected void changed( String oldValue, String newValue ){
cancelButton.setText( newValue );
}
};