1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="utf-8"/> 5 <title>Component Specific Properties</title> 6 <style type="text/css">tbody th {font-weight:normal;text-align:left}</style> 7 </head> 8 <!-- 9 Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved. 10 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 11 12 This code is free software; you can redistribute it and/or modify it 13 under the terms of the GNU General Public License version 2 only, as 14 published by the Free Software Foundation. Oracle designates this 15 particular file as subject to the "Classpath" exception as provided 16 by Oracle in the LICENSE file that accompanied this code. 17 18 This code is distributed in the hope that it will be useful, but WITHOUT 19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 20 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 21 version 2 for more details (a copy is included in the LICENSE file that 22 accompanied this code). 23 24 You should have received a copy of the GNU General Public License version 25 2 along with this work; if not, write to the Free Software Foundation, 26 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 27 28 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 29 or visit www.oracle.com if you need additional information or have any 30 questions. 31 --> 32 33 <body> 34 <main role="main"> 35 <h1>Component Specific Properties</h1> 36 <p> The look, and to some degree the feel of Synth 37 can be customized by way of component specific properties. 38 These properties are accessed from <a 39 href="../SynthStyle.html">SynthStyle#get</a>. Refer to <a 40 href="synthFileFormat.html#e.property">synth file format</a> for examples 41 of how to specify these properties in a synth configuration file.</p> 42 <p> 43 This file specifies the expected class type each of the values 44 are to take. The behavior of supplying the wrong type is 45 unspecified: typically a <code>ClassCastException</code> is 46 thrown, but it is implementation specific. 47 </p> 48 <h2>ArrowButton</h2> 49 <p> ArrowButton is a special type of JButton that renders an arrow. 50 ArrowButton is typically not created directly, rather some of the 51 Components will create it to render a button with an arrow. The 52 components that make use of ArrowButton are: 53 JComboBox, JScrollBar and JSplitPane (for the buttons on the divider). 54 In addition to the <a 55 href="#buttonProperties">Button properties</a>, ArrowButton supports 56 the following properties: </p> 57 <table border="1"> 58 <caption>ArrowButton Specific Properties</caption> 59 <thead><tr> 60 <th scope="col">Property</th> 61 <th scope="col">Expected Type</th> 62 <th scope="col">Default Value</th> 63 <th scope="col">Description </th> 64 </tr> 65 </thead> <tbody> 66 <tr> 67 <th scope="row">ArrowButton.size</th> 68 <td>Integer</td> 69 <td>16 </td> 70 <td>Preferred size of the arrow button. </td> 71 </tr> 72 </tbody> 73 </table> 74 <br> 75 <h2><a id="JButton">JButton</a></h2> 76 <p> JButton paints text using the TEXT_FOREGROUND ColorType. In addition 77 to the <a href="#buttonProperties">Button properties</a>, JButton 78 supports the following property: </p> 79 <table border="1"> 80 <caption>JButton Specific Properties</caption> 81 <thead><tr> 82 <th scope="col">Property</th> 83 <th scope="col">Expected Type</th> 84 <th scope="col">Default Value</th> 85 <th scope="col">Description </th> 86 </tr> 87 </thead> <tbody> 88 <tr> 89 <th scope="row">Button.defaultButtonFollowsFocus</th> 90 <td>Boolean</td> 91 <td>true </td> 92 <td>Whether or not the default JButton should change to the 93 button that is receiving focus. </td> 94 </tr> 95 </tbody> 96 </table> 97 <br> 98 <h2><a id="JCheckBox">JCheckBox</a></h2> 99 <p> JCheckBox paints text using the TEXT_FOREGROUND ColorType. In 100 addition to the <a href="#buttonProperties">Button properties</a>, 101 JCheckBox supports the following property: </p> 102 <table border="1"> 103 <caption>JCheckBox Specific Properties</caption> 104 <thead><tr> 105 <th scope="col">Property</th> 106 <th scope="col">Expected Type</th> 107 <th scope="col">Default Value</th> 108 <th scope="col">Description </th> 109 </tr> 110 </thead> <tbody> 111 <tr> 112 <th scope="row">CheckBox.icon</th> 113 <td>Icon</td> 114 <td>null </td> 115 <td>Icon used to render the check. </td> 116 </tr> 117 </tbody> 118 </table> 119 <br> 120 <h2><a id="JComboBox">JComboBox</a></h2> 121 <p> JComboBox is a composite component that consists of the following 122 child Components: </p> 123 <table border="1"> 124 <caption>JComboBox child components</caption> 125 <thead><tr> 126 <th scope="col">Name</th> 127 <th scope="col">Type</th> 128 <th scope="col">Description </th> 129 </tr> 130 </thead> <tbody> 131 <tr> 132 <th scope="row">ComboBox.arrowButton</th> 133 <td>SynthArrowButton </td> 134 <td>Renders the drop down indicator. </td> 135 </tr> 136 <tr> 137 <th scope="row">ComboBox.list</th> 138 <td>JList </td> 139 <td>JList used to render the values. </td> 140 </tr> 141 <tr> 142 <th scope="row">ComboBox.listRenderer</th> 143 <td>Component </td> 144 <td>The renderer used for the JComboBox's JList. </td> 145 </tr> 146 <tr> 147 <th scope="row">ComboBox.popup</th> 148 <td>JPopupMenu </td> 149 <td>JPopupMenu used to show the ComboBox.list of the JComboBox. </td> 150 </tr> 151 <tr> 152 <th scope="row">ComboBox.renderer</th> 153 <td>Component </td> 154 <td>The renderer used for the JComboBox. This is ONLY set if 155 the renderer is a UIResource. </td> 156 </tr> 157 <tr> 158 <th scope="row">ComboBox.scrollPane</th> 159 <td>JScrollPane </td> 160 <td>JScrollPane containing the JList. </td> 161 </tr> 162 <tr> 163 <th scope="row">ComboBox.textField</th> 164 <td>JTextField </td> 165 <td>The editor. </td> 166 </tr> 167 </tbody> 168 </table> 169 170 <p> </p> 171 <table border="1"> 172 <caption>JComboBox Specific Properties</caption> 173 <thead><tr> 174 <th scope="col">Property</th> 175 <th scope="col">Expected Type</th> 176 <th scope="col">Default Value</th> 177 <th scope="col">Description </th> 178 </tr> 179 </thead> <tbody> 180 <tr> 181 <th scope="row">ComboBox.showPopupOnNavigation</th> 182 <td>Boolean</td> 183 <td>false </td> 184 <td>Whether or not the JPopupMenu should appear when navigating 185 with the keyboard. </td> 186 </tr> 187 </tbody> 188 </table> 189 <br> 190 <h2>JFileChooser</h2> 191 <table cellpadding="2" cellspacing="2" border="1" style="width: 100%; text-align: left;"> 192 <caption>JFileChooser Specific Properties</caption> 193 <tbody> 194 <tr> 195 <th scope="col" style="vertical-align: top; text-align: center;">Property</th> 196 <th scope="col" style="vertical-align: top; text-align: center;">Expected Type<br> 197 </th> 198 <th scope="col" style="vertical-align: top; text-align: center;">Default Value<br> 199 </th> 200 <th scope="col" style="vertical-align: top; text-align: center;">Description</th> 201 </tr> 202 <tr> 203 <th scope="row" style="vertical-align: top;">FileChooser.cancelIcon<br> 204 </th> 205 <td style="vertical-align: top;">Icon<br> 206 </td> 207 <td style="vertical-align: top;">null<br> 208 </td> 209 <td style="vertical-align: top;">Icon displayed on cancel button 210 of the file chooser.<br> 211 </td> 212 </tr> 213 <tr> 214 <th scope="row" style="vertical-align: top;">FileChooser.okIcon<br> 215 </th> 216 <td style="vertical-align: top;">Icon<br> 217 </td> 218 <td style="vertical-align: top;">null<br> 219 </td> 220 <td style="vertical-align: top;">Icon displayed on the ok button 221 of the file chooser.<br> 222 </td> 223 </tr> 224 <tr> 225 <th scope="row" style="vertical-align: top;">FileView.directoryIcon<br> 226 </th> 227 <td style="vertical-align: top;">Icon<br> 228 </td> 229 <td style="vertical-align: top;">null<br> 230 </td> 231 <td style="vertical-align: top;">Icon used for directories. 232 </td> 233 </tr> 234 <tr> 235 <th scope="row" style="vertical-align: top;">FileView.fileIcon<br> 236 </th> 237 <td style="vertical-align: top;">Icon<br> 238 </td> 239 <td style="vertical-align: top;">null<br> 240 </td> 241 <td style="vertical-align: top;">Icon used for files. 242 </td> 243 </tr> 244 <tr> 245 <th scope="row" style="vertical-align: top;">FileView.computerIcon<br> 246 </th> 247 <td style="vertical-align: top;">Icon<br> 248 </td> 249 <td style="vertical-align: top;">null<br> 250 </td> 251 <td style="vertical-align: top;">Icon used for directories that 252 represent the computer. Not all platforms will make use 253 of this icon. 254 </td> 255 </tr> 256 <tr> 257 <th scope="row" style="vertical-align: top;">FileView.hardDriveIcon<br> 258 </th> 259 <td style="vertical-align: top;">Icon<br> 260 </td> 261 <td style="vertical-align: top;">null<br> 262 </td> 263 <td style="vertical-align: top;">Icon used to represent the root 264 of a hard drive. For example, on Windows this would be 265 used when viewing the C drive. 266 </td> 267 </tr> 268 <tr> 269 <th scope="row" style="vertical-align: top;">FileView.floppyDriveIcon<br> 270 </th> 271 <td style="vertical-align: top;">Icon<br> 272 </td> 273 <td style="vertical-align: top;">null<br> 274 </td> 275 <td style="vertical-align: top;">Icon used to represent a floppy 276 disk. 277 </td> 278 </tr> 279 <tr> 280 <th scope="row" style="vertical-align: top;">FileChooser.newFolderIcon<br> 281 </th> 282 <td style="vertical-align: top;">Icon<br> 283 </td> 284 <td style="vertical-align: top;">null<br> 285 </td> 286 <td style="vertical-align: top;">Icon used by the button that creates a new 287 folder. 288 </td> 289 </tr> 290 <tr> 291 <th scope="row" style="vertical-align: top;">FileChooser.upFolderIcon<br> 292 </th> 293 <td style="vertical-align: top;">Icon<br> 294 </td> 295 <td style="vertical-align: top;">null<br> 296 </td> 297 <td style="vertical-align: top;">Icon used by the button that navigates to the 298 parent folder. 299 </td> 300 </tr> 301 <tr> 302 <th scope="row" style="vertical-align: top;">FileChooser.homeFolderIcon<br> 303 </th> 304 <td style="vertical-align: top;">Icon<br> 305 </td> 306 <td style="vertical-align: top;">null<br> 307 </td> 308 <td style="vertical-align: top;">Icon used by the button that navigates to the 309 current user's home directory. 310 </td> 311 </tr> 312 <tr> 313 <th scope="row" style="vertical-align: top;">FileChooser.detailsViewIcon<br> 314 </th> 315 <td style="vertical-align: top;">Icon<br> 316 </td> 317 <td style="vertical-align: top;">null<br> 318 </td> 319 <td style="vertical-align: top;">Icon used by the button that toggles the 320 detailed files list view. 321 </td> 322 </tr> 323 <tr> 324 <th scope="row" style="vertical-align: top;">FileChooser.listViewIcon<br> 325 </th> 326 <td style="vertical-align: top;">Icon<br> 327 </td> 328 <td style="vertical-align: top;">null<br> 329 </td> 330 <td style="vertical-align: top;">Icon used by the button that toggles the 331 regular files list view, showing only an icon and the name of each 332 file and directory. 333 </td> 334 </tr> 335 <tr> 336 <th scope="row" style="vertical-align: top;">FileChooser.viewMenuIcon<br> 337 </th> 338 <td style="vertical-align: top;">Icon<br> 339 </td> 340 <td style="vertical-align: top;">null<br> 341 </td> 342 <td style="vertical-align: top;">Icon used by the button that shows popup menu 343 for selection of a view mode. 344 </td> 345 </tr> 346 </tbody> 347 </table> 348 <br> 349 <h2><a id="JInternalFrame"></a>JInternalFrame</h2> 350 <table cellpadding="2" cellspacing="2" border="1" style="text-align: left; width: 100%;"> 351 <caption>JInternalFrame Specific Properties</caption> 352 <tbody> 353 <tr> 354 <th scope="col" style="vertical-align: top; text-align: center;">Property<br> 355 </th> 356 <th scope="col" style="vertical-align: top; text-align: center;">Expected Type<br> 357 </th> 358 <th scope="col" style="vertical-align: top; text-align: center;">DefaultValue<br> 359 </th> 360 <th scope="col" style="vertical-align: top; text-align: center;">Description<br> 361 </th> 362 </tr> 363 <tr> 364 <th scope="row" style="vertical-align: top;">InternalFrame.icon<br> 365 </th> 366 <td style="vertical-align: top;">Icon</td> 367 <td style="vertical-align: top;">null<br> 368 </td> 369 <td style="vertical-align: top;">Icon drawn representing the 370 system<br> 371 icon of the internal frame. If pressed<br> 372 the system menu will be shown.<br> 373 </td> 374 </tr> 375 </tbody> 376 </table> 377 <br> 378 <h2><a id="JInternalFrameTitlePane"></a>JInternalFrameTitlePane</h2> 379 <p>JInternalFrameTitlePane is the control bar located at the top of the 380 internal frame similar to that found in a frame.<br> 381 </p> 382 <table cellpadding="2" cellspacing="2" border="1" style="text-align: left; width: 100%;"> 383 <caption>JInternalFrameTitlePane Specific Properties</caption> 384 <tbody> 385 <tr> 386 <th scope="col" style="vertical-align: top; text-align: center;">Property<br> 387 </th> 388 <th scope="col" style="vertical-align: top; text-align: center;">Expected Type<br> 389 </th> 390 <th scope="col" style="vertical-align: top; text-align: center;">Default Value<br> 391 </th> 392 <th scope="col" style="vertical-align: top; text-align: center;">Description<br> 393 </th> 394 </tr> 395 <tr> 396 <th scope="row" style="vertical-align: top;">InternalFrameTitlePane.maximizeIcon<br> 397 </th> 398 <td style="vertical-align: top;">Icon</td> 399 <td style="vertical-align: top;">null<br> 400 </td> 401 <td style="vertical-align: top;">Icon drawn to indicate the 402 ability to maximize the internal frame.<br> 403 </td> 404 </tr> 405 <tr> 406 <th scope="row" style="vertical-align: top;">InternalFrameTitlePane.minimizeIcon<br> 407 </th> 408 <td style="vertical-align: top;">Icon</td> 409 <td style="vertical-align: top;">null<br> 410 </td> 411 <td style="vertical-align: top;">Icon drawn to indicate the 412 ability to restore the internal frame back to its previous state.<br> 413 </td> 414 </tr> 415 <tr> 416 <th scope="row" style="vertical-align: top;">InternalFrameTitlePane.iconifyIcon<br> 417 </th> 418 <td style="vertical-align: top;">Icon</td> 419 <td style="vertical-align: top;">null<br> 420 </td> 421 <td style="vertical-align: top;">Icon drawn to indicate the 422 ability to minimize the internal frame.<br> 423 </td> 424 </tr> 425 <tr> 426 <th scope="row" style="vertical-align: top;">InternalFrameTitlePane.closeIcon<br> 427 </th> 428 <td style="vertical-align: top;">Icon</td> 429 <td style="vertical-align: top;">null<br> 430 </td> 431 <td style="vertical-align: top;">Icon drawn to indicate the 432 abililty to close the internal frame. 433 </td> 434 </tr> 435 <tr> 436 <th scope="row" style="vertical-align: top;">InternalFrameTitlePane.titleSpacing<br> 437 </th> 438 <td style="vertical-align: top;">Integer</td> 439 <td style="vertical-align: top;">2</td> 440 <td style="vertical-align: top;">Space between the 441 buttons on the title pane and the title. 442 </td> 443 </tr> 444 <tr> 445 <th scope="row" style="vertical-align: top;">InternalFrameTitlePane.buttonSpacing<br> 446 </th> 447 <td style="vertical-align: top;">Integer</td> 448 <td style="vertical-align: top;">2</td> 449 <td style="vertical-align: top;">Space between the buttons on 450 the title pane. 451 </td> 452 </tr> 453 <tr> 454 <th scope="row" style="vertical-align: top;">InternalFrameTitlePane.maxFrameIconSize<br> 455 </th> 456 <td style="vertical-align: top;">Dimension</td> 457 <td style="vertical-align: top;">16x16</td> 458 <td style="vertical-align: top;">Maximum size of the frame 459 icon that will be rendered on the title pane. If the icon 460 is bigger than this size, it will be scaled down. 461 </td> 462 </tr> 463 <tr> 464 <th scope="row" style="vertical-align: top;">InternalFrameTitlePane.titleAlignment<br> 465 </th> 466 <td style="vertical-align: top;">leading|trailing|center</td> 467 <td style="vertical-align: top;">leading</td> 468 <td style="vertical-align: top;">Alignment for the title. 469 With a left to right component orientation leading is left 470 and trailing right. With a right to left component 471 orientation leading is right and trailing left. 472 </td> 473 </tr> 474 </tbody> 475 </table> 476 <br> 477 <h2><a id="JList">JList</a></h2> 478 <p> JList's sets the name of the renderer to List.renderer. JList 479 supports the following properties: </p> 480 <table border="1"> 481 <caption>JList Specific Properties</caption> 482 <thead><tr> 483 <th scope="col">Property</th> 484 <th scope="col">Expected Type</th> 485 <th scope="col">Default Value</th> 486 <th scope="col">Description </th> 487 </tr> 488 </thead> <tbody> 489 <tr> 490 <th scope="row">List.rendererUseListColors</th> 491 <td>Boolean</td> 492 <td>true </td> 493 <td>If true the renderers state is not updated, and the text 494 colors come from JList's getSelectionBackground and 495 getSelectionForeground methods. If false, the renderer's state is 496 updated and the colors will instead come from the Style. </td> 497 </tr> 498 <tr> 499 <th scope="row">List.rendererUseUIBorder</th> 500 <td>Boolean</td> 501 <td>true </td> 502 <td>If true setBorder on the renderer will succeed regardless 503 of the border passed in, otherwise setBorder on the renderer will 504 only succeed if it is a Synth Border. </td> 505 </tr> 506 <tr> 507 <th scope="row">List.cellHeight</th> 508 <td>Integer</td> 509 <td>-1 </td> 510 <td>Cell height of the JList. Is this is -1, <code>setFixedCellHeight</code> 511 is not invoked. </td> 512 </tr> 513 </tbody> 514 </table> 515 <br> 516 <h2><a id="menuProperties">Menu Properties</a></h2> 517 <p> The Menu classes (JCheckBoxMenuItem, JMenu, JMenuItem, and 518 JRadioButtonMenuItem) all support the same set of properties and behave 519 similarly. Each component consists of two Regions: the region 520 specific to the component and Region.MENU_ITEM_ACCELERATOR. 521 MENU_ITEM_ACCELERATOR is used for painting the accelerator. Both Regions 522 paint text using the TEXT_FOREGROUND ColorType. The following set of 523 properties are supported: </p> 524 <table border="1"> 525 <caption>Menu classes common properties</caption> 526 <thead><tr> 527 <th scope="col">Property</th> 528 <th scope="col">Expected Type</th> 529 <th scope="col">Default Value</th> 530 <th scope="col">Description </th> 531 </tr> 532 </thead> <tbody> 533 <tr> 534 <th scope="row">prefix.acceleratorDelimiter</th> 535 <td>String</td> 536 <td>+ </td> 537 <td>String separator between the description of the modifiers 538 and the key, for example <code>Ctrl <acceleratorDelimiter> X</code>. 539 </td> 540 </tr> 541 <tr> 542 <th scope="row">prefix.arrowIcon</th> 543 <td>Icon</td> 544 <td>null </td> 545 <td>Icon drawn to the right of the text (or left when the 546 ComponentOrientation is right to left) of the text. This is 547 typically only defined for JMenu. </td> 548 </tr> 549 <tr> 550 <th scope="row">prefix.checkIcon</th> 551 <td>Icon</td> 552 <td>null </td> 553 <td>Icon drawn to the left of the text (or right when the 554 ComponentOrientation is right to left) of the text. This is 555 typically only defined for JCheckBoxMenuItem and JRadioButtonMenuItem 556 to provide the check or radio button. </td> 557 </tr> 558 <tr> 559 <th scope="row">prefix.margin</th> 560 <td>Insets</td> 561 <td>Empty Insets (0, 0, 0, 0) </td> 562 <td>Margin for the JMenuItem. Refer to the javadoc of 563 <code>javax.swing.AbstractButton#setMargin(java.awt.Insets)</code> for details 564 of how the margin is used. </td> 565 </tr> 566 <tr> 567 <th scope="row">prefix.textIconGap</th> 568 <td>Integer</td> 569 <td>4 </td> 570 <td>Padding between the icon and text. Refer to the javadoc for 571 <code>javax.swing.AbstractButton#setIconTextGap(int)</code> for details of how 572 this is used. </td> 573 </tr> 574 </tbody> 575 </table> 576 <p> <code>Prefix</code> is one of: CheckBoxMenuItem, Menu, MenuItem, or 577 RadioButtonMenuItem. </p> 578 <p> JMenu also supports the following properties: </p> 579 <table border="1"> 580 <caption>JMenu specific properties</caption> 581 <thead><tr> 582 <th scope="col">Property</th> 583 <th scope="col">Expected Type</th> 584 <th scope="col">Default Value</th> 585 <th scope="col">Description </th> 586 </tr> 587 </thead> <tbody> 588 <tr> 589 <th scope="row">Menu.delay</th> 590 <td>Integer</td> 591 <td>200 </td> 592 <td>Sets the delay before the menu appears. </td> 593 </tr> 594 <tr> 595 <th scope="row">Menu.shortcutKeys</th> 596 <td>int[]</td> 597 <td>KeyEvent.ALT_MASK </td> 598 <td>Array of the KeyEvent modifiers to use for shortcut keys. </td> 599 </tr> 600 </tbody> 601 </table> 602 <br> 603 <h2><a id="JOptionPane">JOptionPane</a></h2> 604 <p> JOptionPane is a composite component and may consist of numerous child 605 components, they are: OptionPane.button, OptionPane.label, 606 OptionPane.comboBox, OptionPane.scrollPane, OptionPane.list, 607 OptionPane.textField, OptionPane.iconLabel. </p> 608 <table border="1"> 609 <caption>JOptionPane Specific Properties</caption> 610 <thead><tr> 611 <th scope="col">Property</th> 612 <th scope="col">Expected Type</th> 613 <th scope="col">Default Value</th> 614 <th scope="col">Description </th> 615 </tr> 616 </thead> <tbody> 617 <tr> 618 <th scope="row">OptionPane.buttonAreaBorder</th> 619 <td>Border </td> 620 <td>null </td> 621 <td>Border around the button area. </td> 622 </tr> 623 <tr> 624 <th scope="row">OptionPane.buttonClickThreshhold</th> 625 <td>Integer </td> 626 <td>0 </td> 627 <td>Passed to the created buttons setMultiClickThreshhold. </td> 628 </tr> 629 <tr> 630 <th scope="row">OptionPane.buttonOrientation</th> 631 <td>Integer </td> 632 <td>SwingConstants.CENTER </td> 633 <td>How the buttons should be layed out, one of 634 SwingConstants.LEFT, SwingConstants.RIGHT or SwingConstants.CENTER 635 (this will be flipped when in a right to left locale). </td> 636 </tr> 637 <tr> 638 <th scope="row">OptionPane.buttonPadding</th> 639 <td>Integer </td> 640 <td>6 </td> 641 <td>Amount of space between buttons. </td> 642 </tr> 643 <tr> 644 <th scope="row">OptionPane.cancelIcon</th> 645 <td>Icon </td> 646 <td>null </td> 647 <td>Icon for the cancel button. </td> 648 </tr> 649 <tr> 650 <th scope="row">OptionPane.errorIcon</th> 651 <td>Icon </td> 652 <td>null </td> 653 <td>Icon used for ERROR_MESSAGE. </td> 654 </tr> 655 <tr> 656 <th scope="row">OptionPane.informationIcon</th> 657 <td>Icon </td> 658 <td>null </td> 659 <td>Icon used for INFORMATION_MESSAGE. </td> 660 </tr> 661 <tr> 662 <th scope="row">OptionPane.isYesLast</th> 663 <td>Boolean </td> 664 <td>false </td> 665 <td>If true the 'yes' button leads other buttons, otherwise 666 it follows the other buttons. </td> 667 </tr> 668 <tr> 669 <th scope="row">OptionPane.questionIcon</th> 670 <td>Icon </td> 671 <td>null </td> 672 <td>Icon used for error QUESTION_MESSAGE. </td> 673 </tr> 674 <tr> 675 <th scope="row">OptionPane.minimumSize</th> 676 <td>Dimension </td> 677 <td>262x90</td> 678 <td>Minimum size for the JOptionPane. </td> 679 </tr> 680 <tr> 681 <th scope="row">OptionPane.noIcon</th> 682 <td>Icon </td> 683 <td>null </td> 684 <td>Icon for the no button. </td> 685 </tr> 686 <tr> 687 <th scope="row">OptionPane.okIcon</th> 688 <td>Icon </td> 689 <td>null </td> 690 <td>Icon for the ok button. </td> 691 </tr> 692 <tr> 693 <th scope="row">OptionPane.sameSizeButtons</th> 694 <td>Boolean </td> 695 <td>true </td> 696 <td>Whether or not all the buttons should be the same size. </td> 697 </tr> 698 <tr> 699 <th scope="row">OptionPane.separatorPadding</th> 700 <td>Integer </td> 701 <td>6</td> 702 <td>Amount of padding between the message area and separator. </td> 703 </tr> 704 <tr> 705 <th scope="row">OptionPane.yesIcon</th> 706 <td>Icon </td> 707 <td>null </td> 708 <td>Icon for the yes button. </td> 709 </tr> 710 <tr> 711 <th scope="row">OptionPane.warningIcon</th> 712 <td>Icon </td> 713 <td>null </td> 714 <td>Icon used for error WARNING_MESSAGE </td> 715 </tr> 716 </tbody> 717 </table> 718 <br> 719 <h2><a id="JProgressBar"></a>JProgressBar<br> 720 </h2> 721 <table cellpadding="2" cellspacing="2" border="1" style="text-align: left; width: 100%;"> 722 <caption>JProgressBar Specific Properties</caption> 723 <tbody> 724 <tr> 725 <th scope="col" style="vertical-align: top; text-align: center;">Property</th> 726 <th scope="col" style="vertical-align: top; text-align: center;">Expected Type<br> 727 </th> 728 <th scope="col" style="vertical-align: top; text-align: center;">Default Value<br> 729 </th> 730 <th scope="col" style="vertical-align: top; text-align: center;">Description</th> 731 </tr> 732 <tr> 733 <th scope="row" style="vertical-align: top;">ProgressBar.repaintInterval<br> 734 </th> 735 <td style="vertical-align: top;">Integer<br> 736 </td> 737 <td style="vertical-align: top;">50<br> 738 </td> 739 <td style="vertical-align: top;">Number of milliseconds between 740 repaints for indeterminate progress bars.<br> 741 </td> 742 </tr> 743 <tr> 744 <th scope="row" style="vertical-align: top;">ProgressBar.cycleTime<br> 745 </th> 746 <td style="vertical-align: top;">Integer<br> 747 </td> 748 <td style="vertical-align: top;">3000<br> 749 </td> 750 <td style="vertical-align: top;">Number of milliseconds used to 751 determine how far to move<br> 752 the bouncing box per frame when the progress bar is indeterminate.<br> 753 </td> 754 </tr> 755 </tbody> 756 </table> 757 <h2><a id="JRadioButton">JRadioButton</a></h2> 758 <p> JRadioButton paints text using the TEXT_FOREGROUND ColorType. In 759 addition to the <a href="#buttonProperties">Button properties</a>, 760 JRadioButton supports the following property: </p> 761 <table border="1"> 762 <caption>JRadioButton Specific Properties</caption> 763 <thead><tr> 764 <th scope="col">Property</th> 765 <th scope="col">Expected Type</th> 766 <th scope="col">Default Value</th> 767 <th scope="col">Description </th> 768 </tr> 769 </thead> <tbody> 770 <tr> 771 <th scope="row">RadioButton.icon</th> 772 <td>Icon</td> 773 <td>null </td> 774 <td>Icon used to render the radio indicator. </td> 775 </tr> 776 </tbody> 777 </table> 778 <br> 779 <h2><a id="JScrollBar">JScrollBar</a></h2> 780 <p> JScrollBar is a composite component that consists of the following 781 child Components: </p> 782 <table border="1"> 783 <caption>JScrollBar child components</caption> 784 <thead><tr> 785 <th scope="col">Name</th> 786 <th scope="col">Type</th> 787 <th scope="col">Description </th> 788 </tr> 789 </thead> <tbody> 790 <tr> 791 <th scope="row">ScrollBar.button</th> 792 <td>SynthArrowButton </td> 793 <td>Identifies the increment/decrement buttons. </td> 794 </tr> 795 </tbody> 796 </table> 797 798 <p> </p> 799 <table border="1"> 800 <caption>JScrollBar Specific Properties</caption> 801 <thead><tr> 802 <th scope="col">Property</th> 803 <th scope="col">Expected Type</th> 804 <th scope="col">Default Value</th> 805 <th scope="col">Description </th> 806 </tr> 807 </thead> <tbody> 808 <tr> 809 <th scope="row">ScrollBar.allowsAbsolutePositioning</th> 810 <td>Boolean </td> 811 <td>false</td> 812 <td>If true, middle mouse click in the track will set the 813 position of the track to where the mouse is. </td> 814 </tr> 815 <tr> 816 <th scope="row">ScrollBar.maximumThumbSize</th> 817 <td>Dimension</td> 818 <td>4096x4096 </td> 819 <td>Maximum thumb size. </td> 820 </tr> 821 <tr> 822 <th scope="row">ScrollBar.minimumThumbSize</th> 823 <td>Dimension</td> 824 <td>Derived from ScrollBar.thumbHeight</td> 825 <td>The minimum thumb size. If this is not specified the 826 minimum thumb size is ScrollBar.thumbHeight plus the insets 827 of the scrollbar along the opposite axis of the scrollbar 828 and 7 along the other axis. For example, if you have not 829 specified Insets for a scrollbar, and the orientation of 830 the scrollbar is vertical, than the minimum thumb 831 size width is ScrollBar.thumbHeight with a height of 7.</td> 832 </tr> 833 <tr> 834 <th scope="row">ScrollBar.squareButtons</th> 835 <td>Boolean </td> 836 <td>false</td> 837 <td>If true, the width and height of the scrollbar buttons 838 will be made equal. </td> 839 </tr> 840 <tr> 841 <th scope="row">ScrollBar.thumbHeight</th> 842 <td>Integer</td> 843 <td>14 </td> 844 <td>The preferred height, when the orientation of the 845 scrollbar is horizontal, or preferred width when the 846 orientation of the scrollbar is vertical.</td> 847 </tr> 848 </tbody> 849 </table> 850 <br> 851 <h2><a id="Separator">Separators</a></h2> 852 <p> All of the separator classes, JSeparator, JPopupMenu.Separator and 853 JToolBar.Separator use the same property: </p> 854 <table border="1"> 855 <caption>Separator classes common properties</caption> 856 <thead><tr> 857 <th scope="col">Property</th> 858 <th scope="col">Expected Type</th> 859 <th scope="col">Default Value</th> 860 <th scope="col">Description </th> 861 </tr> 862 </thead> <tbody> 863 <tr> 864 <th scope="row">Separator.thickness</th> 865 <td>Integer</td> 866 <td>2 </td> 867 <td>Preferred width, for vertically aligned separators, or 868 preferred height for horizontally aligned separators. The resulting 869 preferred size will include the Insets. </td> 870 </tr> 871 </tbody> 872 </table> 873 <p> JToolBar.Separator also supports the following property: </p> 874 <table border="1"> 875 <caption>JToolBar.Separator specific properties</caption> 876 <thead><tr> 877 <th scope="col">Property</th> 878 <th scope="col">Expected Type</th> 879 <th scope="col">Default Value</th> 880 <th scope="col">Description </th> 881 </tr> 882 </thead> <tbody> 883 <tr> 884 <th scope="row">ToolBar.separatorSize</th> 885 <td>Dimension</td> 886 <td>null </td> 887 <td>The value of this is passed to the 888 <code>javax.swing.JToolBar$Separator#setSeparatorSize(java.awt.Dimension)</code> 889 method. If unspecified <code>setSeparatorSize</code> is not invoked. 890 </td> 891 </tr> 892 </tbody> 893 </table> 894 <br> 895 <h2><a id="JScrollPane">JScrollPane</a></h2> 896 <p> 897 JScrollPane is unique in that it provides a method for setting 898 the Border around the JViewport with JViewport throwing an 899 IllegalArgumentException from <code>setBorder</code>. To 900 accommodate this a special border is installed on the 901 <code>JScrollPane</code> that uses the 902 insets from the key 903 <code>ScrollPane.viewportBorderInsets</code>. The 904 <code>SynthPainter</code> method 905 <code>paintViewportBorder</code> is called to paint the 906 <code>Viewport</code>s border. 907 </p> 908 <table border="1"> 909 <caption>JScrollPane Specific Properties</caption> 910 <thead><tr> 911 <th scope="col">Property</th> 912 <th scope="col">Expected Type</th> 913 <th scope="col">Default Value</th> 914 <th scope="col">Description </th> 915 </tr> 916 </thead> <tbody> 917 <tr> 918 <th scope="row">ScrollPane.viewportBorderInsets</th> 919 <td>Insets</td> 920 <td>null </td> 921 <td>Insets for the viewport Border. </td> 922 </tr> 923 </tbody> 924 </table> 925 <br> 926 <h2><a id="JSplitPane">JSplitPane</a></h2> 927 <p> JSplitPane is a composite component that will contain a divider and 928 potentially two buttons, if setOneTouchExpandable(true) has been 929 invoked. The two buttons will be named: 930 SplitPaneDivider.leftOneTouchButton and 931 SplitPaneDivider.rightOneTouchButton. </p> 932 <table border="1"> 933 <caption>JSplitPane Specific Properties</caption> 934 <thead><tr> 935 <th scope="col">Property</th> 936 <th scope="col">Expected Type</th> 937 <th scope="col">Default Value</th> 938 <th scope="col">Description </th> 939 </tr> 940 </thead> <tbody> 941 <tr> 942 <th scope="row">SplitPane.centerOneTouchButtons</th> 943 <td>Boolean</td> 944 <td>true </td> 945 <td>If true, the one touch buttons are centered on the divider. </td> 946 </tr> 947 <tr> 948 <th scope="row">SplitPane.oneTouchButtonOffset</th> 949 <td>Integer</td> 950 <td>2 </td> 951 <td>Distance between the one touch buttons. </td> 952 </tr> 953 <tr> 954 <th scope="row">SplitPane.oneTouchButtonSize</th> 955 <td>Integer</td> 956 <td>6 </td> 957 <td>Size to make the one touch buttons. </td> 958 </tr> 959 <tr> 960 <th scope="row">SplitPane.oneTouchExpandable</th> 961 <td>Boolean</td> 962 <td>null </td> 963 <td>If non null, the value of this is passed to 964 setOneTouchExpandable. </td> 965 </tr> 966 <tr> 967 <th scope="row">SplitPane.size</th> 968 <td>Integer</td> 969 <td>6 </td> 970 <td>Size of the divider </td> 971 </tr> 972 </tbody> 973 </table> 974 <br> 975 <h2><a id="JSlider"></a>JSlider</h2> 976 <table cellpadding="2" cellspacing="2" border="1" style="text-align: left; width: 100%;"> 977 <caption>JSlider Specific Properties</caption> 978 <tbody> 979 <tr> 980 <th scope="col" style="vertical-align: top; text-align: center;">Property<br> 981 </th> 982 <th scope="col" style="vertical-align: top; text-align: center;">Expected Type<br> 983 </th> 984 <th scope="col" style="vertical-align: top; text-align: center;">Default Value<br> 985 </th> 986 <th scope="col" style="vertical-align: top; text-align: center;">Description<br> 987 </th> 988 </tr> 989 <tr> 990 <th scope="row" style="vertical-align: top;">Slider.thumbWidth<br> 991 </th> 992 <td style="vertical-align: top;">Integer<br> 993 </td> 994 <td style="vertical-align: top;">30<br> 995 </td> 996 <td style="vertical-align: top;">Width of the slider thumb<br> 997 </td> 998 </tr> 999 <tr> 1000 <th scope="row" style="vertical-align: top;">Slider.thumbHeight<br> 1001 </th> 1002 <td style="vertical-align: top;">Integer<br> 1003 </td> 1004 <td style="vertical-align: top;">14<br> 1005 </td> 1006 <td style="vertical-align: top;">Height of the slider thumb<br> 1007 </td> 1008 </tr> 1009 <tr> 1010 <th scope="row" style="vertical-align: top;">Slider.trackBorder<br> 1011 </th> 1012 <td style="vertical-align: top;">Integer<br> 1013 </td> 1014 <td style="vertical-align: top;">1<br> 1015 </td> 1016 <td style="vertical-align: top;">Width of the track border<br> 1017 </td> 1018 </tr> 1019 <tr> 1020 <th scope="row" style="vertical-align: top;">Slider.paintValue<br> 1021 </th> 1022 <td style="vertical-align: top;">Boolean<br> 1023 </td> 1024 <td style="vertical-align: top;">true<br> 1025 </td> 1026 <td style="vertical-align: top;">Whether or not to paint the 1027 current value<br> 1028 of the slider.<br> 1029 </td> 1030 </tr> 1031 </tbody> 1032 </table> 1033 <br> 1034 <h2><a id="JTabbedPane"></a>JTabbedPane</h2> 1035 <table cellpadding="2" cellspacing="2" border="1" style="text-align: left; width: 100%;"> 1036 <caption>JTabbedPane Specific Properties</caption> 1037 <tbody> 1038 <tr> 1039 <th scope="col" style="vertical-align: top; text-align: center;">Property</th> 1040 <th scope="col" style="vertical-align: top; text-align: center;">Expected Type<br> 1041 </th> 1042 <th scope="col" style="vertical-align: top; text-align: center;">Default Value<br> 1043 </th> 1044 <th scope="col" style="vertical-align: top; text-align: center;">Description</th> 1045 </tr> 1046 <tr> 1047 <th scope="row" style="vertical-align: top;">TabbedPane.tabRunOverlay<br> 1048 </th> 1049 <td style="vertical-align: top;">Integer<br> 1050 </td> 1051 <td style="vertical-align: top;">0<br> 1052 </td> 1053 <td style="vertical-align: top;">Number of pixels to overlap 1054 tabs when there is more than one row. <br> 1055 </td> 1056 </tr> 1057 <tr> 1058 <th scope="row" style="vertical-align: top;">TabbedPane.textIconGap<br> 1059 </th> 1060 <td style="vertical-align: top;">Integer<br> 1061 </td> 1062 <td style="vertical-align: top;">0<br> 1063 </td> 1064 <td style="vertical-align: top;">Padding added between the icon 1065 and text on a tab. If there is no text or icon this value 1066 is not used. 1067 </td> 1068 </tr> 1069 <tr> 1070 <th scope="row" style="vertical-align: top;">TabbedPane.selectedTabPadInsets<br> 1071 </th> 1072 <td style="vertical-align: top;">Insets<br> 1073 </td> 1074 <td style="vertical-align: top;">Empty Insets (0, 0, 0, 0)<br> 1075 </td> 1076 <td style="vertical-align: top;">Extra insets added to the 1077 selected tab.<br> 1078 </td> 1079 </tr> 1080 <tr> 1081 <th scope="row" style="vertical-align: top;">TabbedPane.selectionFollowsFocus<br> 1082 </th> 1083 <td style="vertical-align: top;">Boolean<br> 1084 </td> 1085 <td style="vertical-align: top;">true<br> 1086 </td> 1087 <td style="vertical-align: top;">If true the selection of the 1088 tabbed pane changes as the user navigates the tabs with a 1089 mouse.<br> 1090 </td> 1091 </tr> 1092 </tbody> 1093 </table> 1094 <br> 1095 <h2><a id="JTable">JTable</a></h2> 1096 <p> JTable sets the name of the renderer to Table.cellRenderer. 1097 JTable supports the following properties: </p> 1098 <table border="1"> 1099 <caption>JTable Specific Properties</caption> 1100 <thead><tr> 1101 <th scope="col">Property</th> 1102 <th scope="col">Expected Type</th> 1103 <th scope="col">Default Value</th> 1104 <th scope="col">Description </th> 1105 </tr> 1106 </thead> <tbody> 1107 <tr> 1108 <th scope="row">Table.gridColor</th> 1109 <td>Color</td> 1110 <td>null </td> 1111 <td>Color used for the grid. If null the foreground from the 1112 style is used. </td> 1113 </tr> 1114 <tr> 1115 <th scope="row">Table.rendererUseTableColors</th> 1116 <td>Boolean</td> 1117 <td>true </td> 1118 <td>If true the renderers state is not updated, and the text 1119 colors come from JTable's getSelectionBackground and 1120 getSelectionForeground methods. If false, the renderer's state is 1121 updated and the colors will instead come from the Style. </td> 1122 </tr> 1123 <tr> 1124 <th scope="row">Table.rendererUseUIBorder</th> 1125 <td>Boolean</td> 1126 <td>true </td> 1127 <td>If true setBorder on the renderer will succeed 1128 regardless of the border passed in, otherwise setBorder on the 1129 renderer will only succeed if it is a Synth Border. </td> 1130 </tr> 1131 <tr> 1132 <th scope="row">Table.rowHeight</th> 1133 <td>Integer</td> 1134 <td>-1 </td> 1135 <td>If not -1 setRowHeight is invoked on the JTable. </td> 1136 </tr> 1137 </tbody> 1138 </table> 1139 <br> 1140 <h2><a id="JTree">JTree</a></h2> 1141 <p> JTree sets the name of the renderer to Tree.renderer, the name of 1142 the editor is Tree.cellEditor.</p> 1143 <table border="1"> 1144 <caption>JTree Specific Properties</caption> 1145 <thead><tr> 1146 <th scope="col">Property</th> 1147 <th scope="col">Expected Type</th> 1148 <th scope="col">Default Value</th> 1149 <th scope="col">Description </th> 1150 </tr> 1151 </thead> <tbody> 1152 <tr> 1153 <th scope="row">Tree.collapsedIcon</th> 1154 <td>Icon</td> 1155 <td>null </td> 1156 <td>Icon to use when a node is collapsed. </td> 1157 </tr> 1158 <tr> 1159 <th scope="row">Tree.drawHorizontalLines</th> 1160 <td>Boolean</td> 1161 <td>true </td> 1162 <td>If true nodes have a horizontal connecting them to the 1163 leading edge of their parent. </td> 1164 </tr> 1165 <tr> 1166 <th scope="row">Tree.drawVerticalLines</th> 1167 <td>Boolean</td> 1168 <td>true </td> 1169 <td>If true a vertical line is drawn down from expanded nodes. </td> 1170 </tr> 1171 <tr> 1172 <th scope="row">Tree.expandedIcon</th> 1173 <td>Icon</td> 1174 <td>null </td> 1175 <td>Icon to use when a node has been expanded. </td> 1176 </tr> 1177 <tr> 1178 <th scope="row">Tree.leftChildIndent</th> 1179 <td>Integer</td> 1180 <td>0 </td> 1181 <td>This plus Tree.rightChildIndent account for the total 1182 space, along the y axis, to offset nodes from their parent. </td> 1183 </tr> 1184 <tr> 1185 <th scope="row">Tree.rightChildIndent</th> 1186 <td>Integer</td> 1187 <td>0 </td> 1188 <td>This plus Tree.leftChildIndent account for the total 1189 space, along the y axis, to offset nodes from their parent. </td> 1190 </tr> 1191 <tr> 1192 <th scope="row">Tree.rowHeight</th> 1193 <td>Integer</td> 1194 <td>-1 </td> 1195 <td>Row height for the Tree.</td> 1196 </tr> 1197 <tr> 1198 <th scope="row">Tree.scrollsHorizontallyAndVertically</th> 1199 <td>Boolean</td> 1200 <td>false </td> 1201 <td>If false and scrolling needs to happen to accommodate cells 1202 it will only happen along the vertical axis, if true, scrolling 1203 may happen along both the horizontal and vertical axis. </td> 1204 </tr> 1205 <tr> 1206 <th scope="row">Tree.scrollsOnExpand</th> 1207 <td>Boolean</td> 1208 <td>true </td> 1209 <td>Whether or not the JTree should scroll when a node is 1210 expanded. </td> 1211 </tr> 1212 <tr> 1213 <th scope="row">Tree.linesStyle</th> 1214 <td>String</td> 1215 <td> </td> 1216 <td>The styles of the lines in the tree. Synth supports solid lines 1217 (empty value) and dashed lines ("dashed" value). It is possible to add new 1218 styles by creating a new <a href="../SynthGraphicsUtils.html">SynthGraphicsUtils</a> 1219 and <a href="synthFileFormat.html#e.graphicsUtils">binding it</a> to the tree.</td> 1220 </tr> 1221 </tbody> 1222 </table> 1223 <h2><a id="JToggleButton">JToggleButton</a></h2> 1224 <p> JToggleButton paints text using the TEXT_FOREGROUND ColorType. In 1225 addition to the <a href="#buttonProperties">Button properties</a>, 1226 JToggleButton supports the following property: </p> 1227 <table border="1"> 1228 <caption>JToggleButton Specific Properties</caption> 1229 <thead><tr> 1230 <th scope="col">Property</th> 1231 <th scope="col">Expected Type</th> 1232 <th scope="col">Default Value</th> 1233 <th scope="col">Description </th> 1234 </tr> 1235 </thead> <tbody> 1236 <tr> 1237 <th scope="row">ToggleButton.icon</th> 1238 <td>Icon</td> 1239 <td>null </td> 1240 <td>Icon used to render the radio indicator. </td> 1241 </tr> 1242 </tbody> 1243 </table> 1244 <br> 1245 <h2><a id="buttonProperties">Button Properties</a></h2> 1246 <p> Each of the Button classes (JButton, JCheckBox, JRadioButton, 1247 JToggleButton and SynthArrowButton) support a similar set of properties. 1248 These properties are: </p> 1249 <table border="1"> 1250 <caption>Button classes common properties</caption> 1251 <thead><tr> 1252 <th scope="col">Property</th> 1253 <th scope="col">Expected Type</th> 1254 <th scope="col">Default Value</th> 1255 <th scope="col">Description </th> 1256 </tr> 1257 </thead> <tbody> 1258 <tr> 1259 <th scope="row">prefix.contentAreaFilled</th> 1260 <td>Integer</td> 1261 <td>true </td> 1262 <td>Refer to the javadoc of 1263 <code>javax.swing.AbstractButton#contentAreaFilled(boolean)</code> 1264 for details of how this is used. It is up to the Painter to properly honor 1265 this property. 1266 </td> 1267 </tr> 1268 <tr> 1269 <th scope="row">prefix.iconTextGap</th> 1270 <td>Integer</td> 1271 <td>If unspecified, JButton.setIconTextGap is not invoked.</td> 1272 <td>Padding between the icon and text. Refer to the javadoc of 1273 <code>javax.swing.AbstractButton#setIconTextGap(int)</code> 1274 for details of how this is used. 1275 </td> 1276 </tr> 1277 <tr> 1278 <th scope="row">prefix.margin</th> 1279 <td>Insets</td> 1280 <td>Empty Insets (0, 0, 0, 0) </td> 1281 <td>Margin for the JButton. Refer to the javadoc of 1282 <code>javax.swing.AbstractButton#setMargin(java.awt.Insets)</code> for 1283 details of how the margin is used. 1284 </td> 1285 </tr> 1286 <tr> 1287 <th scope="row">prefix.textShiftOffset</th> 1288 <td>Integer</td> 1289 <td>0 </td> 1290 <td>Amount to shift the text and icon, along the x and y axis, 1291 from where it would normally be layed out. This is only used when 1292 the button is in a pressed state and does not have a pressed icon. </td> 1293 </tr> 1294 </tbody> 1295 </table> 1296 <p> <code>Prefix</code> is one of: Button, CheckBox, RadioButton or 1297 JToggleButton.<br> 1298 </p> 1299 <h2><a id="textProperties"></a>Text Properties<br> 1300 </h2> 1301 <table cellpadding="2" cellspacing="2" border="1" style="text-align: left; width: 100%;"> 1302 <tbody> 1303 <tr> 1304 <th scope="col" style="vertical-align: top; text-align: center;">Property</th> 1305 <th scope="col" style="vertical-align: top; text-align: center;">Expected Type<br> 1306 </th> 1307 <th scope="col" style="vertical-align: top; text-align: center;">Default Value<br> 1308 </th> 1309 <th scope="col" style="vertical-align: top; text-align: center;">Description<br> 1310 </th> 1311 </tr> 1312 <tr> 1313 <th scope="row" style="vertical-align: top;">prefix.caretForeground<br> 1314 </th> 1315 <td style="vertical-align: top;">Color<br> 1316 </td> 1317 <td style="vertical-align: top;">#000000</td> 1318 <td style="vertical-align: top;">Color of the caret.<br> 1319 </td> 1320 </tr> 1321 <tr> 1322 <th scope="row" style="vertical-align: top;">prefix.margin<br> 1323 </th> 1324 <td style="vertical-align: top;">Insets</td> 1325 <td style="vertical-align: top;">Empty Insets (0, 0, 0, 0),<br> 1326 EditorPane and TextPane (3, 3, 3, 3)<br> 1327 </td> 1328 <td style="vertical-align: top;">Margins of the text component.<br> 1329 </td> 1330 </tr> 1331 <tr> 1332 <th scope="row" style="vertical-align: top;">prefix.caretBlinkRate<br> 1333 </th> 1334 <td style="vertical-align: top;">Integer<br> 1335 </td> 1336 <td style="vertical-align: top;">500<br> 1337 </td> 1338 <td style="vertical-align: top;">Number of milliseconds defining 1339 the blink rate fo the caret.<br> 1340 </td> 1341 </tr> 1342 </tbody> 1343 </table> 1344 <p><code>Prefix</code> is one of: EditorPane, FormattedTextField, 1345 PasswordField, TextArea, TextField or TextPane.<br> 1346 </p> 1347 </main> 1348 </body> 1349 </html>