180 protected static final String SIZE_CMD = 181 UIManager.getString("InternalFrameTitlePane.sizeButtonText"); 182 183 private String closeButtonToolTip; 184 private String iconButtonToolTip; 185 private String restoreButtonToolTip; 186 private String maxButtonToolTip; 187 private Handler handler; 188 189 /** 190 * Constructs a new instance of {@code BasicInternalFrameTitlePane}. 191 * 192 * @param f an instance of {@code JInternalFrame} 193 */ 194 public BasicInternalFrameTitlePane(JInternalFrame f) { 195 frame = f; 196 installTitlePane(); 197 } 198 199 /** 200 * Installs the title pane. 201 */ 202 protected void installTitlePane() { 203 installDefaults(); 204 installListeners(); 205 206 createActions(); 207 enableActions(); 208 createActionMap(); 209 210 setLayout(createLayout()); 211 212 assembleSystemMenu(); 213 createButtons(); 214 addSubComponents(); 215 216 updateProperties(); 217 } 218 219 private void updateProperties() { | 180 protected static final String SIZE_CMD = 181 UIManager.getString("InternalFrameTitlePane.sizeButtonText"); 182 183 private String closeButtonToolTip; 184 private String iconButtonToolTip; 185 private String restoreButtonToolTip; 186 private String maxButtonToolTip; 187 private Handler handler; 188 189 /** 190 * Constructs a new instance of {@code BasicInternalFrameTitlePane}. 191 * 192 * @param f an instance of {@code JInternalFrame} 193 */ 194 public BasicInternalFrameTitlePane(JInternalFrame f) { 195 frame = f; 196 installTitlePane(); 197 } 198 199 /** 200 * Gets {@code JInternalFrame} instance 201 * 202 * @return {@code JInternalFrame} instance 203 * @since 12 204 */ 205 public JInternalFrame getInternalFrame() { 206 return frame; 207 } 208 209 /** 210 * Installs the title pane. 211 */ 212 protected void installTitlePane() { 213 installDefaults(); 214 installListeners(); 215 216 createActions(); 217 enableActions(); 218 createActionMap(); 219 220 setLayout(createLayout()); 221 222 assembleSystemMenu(); 223 createButtons(); 224 addSubComponents(); 225 226 updateProperties(); 227 } 228 229 private void updateProperties() { |