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