├── .gitignore ├── README.md └── src ├── main ├── resources │ └── org │ │ └── jdesktop │ │ └── swingx │ │ ├── plaf │ │ ├── basic │ │ │ └── resources │ │ │ │ ├── ErrorPane_en.properties │ │ │ │ ├── LoginPane_en.properties │ │ │ │ ├── DatePicker_en.properties │ │ │ │ ├── SearchField_en.properties │ │ │ │ ├── TipOfTheDay_en.properties │ │ │ │ ├── DatePicker_es.properties │ │ │ │ ├── clear.gif │ │ │ │ ├── error16.png │ │ │ │ ├── search.gif │ │ │ │ ├── month-up.png │ │ │ │ ├── month-down.png │ │ │ │ ├── search_popup.gif │ │ │ │ ├── TipOfTheDay24.gif │ │ │ │ ├── clear_pressed.gif │ │ │ │ ├── clear_rollover.gif │ │ │ │ ├── ErrorPane_fr.properties │ │ │ │ ├── SearchField_de.properties │ │ │ │ ├── SearchField.properties │ │ │ │ ├── TipOfTheDay.properties │ │ │ │ ├── DatePicker_de.properties │ │ │ │ ├── DatePicker_en_US.properties │ │ │ │ ├── TipOfTheDay_sv.properties │ │ │ │ ├── DatePicker_it.properties │ │ │ │ ├── DatePicker_pl_PL.properties │ │ │ │ ├── DatePicker_pt_BR.properties │ │ │ │ ├── DatePicker_sv.properties │ │ │ │ ├── TipOfTheDay_nl.properties │ │ │ │ ├── DatePicker_nl.properties │ │ │ │ ├── TipOfTheDay_pl.properties │ │ │ │ ├── TipOfTheDay_pt_BR.properties │ │ │ │ ├── DatePicker_fr.properties │ │ │ │ ├── TipOfTheDay_de.properties │ │ │ │ ├── TipOfTheDay_es.properties │ │ │ │ ├── TipOfTheDay_fr.properties │ │ │ │ ├── TipOfTheDay_it.properties │ │ │ │ ├── DatePicker_en_GB.properties │ │ │ │ ├── DatePicker_cs.properties │ │ │ │ ├── ErrorPane.properties │ │ │ │ ├── ErrorPane_da.properties │ │ │ │ ├── ErrorPane_nl.properties │ │ │ │ ├── ErrorPane_it.properties │ │ │ │ ├── ErrorPane_sv.properties │ │ │ │ ├── ErrorPane_de.properties │ │ │ │ ├── TipOfTheDay_cs.properties │ │ │ │ ├── ErrorPane_cs.properties │ │ │ │ ├── ErrorPane_pl.properties │ │ │ │ ├── ErrorPane_pt_BR.properties │ │ │ │ ├── ErrorPane_es.properties │ │ │ │ ├── DatePicker.properties │ │ │ │ ├── DatePicker_da.properties │ │ │ │ ├── LoginPane.properties │ │ │ │ ├── LoginPane_it.properties │ │ │ │ ├── LoginPane_pt_BR.properties │ │ │ │ ├── LoginPane_nl.properties │ │ │ │ ├── LoginPane_fr.properties │ │ │ │ ├── LoginPane_de.properties │ │ │ │ ├── LoginPane_pl.properties │ │ │ │ ├── LoginPane_sv.properties │ │ │ │ ├── LoginPane_es.properties │ │ │ │ └── LoginPane_cs.properties │ │ ├── macosx │ │ │ └── resources │ │ │ │ ├── ErrorPane_es.properties │ │ │ │ ├── clear.png │ │ │ │ ├── search.png │ │ │ │ ├── combo-osx.png │ │ │ │ ├── clear_pressed.png │ │ │ │ ├── search_popup.png │ │ │ │ ├── clear_rollover.png │ │ │ │ ├── ErrorPane_fr.properties │ │ │ │ ├── ErrorPane.properties │ │ │ │ ├── ErrorPane_da.properties │ │ │ │ ├── ErrorPane_de.properties │ │ │ │ ├── ErrorPane_it.properties │ │ │ │ ├── ErrorPane_cs.properties │ │ │ │ ├── ErrorPane_nl.properties │ │ │ │ ├── ErrorPane_sv.properties │ │ │ │ └── ErrorPane_pt_BR.properties │ │ ├── windows │ │ │ └── resources │ │ │ │ ├── TipOfTheDay.properties │ │ │ │ ├── TipOfTheDay_nl.properties │ │ │ │ ├── TipOfTheDay_de.properties │ │ │ │ ├── TipOfTheDay_pt_BR.properties │ │ │ │ ├── TipOfTheDay_es.properties │ │ │ │ ├── TipOfTheDay_pl.properties │ │ │ │ ├── TipOfTheDay_fr.properties │ │ │ │ ├── TipOfTheDay_it.properties │ │ │ │ ├── clear.gif │ │ │ │ ├── search.gif │ │ │ │ ├── combo-w2k.png │ │ │ │ ├── combo-xp.png │ │ │ │ ├── search_popup.gif │ │ │ │ ├── tipoftheday.png │ │ │ │ ├── clear_pressed.gif │ │ │ │ ├── clear_rollover.gif │ │ │ │ ├── search_pressed.gif │ │ │ │ ├── search_rollover.gif │ │ │ │ ├── statusbar-left.png │ │ │ │ ├── statusbar-right.png │ │ │ │ ├── statusbar-middle.png │ │ │ │ ├── search_popup_pressed.gif │ │ │ │ ├── TipOfTheDay_sv.properties │ │ │ │ ├── search_popup_rollover.gif │ │ │ │ ├── silver-statusbar-left.png │ │ │ │ ├── silver-statusbar-right.png │ │ │ │ ├── silver-statusbar-middle.png │ │ │ │ └── TipOfTheDay_cs.properties │ │ └── linux │ │ │ └── resources │ │ │ └── combo-gtk.png │ │ └── color │ │ ├── mag.png │ │ └── colorwell.png └── java │ └── org │ └── jdesktop │ └── swingx │ ├── renderer │ ├── IconAware.java │ ├── package-info.java │ ├── BooleanValue.java │ └── PainterAware.java │ ├── tree │ └── package-info.java │ ├── plaf │ ├── misc │ │ └── package-info.java │ ├── HeaderUI.java │ ├── basic │ │ ├── package-info.java │ │ └── CalendarState.java │ ├── MultiThumbSliderUI.java │ ├── macosx │ │ └── package-info.java │ ├── metal │ │ └── package-info.java │ ├── nimbus │ │ └── package-info.java │ ├── windows │ │ └── package-info.java │ ├── StatusBarUI.java │ ├── TaskPaneContainerUI.java │ ├── LoginPaneUI.java │ ├── PromptTextAreaUI.java │ ├── MultiThumbSliderAddon.java │ ├── TaskPaneUI.java │ ├── BusyLabelUI.java │ ├── synth │ │ └── SynthUI.java │ ├── TipOfTheDayUI.java │ ├── ColumnControlButtonAddon.java │ ├── TitledPanelUI.java │ └── HyperlinkAddon.java │ ├── border │ └── package-info.java │ ├── auth │ ├── package-info.java │ ├── LoginAdapter.java │ ├── LoginEvent.java │ └── UserNameStore.java │ ├── error │ ├── package-info.java │ ├── ErrorListener.java │ ├── ErrorEvent.java │ └── ErrorLevel.java │ ├── combobox │ ├── package-info.java │ └── ListModelComboBoxWrapper.java │ ├── multisplitpane │ ├── package-info.java │ └── DefaultSplitPaneModel.java │ ├── color │ └── package-info.java │ ├── multislider │ ├── package-info.java │ ├── TrackRenderer.java │ ├── ThumbListener.java │ ├── ThumbRenderer.java │ ├── ThumbDataListener.java │ ├── Thumb.java │ ├── ThumbDataEvent.java │ └── MultiThumbModel.java │ ├── calendar │ └── package-info.java │ ├── tips │ ├── package-info.java │ ├── DefaultTip.java │ └── TipOfTheDayModel.java │ ├── event │ ├── DateSelectionListener.java │ └── package-info.java │ ├── icon │ ├── package-info.java │ └── EmptyIcon.java │ ├── treetable │ ├── package-info.java │ └── TreeTableModelProvider.java │ ├── table │ └── package-info.java │ ├── AbstractLayoutManager.java │ ├── search │ └── PatternMatcher.java │ ├── decorator │ └── package-info.java │ ├── prompt │ └── BuddyButton.java │ ├── rollover │ ├── TableRolloverProducer.java │ ├── RolloverRenderer.java │ └── ListRolloverProducer.java │ ├── AlphaPaintable.java │ ├── BackgroundPaintable.java │ └── sort │ └── StringValueProvider.java └── test ├── resources └── org │ └── jdesktop │ └── swingx │ ├── header_jnet_new.jpg │ └── resources │ ├── bugdata.txt │ ├── images │ ├── moon.jpg │ ├── 500by500.png │ ├── wellLeft.gif │ ├── wellTop.gif │ ├── green-orb.png │ ├── kleopatra.jpg │ ├── wellBottom.gif │ ├── wellRight.gif │ ├── wellTopLeft.gif │ ├── eclipse_win2k.png │ ├── wellTopRight.gif │ ├── explorer_win2k.png │ ├── wellBottomLeft.gif │ ├── wellBottomRight.gif │ ├── thunderbird_win2k.png │ ├── eclipse_win2k_empty.png │ ├── eclipse_win2k_narrow.png │ ├── explorer_win2k_narrow.png │ └── thunderbird_win2k_narrow.png │ ├── stringdata.csv │ ├── stringdata2.txt │ └── test.html └── java └── org └── jdesktop ├── swingx ├── renderer │ ├── checkBoxBackground.png │ ├── StringValuesIssues.java │ └── IconValuesTest.java ├── decorator │ ├── HighlightPredicateIssues.java │ └── TableColumnExtAsHighlighterClientIssues.java ├── resources │ ├── swingx.java │ ├── swingx_de.java │ ├── swingx_fr.java │ ├── swingx_fr_CA.java │ └── swingx_pt_BR.java ├── ScrollableSizeHintTest.java ├── test │ ├── CustomMonthViewUI.java │ └── TreeTableUtils.java ├── plaf │ ├── PromptTextAreaUITest.java │ ├── PromptTextFieldUITest.java │ ├── basic │ │ └── BasicSearchFieldUITest.java │ └── TextUIWrapperTest.java ├── table │ └── ColumnControlButtonIssues.java ├── treetable │ └── TreeTableModelIssues.java ├── JXTaskPaneContainerIssues.java ├── UIDefaultsResourceBundleCheck.java ├── JXStatusBarTest.java ├── combobox │ └── EnumComboBoxModelVisualCheck.java ├── JXEditorPaneIssues.java ├── JXSearchFieldVisualCheck.java ├── JXImageViewTest.java └── sort │ └── SortControllerIssues.java └── test ├── PropertyReport.java ├── TreeSelectionReport.java ├── AllReportsTest.java ├── ChangeReport.java └── ActionReport.java /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | target/ 3 | swingx-core.iml -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | swingx-core 2 | =========== 3 | 4 | Fork of swingx-core 1.6.5 5 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/ErrorPane_en.properties: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/LoginPane_en.properties: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/DatePicker_en.properties: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/SearchField_en.properties: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/TipOfTheDay_en.properties: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/macosx/resources/ErrorPane_es.properties: -------------------------------------------------------------------------------- 1 | # 2 | # JXErrorPanel properties 3 | # 4 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/color/mag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/color/mag.png -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/windows/resources/TipOfTheDay.properties: -------------------------------------------------------------------------------- 1 | TipOfTheDay.previousTipText=Previous Tip 2 | TipOfTheDay.nextTipText=Next Tip 3 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/windows/resources/TipOfTheDay_nl.properties: -------------------------------------------------------------------------------- 1 | TipOfTheDay.previousTipText=Vorige Tip 2 | TipOfTheDay.nextTipText=Volgende Tip 3 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/color/colorwell.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/color/colorwell.png -------------------------------------------------------------------------------- /src/test/resources/org/jdesktop/swingx/header_jnet_new.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/test/resources/org/jdesktop/swingx/header_jnet_new.jpg -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/windows/resources/TipOfTheDay_de.properties: -------------------------------------------------------------------------------- 1 | TipOfTheDay.previousTipText=Vorheriger Tipp 2 | TipOfTheDay.nextTipText=N\u00e4chster Tipp 3 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/windows/resources/TipOfTheDay_pt_BR.properties: -------------------------------------------------------------------------------- 1 | TipOfTheDay.previousTipText=Dica Anterior 2 | TipOfTheDay.nextTipText=Pr\u00F3xima Dica 3 | -------------------------------------------------------------------------------- /src/test/resources/org/jdesktop/swingx/resources/bugdata.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/test/resources/org/jdesktop/swingx/resources/bugdata.txt -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/windows/resources/TipOfTheDay_es.properties: -------------------------------------------------------------------------------- 1 | TipOfTheDay.previousTipText=Sugerencia Anterior 2 | TipOfTheDay.nextTipText=Siguiente Sugerencia 3 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/windows/resources/TipOfTheDay_pl.properties: -------------------------------------------------------------------------------- 1 | TipOfTheDay.previousTipText=Poprzednia porada 2 | TipOfTheDay.nextTipText=Nast\u0119pna porada 3 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/windows/resources/TipOfTheDay_fr.properties: -------------------------------------------------------------------------------- 1 | TipOfTheDay.previousTipText=Astuce Pr\u00e9c\u00e9dente 2 | TipOfTheDay.nextTipText=Astuce Suivante 3 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/windows/resources/TipOfTheDay_it.properties: -------------------------------------------------------------------------------- 1 | TipOfTheDay.previousTipText=Consiglio Precedente 2 | TipOfTheDay.nextTipText=Consiglio Successivo 3 | -------------------------------------------------------------------------------- /src/test/java/org/jdesktop/swingx/renderer/checkBoxBackground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/test/java/org/jdesktop/swingx/renderer/checkBoxBackground.png -------------------------------------------------------------------------------- /src/test/resources/org/jdesktop/swingx/resources/images/moon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/test/resources/org/jdesktop/swingx/resources/images/moon.jpg -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/DatePicker_es.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Text, formatting for JXDatePicker 3 | # 4 | JXDatePicker.linkFormat=Hoy es {0,date, dd MMMM yyyy} 5 | -------------------------------------------------------------------------------- /src/test/resources/org/jdesktop/swingx/resources/images/500by500.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/test/resources/org/jdesktop/swingx/resources/images/500by500.png -------------------------------------------------------------------------------- /src/test/resources/org/jdesktop/swingx/resources/images/wellLeft.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/test/resources/org/jdesktop/swingx/resources/images/wellLeft.gif -------------------------------------------------------------------------------- /src/test/resources/org/jdesktop/swingx/resources/images/wellTop.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/test/resources/org/jdesktop/swingx/resources/images/wellTop.gif -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/clear.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/basic/resources/clear.gif -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/error16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/basic/resources/error16.png -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/search.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/basic/resources/search.gif -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/macosx/resources/clear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/macosx/resources/clear.png -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/macosx/resources/search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/macosx/resources/search.png -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/windows/resources/clear.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/windows/resources/clear.gif -------------------------------------------------------------------------------- /src/test/resources/org/jdesktop/swingx/resources/images/green-orb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/test/resources/org/jdesktop/swingx/resources/images/green-orb.png -------------------------------------------------------------------------------- /src/test/resources/org/jdesktop/swingx/resources/images/kleopatra.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/test/resources/org/jdesktop/swingx/resources/images/kleopatra.jpg -------------------------------------------------------------------------------- /src/test/resources/org/jdesktop/swingx/resources/images/wellBottom.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/test/resources/org/jdesktop/swingx/resources/images/wellBottom.gif -------------------------------------------------------------------------------- /src/test/resources/org/jdesktop/swingx/resources/images/wellRight.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/test/resources/org/jdesktop/swingx/resources/images/wellRight.gif -------------------------------------------------------------------------------- /src/test/resources/org/jdesktop/swingx/resources/images/wellTopLeft.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/test/resources/org/jdesktop/swingx/resources/images/wellTopLeft.gif -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/month-up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/basic/resources/month-up.png -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/linux/resources/combo-gtk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/linux/resources/combo-gtk.png -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/windows/resources/search.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/windows/resources/search.gif -------------------------------------------------------------------------------- /src/test/resources/org/jdesktop/swingx/resources/images/eclipse_win2k.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/test/resources/org/jdesktop/swingx/resources/images/eclipse_win2k.png -------------------------------------------------------------------------------- /src/test/resources/org/jdesktop/swingx/resources/images/wellTopRight.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/test/resources/org/jdesktop/swingx/resources/images/wellTopRight.gif -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/month-down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/basic/resources/month-down.png -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/search_popup.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/basic/resources/search_popup.gif -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/macosx/resources/combo-osx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/macosx/resources/combo-osx.png -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/windows/resources/combo-w2k.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/windows/resources/combo-w2k.png -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/windows/resources/combo-xp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/windows/resources/combo-xp.png -------------------------------------------------------------------------------- /src/test/resources/org/jdesktop/swingx/resources/images/explorer_win2k.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/test/resources/org/jdesktop/swingx/resources/images/explorer_win2k.png -------------------------------------------------------------------------------- /src/test/resources/org/jdesktop/swingx/resources/images/wellBottomLeft.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/test/resources/org/jdesktop/swingx/resources/images/wellBottomLeft.gif -------------------------------------------------------------------------------- /src/test/resources/org/jdesktop/swingx/resources/images/wellBottomRight.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/test/resources/org/jdesktop/swingx/resources/images/wellBottomRight.gif -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/TipOfTheDay24.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/basic/resources/TipOfTheDay24.gif -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/clear_pressed.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/basic/resources/clear_pressed.gif -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/clear_rollover.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/basic/resources/clear_rollover.gif -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/macosx/resources/clear_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/macosx/resources/clear_pressed.png -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/macosx/resources/search_popup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/macosx/resources/search_popup.png -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/windows/resources/search_popup.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/windows/resources/search_popup.gif -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/windows/resources/tipoftheday.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/windows/resources/tipoftheday.png -------------------------------------------------------------------------------- /src/test/resources/org/jdesktop/swingx/resources/images/thunderbird_win2k.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/test/resources/org/jdesktop/swingx/resources/images/thunderbird_win2k.png -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/macosx/resources/clear_rollover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/macosx/resources/clear_rollover.png -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/windows/resources/clear_pressed.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/windows/resources/clear_pressed.gif -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/windows/resources/clear_rollover.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/windows/resources/clear_rollover.gif -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/windows/resources/search_pressed.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/windows/resources/search_pressed.gif -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/windows/resources/search_rollover.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/windows/resources/search_rollover.gif -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/windows/resources/statusbar-left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/windows/resources/statusbar-left.png -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/windows/resources/statusbar-right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/windows/resources/statusbar-right.png -------------------------------------------------------------------------------- /src/test/resources/org/jdesktop/swingx/resources/images/eclipse_win2k_empty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/test/resources/org/jdesktop/swingx/resources/images/eclipse_win2k_empty.png -------------------------------------------------------------------------------- /src/test/resources/org/jdesktop/swingx/resources/images/eclipse_win2k_narrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/test/resources/org/jdesktop/swingx/resources/images/eclipse_win2k_narrow.png -------------------------------------------------------------------------------- /src/test/resources/org/jdesktop/swingx/resources/images/explorer_win2k_narrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/test/resources/org/jdesktop/swingx/resources/images/explorer_win2k_narrow.png -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/ErrorPane_fr.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/basic/resources/ErrorPane_fr.properties -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/windows/resources/statusbar-middle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/windows/resources/statusbar-middle.png -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/SearchField_de.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/basic/resources/SearchField_de.properties -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/macosx/resources/ErrorPane_fr.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/macosx/resources/ErrorPane_fr.properties -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/windows/resources/search_popup_pressed.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/windows/resources/search_popup_pressed.gif -------------------------------------------------------------------------------- /src/test/resources/org/jdesktop/swingx/resources/images/thunderbird_win2k_narrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/test/resources/org/jdesktop/swingx/resources/images/thunderbird_win2k_narrow.png -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/windows/resources/TipOfTheDay_sv.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/windows/resources/TipOfTheDay_sv.properties -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/windows/resources/search_popup_rollover.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/windows/resources/search_popup_rollover.gif -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/windows/resources/silver-statusbar-left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/windows/resources/silver-statusbar-left.png -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/windows/resources/silver-statusbar-right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/windows/resources/silver-statusbar-right.png -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/windows/resources/silver-statusbar-middle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuba-platform/swingx-core/HEAD/src/main/resources/org/jdesktop/swingx/plaf/windows/resources/silver-statusbar-middle.png -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/SearchField.properties: -------------------------------------------------------------------------------- 1 | SearchField.prompt=Search 2 | SearchField.recentsMenuTitle=Recent Searches 3 | SearchField.clearRecentsText=Clear Recent Searches 4 | SearchField.noRecentsText=No Recent Searches 5 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/windows/resources/TipOfTheDay_cs.properties: -------------------------------------------------------------------------------- 1 | #Czech resource bundle created by Vity (vitywap@seznam.cz) 08/2007 2 | TipOfTheDay.previousTipText=P\u0159edchoz\u00ed Tip 3 | TipOfTheDay.nextTipText=N\u00e1sleduj\u00edc\u00ed Tip 4 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/macosx/resources/ErrorPane.properties: -------------------------------------------------------------------------------- 1 | # 2 | # JXErrorPanel properties 3 | # 4 | JXErrorPane.report_button_text=Send Report 5 | JXErrorPane.ok_button_text=Don't Send 6 | JXErrorPane.details_expand_text=Details 7 | JXErrorPane.details_contract_text=Details 8 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/macosx/resources/ErrorPane_da.properties: -------------------------------------------------------------------------------- 1 | # 2 | # JXErrorPanel properties 3 | # 4 | JXErrorPane.report_button_text=Afsend rapport 5 | JXErrorPane.ok_button_text=Send ikke 6 | JXErrorPane.details_expand_text=Detaljer 7 | JXErrorPane.details_contract_text=Detaljer 8 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/macosx/resources/ErrorPane_de.properties: -------------------------------------------------------------------------------- 1 | # 2 | # JXErrorPanel properties 3 | # 4 | JXErrorPane.report_button_text=Bericht senden 5 | JXErrorPane.ok_button_text=Nicht senden 6 | JXErrorPane.details_expand_text=Details 7 | JXErrorPane.details_contract_text=Details 8 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/macosx/resources/ErrorPane_it.properties: -------------------------------------------------------------------------------- 1 | # 2 | # JXErrorPanel properties 3 | # 4 | JXErrorPane.report_button_text=Invia Resoconto 5 | JXErrorPane.ok_button_text=Non Inviare 6 | JXErrorPane.details_expand_text=Dettagli 7 | JXErrorPane.details_contract_text=Dettagli 8 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/macosx/resources/ErrorPane_cs.properties: -------------------------------------------------------------------------------- 1 | # 2 | # JXErrorPanel properties 3 | # 4 | JXErrorPane.report_button_text=Ozn\u00e1mit Chybu 5 | JXErrorPane.ok_button_text=Neodes\u00edlat 6 | JXErrorPane.details_expand_text=Detaily 7 | JXErrorPane.details_contract_text=Detaily 8 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/macosx/resources/ErrorPane_nl.properties: -------------------------------------------------------------------------------- 1 | # 2 | # JXErrorPanel properties 3 | # 4 | JXErrorPane.report_button_text=Verstuur Rapport 5 | JXErrorPane.ok_button_text=Niet versturen 6 | JXErrorPane.details_expand_text=Details 7 | JXErrorPane.details_contract_text=Details 8 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/macosx/resources/ErrorPane_sv.properties: -------------------------------------------------------------------------------- 1 | # 2 | # JXErrorPanel properties 3 | # 4 | JXErrorPane.report_button_text=S\u00E4nd rapport 5 | JXErrorPane.ok_button_text=S\u00E4nd inte 6 | JXErrorPane.details_expand_text=Detaljer 7 | JXErrorPane.details_contract_text=Detaljer 8 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/macosx/resources/ErrorPane_pt_BR.properties: -------------------------------------------------------------------------------- 1 | # 2 | # JXErrorPanel properties 3 | # 4 | JXErrorPane.report_button_text=Envia Relat\u00F3rio 5 | JXErrorPane.ok_button_text=N\u00E3o Envia 6 | JXErrorPane.details_expand_text=Detalhes 7 | JXErrorPane.details_contract_text=Detalhes 8 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/TipOfTheDay.properties: -------------------------------------------------------------------------------- 1 | TipOfTheDay.dialogTitle=Tip of the Day 2 | TipOfTheDay.didYouKnowText=Did you know... 3 | TipOfTheDay.showOnStartupText=Show tips on startup 4 | TipOfTheDay.previousTipText=< Back 5 | TipOfTheDay.nextTipText=Next > 6 | TipOfTheDay.closeText=Close 7 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/DatePicker_de.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Text, formatting for JXDatePicker 3 | # 4 | JXDatePicker.linkFormat=Heute ist der{0,date, dd. MMMM yyyy} 5 | JXDatePicker.longFormat=dd.MM.yyyy 6 | JXDatePicker.mediumFormat=dd.MM.yyyy 7 | JXDatePicker.shortFormat=dd.MM 8 | JXDatePicker.numColumns=10 9 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/DatePicker_en_US.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Text, formatting for JXDatePicker 3 | # 4 | JXDatePicker.linkFormat=Today is {0,date, dd MMMM yyyy} 5 | JXDatePicker.longFormat=EEE MM/dd/yyyy 6 | JXDatePicker.mediumFormat=MM/dd/yy 7 | JXDatePicker.shortFormat=MM/dd 8 | JXDatePicker.numColumns=10 9 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/TipOfTheDay_sv.properties: -------------------------------------------------------------------------------- 1 | TipOfTheDay.dialogTitle=Dagens tips 2 | TipOfTheDay.didYouKnowText=Visste du... 3 | TipOfTheDay.showOnStartupText=Visa tips vid start 4 | TipOfTheDay.previousTipText=< Tillbaka 5 | TipOfTheDay.nextTipText=N\u00E4sta > 6 | TipOfTheDay.closeText=St\u00E4ng 7 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/DatePicker_it.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Text, formatting for JXDatePicker 3 | # 4 | JXDatePicker.linkFormat=Oggi \u00E8 il {0,date, dd MMMM yyyy} 5 | JXDatePicker.longFormat=EEE dd/MM/yyyy 6 | JXDatePicker.mediumFormat=dd/MM/yyyy 7 | JXDatePicker.shortFormat=dd/MM 8 | JXDatePicker.numColumns=10 9 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/DatePicker_pl_PL.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Text, formatting for JXDatePicker 3 | # 4 | JXDatePicker.linkFormat=Dzisiaj jest {0,date, dd MMMM yyyy} 5 | JXDatePicker.longFormat=EEE dd.MM.yyyy 6 | JXDatePicker.mediumFormat=dd.MM.yy 7 | JXDatePicker.shortFormat=MM/dd 8 | JXDatePicker.numColumns=10 9 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/DatePicker_pt_BR.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Text, formatting for JXDatePicker 3 | # 4 | JXDatePicker.linkFormat=Hoje \u00E9 {0,date, dd MMMM yyyy} 5 | JXDatePicker.longFormat=EEE dd/MM/yyyy 6 | JXDatePicker.mediumFormat=dd/MM/yyyy 7 | JXDatePicker.shortFormat=dd/MM 8 | JXDatePicker.numColumns=10 9 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/DatePicker_sv.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Text, formatting for JXDatePicker 3 | # 4 | JXDatePicker.linkFormat=Idag \u00E4r {0,date, yyyy MMMM dd} 5 | JXDatePicker.longFormat=EEE yyyy/MM/dd 6 | JXDatePicker.mediumFormat=yyyy/MM/dd 7 | JXDatePicker.shortFormat=MM/dd 8 | JXDatePicker.numColumns=10 9 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/TipOfTheDay_nl.properties: -------------------------------------------------------------------------------- 1 | TipOfTheDay.dialogTitle=Tip van de dag 2 | TipOfTheDay.didYouKnowText=Wist u dat... 3 | TipOfTheDay.showOnStartupText=Laat tips zien bij opstarten 4 | TipOfTheDay.previousTipText=< Vorige 5 | TipOfTheDay.nextTipText=Volgende > 6 | TipOfTheDay.closeText=Sluiten 7 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/DatePicker_nl.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Text, formatting for JXDatePicker 3 | # 4 | JXDatePicker.linkFormat=Vandaag is het {0,date, dd MMMM yyyy} 5 | JXDatePicker.longFormat=EEE yyyy-MM-dd 6 | JXDatePicker.mediumFormat=yyyy-MM-dd 7 | JXDatePicker.shortFormat=yyyy-MM-dd 8 | JXDatePicker.numColumns=10 9 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/TipOfTheDay_pl.properties: -------------------------------------------------------------------------------- 1 | TipOfTheDay.dialogTitle=Porada dnia 2 | TipOfTheDay.didYouKnowText=Czy wiesz \u017Ce... 3 | TipOfTheDay.showOnStartupText=Pokazuj porady przy uruchomieniu 4 | TipOfTheDay.previousTipText=< Wstecz 5 | TipOfTheDay.nextTipText=Dalej > 6 | TipOfTheDay.closeText=Zamknij 7 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/TipOfTheDay_pt_BR.properties: -------------------------------------------------------------------------------- 1 | TipOfTheDay.dialogTitle=Dica do Dia 2 | TipOfTheDay.didYouKnowText=Voc\u00EA sabia... 3 | TipOfTheDay.showOnStartupText=Mostrar dicas ao iniciar 4 | TipOfTheDay.previousTipText=< Anterior 5 | TipOfTheDay.nextTipText=Pr\u00F3xima > 6 | TipOfTheDay.closeText=Fechar 7 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/DatePicker_fr.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Text, formatting for JXDatePicker 3 | # 4 | JXDatePicker.linkFormat=Aujourd''hui, nous sommes le {0,date, dd MMMM yyyy} 5 | JXDatePicker.longFormat=EEE dd/MM/yyyy 6 | JXDatePicker.mediumFormat=dd/MM/yyyy 7 | JXDatePicker.shortFormat=dd/MM 8 | JXDatePicker.numColumns=10 9 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/TipOfTheDay_de.properties: -------------------------------------------------------------------------------- 1 | TipOfTheDay.dialogTitle=Tipp des Tages 2 | TipOfTheDay.didYouKnowText=Wussten Sie schon...? 3 | TipOfTheDay.showOnStartupText=Tipps beim Start anzeigen 4 | TipOfTheDay.previousTipText=< Zur\u00fcck 5 | TipOfTheDay.nextTipText=Weiter > 6 | TipOfTheDay.closeText=Schlie\u00dfen 7 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/TipOfTheDay_es.properties: -------------------------------------------------------------------------------- 1 | TipOfTheDay.dialogTitle=Sugerencia del D\u00eda 2 | TipOfTheDay.didYouKnowText=Sab\u00edas que ... 3 | TipOfTheDay.showOnStartupText=Mostrar sugerencias al inicio 4 | TipOfTheDay.previousTipText=< Anterior 5 | TipOfTheDay.nextTipText=Siguiente > 6 | TipOfTheDay.closeText=Cerrar 7 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/TipOfTheDay_fr.properties: -------------------------------------------------------------------------------- 1 | TipOfTheDay.dialogTitle=Astuce du Jour 2 | TipOfTheDay.didYouKnowText=Le saviez-vous... 3 | TipOfTheDay.showOnStartupText=Afficher au d\u00e9marrage 4 | TipOfTheDay.previousTipText=< Pr\u00e9c\u00e9dente 5 | TipOfTheDay.nextTipText=Suivante > 6 | TipOfTheDay.closeText=Fermer 7 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/TipOfTheDay_it.properties: -------------------------------------------------------------------------------- 1 | TipOfTheDay.dialogTitle=Consiglio del Giorno 2 | TipOfTheDay.didYouKnowText=Lo sapevi che... 3 | TipOfTheDay.showOnStartupText=Visualizza Consigli all'Avvio 4 | TipOfTheDay.previousTipText=< Precedente 5 | TipOfTheDay.nextTipText=Successivo > 6 | TipOfTheDay.closeText=Chiudi 7 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/DatePicker_en_GB.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Text, formatting for JXDatePicker 3 | # 4 | # 5 | 6 | JXDatePicker.linkFormat=Today is {0,date, dd MMMM yyyy} 7 | JXDatePicker.longFormat=EEE dd/MM/yyyy 8 | JXDatePicker.mediumFormat=dd/MM/yyyy 9 | JXDatePicker.shortFormat=dd/MM 10 | JXDatePicker.numColumns=10 11 | 12 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/DatePicker_cs.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Text, formatting for JXDatePicker 3 | # 4 | JXDatePicker.linkFormat=Dnes je {0,date, d. MMMM yyyy} 5 | JXDatePicker.longFormat=EEE d.MM.yyyy 6 | #czech grammar vs application admits more variants to use 7 | JXDatePicker.mediumFormat=d.M.yyyy 8 | JXDatePicker.shortFormat=d.M. 9 | JXDatePicker.numColumns=10 10 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/ErrorPane.properties: -------------------------------------------------------------------------------- 1 | # 2 | # JXErrorPanel properties 3 | # 4 | JXErrorPane.details_expand_text=Details >> 5 | JXErrorPane.details_contract_text=Details << 6 | JXErrorPane.ok_button_text=Close 7 | JXErrorPane.fatal_button_text=Exit Application 8 | JXErrorPane.report_button_text=Report Error 9 | JXErrorPane.copy_to_clipboard_button_text=Copy to Clipboard 10 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/ErrorPane_da.properties: -------------------------------------------------------------------------------- 1 | # 2 | # JXErrorPanel properties 3 | # 4 | JXErrorPane.details_expand_text=Detaljer >> 5 | JXErrorPane.details_contract_text=Detaljer << 6 | JXErrorPane.ok_button_text=Luk 7 | JXErrorPane.fatal_button_text=Afslut program 8 | JXErrorPane.report_button_text=Rapporter fejl 9 | JXErrorPane.copy_to_clipboard_button_text=Kopier til udklipsholder 10 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/ErrorPane_nl.properties: -------------------------------------------------------------------------------- 1 | # 2 | # JXErrorPanel properties 3 | # 4 | JXErrorPane.details_expand_text=Details >> 5 | JXErrorPane.details_contract_text=Details << 6 | JXErrorPane.ok_button_text=Sluiten 7 | JXErrorPane.fatal_button_text=Sluit Applicatie 8 | JXErrorPane.report_button_text=Rapporteer Fout 9 | JXErrorPane.copy_to_clipboard_button_text=Kopieer naar klembord 10 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/ErrorPane_it.properties: -------------------------------------------------------------------------------- 1 | # 2 | # JXErrorPanel properties 3 | # 4 | JXErrorPane.details_expand_text=Dettagli >> 5 | JXErrorPane.details_contract_text=Dettagli << 6 | JXErrorPane.ok_button_text=Chiudi 7 | JXErrorPane.fatal_button_text=Esci dall'Applicazione 8 | JXErrorPane.report_button_text=Segnala Errore 9 | JXErrorPane.copy_to_clipboard_button_text=Copia negli Appunti 10 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/ErrorPane_sv.properties: -------------------------------------------------------------------------------- 1 | # 2 | # JXErrorPanel properties 3 | # 4 | JXErrorPane.details_expand_text=Detaljer >> 5 | JXErrorPane.details_contract_text=Detaljer << 6 | JXErrorPane.ok_button_text=St\u00E4ng 7 | JXErrorPane.fatal_button_text=Avsluta applikation 8 | JXErrorPane.report_button_text=Rapportera fel 9 | JXErrorPane.copy_to_clipboard_button_text=Kopiera till Urklipp 10 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/ErrorPane_de.properties: -------------------------------------------------------------------------------- 1 | # 2 | # JXErrorPanel properties 3 | # 4 | JXErrorPane.details_expand_text=Details >> 5 | JXErrorPane.details_contract_text=Details << 6 | JXErrorPane.ok_button_text=Schliessen 7 | JXErrorPane.fatal_button_text=Anwendung beenden 8 | JXErrorPane.report_button_text=Fehler berichten 9 | JXErrorPane.copy_to_clipboard_button_text=In Zwischenablage kopieren 10 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/TipOfTheDay_cs.properties: -------------------------------------------------------------------------------- 1 | #Czech resource bundle created by Vity (vitywap@seznam.cz) 08/2007 2 | TipOfTheDay.dialogTitle=Tip dne 3 | TipOfTheDay.didYouKnowText=V\u011bd\u011bli jste, \u017ee... 4 | TipOfTheDay.showOnStartupText=Zobrazovat tipy p\u0159i startu 5 | TipOfTheDay.previousTipText=< P\u0159edchoz\u00ed 6 | TipOfTheDay.nextTipText=Dal\u0161\u00ed > 7 | TipOfTheDay.closeText=Zav\u0159\u00edt -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/ErrorPane_cs.properties: -------------------------------------------------------------------------------- 1 | # 2 | # JXErrorPanel properties 3 | # 4 | JXErrorPane.details_expand_text=Detaily >> 5 | JXErrorPane.details_contract_text=Detaily << 6 | JXErrorPane.ok_button_text=Zav\u0159\u00edt 7 | JXErrorPane.fatal_button_text=Ukon\u010dit Aplikaci 8 | JXErrorPane.report_button_text=Ozn\u00e1mit Chybu 9 | JXErrorPane.copy_to_clipboard_button_text=Zkop\u00edrovat do Schr\u00e1nky 10 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/ErrorPane_pl.properties: -------------------------------------------------------------------------------- 1 | # 2 | # JXErrorPanel properties 3 | # 4 | JXErrorPane.details_expand_text=Szczeg\u00F3\u0142y >> 5 | JXErrorPane.details_contract_text=Szczeg\u00F3\u0142y << 6 | JXErrorPane.ok_button_text=Zamknij 7 | JXErrorPane.fatal_button_text=Zako\u0144cz aplikacje 8 | JXErrorPane.report_button_text=Raportuj b\u0142\u0105d 9 | JXErrorPane.copy_to_clipboard_button_text=Kopiuj do schowka 10 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/ErrorPane_pt_BR.properties: -------------------------------------------------------------------------------- 1 | # 2 | # JXErrorPanel properties 3 | # 4 | JXErrorPane.details_expand_text=Detalhes >> 5 | JXErrorPane.details_contract_text=Detalhes << 6 | JXErrorPane.ok_button_text=Fechar 7 | JXErrorPane.fatal_button_text=Sair da Aplica\u00E7\u00E3o 8 | JXErrorPane.report_button_text=Reportar Erro 9 | JXErrorPane.copy_to_clipboard_button_text=Copia para a \u00E1rea de Transfer\u00EAncia 10 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/ErrorPane_es.properties: -------------------------------------------------------------------------------- 1 | # spanish properties for swingx 2 | # JXErrorPanel 3 | # @author: Sergio Samayoa 4 | 5 | JXErrorPane.details_expand_text=Detalles >> 6 | JXErrorPane.details_contract_text=Detalles << 7 | JXErrorPane.ok_button_text=Cerrar 8 | JXErrorPane.fatal_button_text=Salir de la aplicaci\u00F3n 9 | JXErrorPane.report_button_text=Reportar error 10 | JXErrorPane.copy_to_clipboard_button_text=Copiar al portapapeles 11 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/DatePicker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Text, formatting for JXDatePicker 3 | # 4 | JXDatePicker.linkFormat=Today is {0,date} 5 | # Issue #945-swingx: force a default fallback here not the right thing to 6 | # for locales which do not have a properties file. In that case the 7 | # language defaults provide a better fit 8 | #JXDatePicker.longFormat=EEE MM/dd/yyyy 9 | #JXDatePicker.mediumFormat=MM/dd/yy 10 | #JXDatePicker.shortFormat=MM/dd 11 | JXDatePicker.numColumns=10 12 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/DatePicker_da.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Text, formatting for JXDatePicker 3 | # 4 | # Note: Danish official date formating allows for both a traditional 5 | # and the ISO version. Since de-facto is to use the traditional 6 | # that's what JXDatePicker will use default. 7 | # 8 | JXDatePicker.linkFormat=Dags dato {0,date, dd MMMM yyyy} 9 | JXDatePicker.longFormat=EEE dd-MM-yyyy 10 | JXDatePicker.mediumFormat=dd-MM-yyyy 11 | JXDatePicker.shortFormat=dd/MM 12 | JXDatePicker.numColumns=10 13 | -------------------------------------------------------------------------------- /src/test/java/org/jdesktop/swingx/decorator/HighlightPredicateIssues.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Created on 18.11.2010 3 | * 4 | */ 5 | package org.jdesktop.swingx.decorator; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | import org.junit.runners.JUnit4; 10 | 11 | @RunWith(JUnit4.class) 12 | public class HighlightPredicateIssues extends HighlightPredicateTest { 13 | 14 | 15 | @Test 16 | public void testDummy() { 17 | // keep runner happy if we have solved all issues 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/test/java/org/jdesktop/swingx/resources/swingx.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | package org.jdesktop.swingx.resources; 5 | 6 | import java.util.ListResourceBundle; 7 | 8 | /** 9 | * Part of the {@code UIDefaultsResourceBundleTest}. 10 | * 11 | * @author Karl George Schaefer 12 | */ 13 | public class swingx extends ListResourceBundle { 14 | /** 15 | * {@inheritDoc} 16 | */ 17 | @Override 18 | protected Object[][] getContents() { 19 | return new Object[][]{ 20 | new String[]{"LoginPane.1", "One"}, 21 | new String[]{"LoginPane.2", "Two"}, 22 | new String[]{"LoginPane.3", "Three"}, 23 | }; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/test/java/org/jdesktop/swingx/resources/swingx_de.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | package org.jdesktop.swingx.resources; 5 | 6 | import java.util.ListResourceBundle; 7 | 8 | /** 9 | * Part of the {@code UIDefaultsResourceBundleTest}. 10 | * 11 | * @author Karl George Schaefer 12 | */ 13 | public class swingx_de extends ListResourceBundle { 14 | /** 15 | * {@inheritDoc} 16 | */ 17 | @Override 18 | protected Object[][] getContents() { 19 | return new Object[][]{ 20 | new String[]{"LoginPane.1", "de One"}, 21 | new String[]{"LoginPane.2", "de Two"}, 22 | new String[]{"LoginPane.3", "de Three"}, 23 | }; 24 | } 25 | } -------------------------------------------------------------------------------- /src/test/java/org/jdesktop/swingx/resources/swingx_fr.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | package org.jdesktop.swingx.resources; 5 | 6 | import java.util.ListResourceBundle; 7 | 8 | /** 9 | * Part of the {@code UIDefaultsResourceBundleTest}. 10 | * 11 | * @author Karl George Schaefer 12 | */ 13 | public class swingx_fr extends ListResourceBundle { 14 | /** 15 | * {@inheritDoc} 16 | */ 17 | @Override 18 | protected Object[][] getContents() { 19 | return new Object[][]{ 20 | new String[]{"LoginPane.1", "fr One"}, 21 | new String[]{"LoginPane.2", "fr Two"}, 22 | new String[]{"LoginPane.3", "fr Three"}, 23 | }; 24 | } 25 | } -------------------------------------------------------------------------------- /src/test/java/org/jdesktop/swingx/resources/swingx_fr_CA.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | package org.jdesktop.swingx.resources; 5 | 6 | import java.util.ListResourceBundle; 7 | 8 | /** 9 | * Part of the {@code UIDefaultsResourceBundleTest}. 10 | * 11 | * @author Karl George Schaefer 12 | */ 13 | public class swingx_fr_CA extends ListResourceBundle { 14 | /** 15 | * {@inheritDoc} 16 | */ 17 | @Override 18 | protected Object[][] getContents() { 19 | return new Object[][]{ 20 | new String[]{"LoginPane.1", "fr_CA One"}, 21 | new String[]{"LoginPane.2", "fr_CA Two"}, 22 | new String[]{"LoginPane.3", "fr_CA Three"}, 23 | }; 24 | } 25 | } -------------------------------------------------------------------------------- /src/test/java/org/jdesktop/swingx/resources/swingx_pt_BR.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | package org.jdesktop.swingx.resources; 5 | 6 | import java.util.ListResourceBundle; 7 | 8 | /** 9 | * Part of the {@code UIDefaultsResourceBundleTest}. 10 | * 11 | * @author Karl George Schaefer 12 | */ 13 | public class swingx_pt_BR extends ListResourceBundle { 14 | /** 15 | * {@inheritDoc} 16 | */ 17 | @Override 18 | protected Object[][] getContents() { 19 | return new Object[][]{ 20 | new String[]{"LoginPane.1", "pt_BR One"}, 21 | new String[]{"LoginPane.2", "pt_BR Two"}, 22 | new String[]{"LoginPane.3", "pt_BR Three"}, 23 | }; 24 | } 25 | } -------------------------------------------------------------------------------- /src/test/resources/org/jdesktop/swingx/resources/stringdata.csv: -------------------------------------------------------------------------------- 1 | firstname,lastname,street,city,state,zipcode,phonenumber 2 | Kevin,Smith,543 Chase Avenue,Los Angeles,CA,91031,219-425-9393 3 | Oliver,Stone,5692 Full Metal Lane,Los Angeles,CA,92032,202-123-2323 4 | Kevin,Costner,302 Postman Street,Pacific Palasades,CA,93022,455-232-3532 5 | Quentin,Tarantino,532 Bills Dead,Santa Ana,CA,94321,553-903-2341 6 | Ethan,Coen,93022 Ladykillers Lane,Burbank,CA,90345,302-122-2323 7 | Joel,Coen,93022 Ladykillers Lane,Burbank,CA,90345,302-122-2323 8 | Woody,Allen,543 Annie Hall,New York,NY,12342,303-232-2343 9 | Mel,Gibson,5343 Passion Blvd,Sydney,AU,34432,1-342-232-3334 10 | Sophia,Coppola,35221 Translation Street,Beverly Hills,CA,90210,302-233-2232 11 | Peter,Jackson,343 Ring way,Los Angeles,CA,92322,302-233-2235 -------------------------------------------------------------------------------- /src/test/java/org/jdesktop/swingx/ScrollableSizeHintTest.java: -------------------------------------------------------------------------------- 1 | package org.jdesktop.swingx; 2 | 3 | import static org.junit.Assert.fail; 4 | 5 | import javax.swing.SwingConstants; 6 | 7 | import org.junit.Test; 8 | 9 | @SuppressWarnings("nls") 10 | public class ScrollableSizeHintTest { 11 | /** 12 | * Test contract - NPE on null component 13 | */ 14 | @Test 15 | public void checkDocumentedNPE() { 16 | for (ScrollableSizeHint behaviour : ScrollableSizeHint.values()) { 17 | try { 18 | behaviour.getTracksParentSize(null, SwingConstants.VERTICAL); 19 | fail("null component must throw NPE, didn't on " + behaviour); 20 | } catch (NullPointerException e) { 21 | // expected 22 | } 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/renderer/IconAware.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Created on 05.11.2010 3 | * 4 | */ 5 | package org.jdesktop.swingx.renderer; 6 | 7 | import javax.swing.Icon; 8 | 9 | /** 10 | * Interface for tagging rendering components to allow Highlighters to treat 11 | * the Icon (Issue #1311-swingx) as a visual decoration. ComponentProviders 12 | * which hand out IconAware rendering components must guarantee to reset its 13 | * Icon property in each configuration round. 14 | * 15 | * @author Jeanette Winzenburg, Berlin 16 | */ 17 | public interface IconAware { 18 | 19 | /** 20 | * Sets the icon property. 21 | * 22 | * @param icon 23 | */ 24 | public void setIcon(Icon icon); 25 | 26 | /** 27 | * Returns the icon property. 28 | * 29 | * @return 30 | */ 31 | public Icon getIcon(); 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/test/java/org/jdesktop/swingx/test/CustomMonthViewUI.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Created on 19.12.2007 3 | * 4 | */ 5 | package org.jdesktop.swingx.test; 6 | 7 | import java.awt.Color; 8 | 9 | import javax.swing.JComponent; 10 | import javax.swing.plaf.ColorUIResource; 11 | import javax.swing.plaf.ComponentUI; 12 | 13 | import org.jdesktop.swingx.plaf.basic.BasicMonthViewUI; 14 | 15 | /** 16 | * 17 | * Testing custom ui delegate for JXMonthView. 18 | * 19 | * @author Jeanette Winzenburg 20 | */ 21 | public class CustomMonthViewUI extends BasicMonthViewUI { 22 | @SuppressWarnings({"UnusedDeclaration"}) 23 | public static ComponentUI createUI(JComponent c) { 24 | return new CustomMonthViewUI(); 25 | } 26 | 27 | @Override 28 | protected void installDefaults() { 29 | super.installDefaults(); 30 | monthView.setSelectionBackground(new ColorUIResource(Color.MAGENTA)); 31 | } 32 | 33 | 34 | } -------------------------------------------------------------------------------- /src/test/java/org/jdesktop/swingx/plaf/PromptTextAreaUITest.java: -------------------------------------------------------------------------------- 1 | package org.jdesktop.swingx.plaf; 2 | 3 | import static org.junit.Assert.assertEquals; 4 | 5 | import javax.swing.JTextArea; 6 | 7 | import org.jdesktop.swingx.JXTextArea; 8 | import org.junit.Test; 9 | 10 | public class PromptTextAreaUITest extends PromptTextUITest_Base { 11 | JTextArea textArea; 12 | 13 | @Override 14 | public void setup() { 15 | textComponent = textArea = new JXTextArea(); 16 | } 17 | 18 | @Override 19 | @Test 20 | public void testGetLabelComponent() { 21 | super.testGetLabelComponent(); 22 | 23 | textArea.setRows(5); 24 | textArea.setColumns(5); 25 | JTextArea lbl = (JTextArea) ui.getPromptComponent(textArea); 26 | 27 | assertEquals(textArea.getRows(), lbl.getRows()); 28 | assertEquals(textArea.getColumns(), lbl.getColumns()); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/test/java/org/jdesktop/swingx/plaf/PromptTextFieldUITest.java: -------------------------------------------------------------------------------- 1 | package org.jdesktop.swingx.plaf; 2 | 3 | import static org.junit.Assert.assertEquals; 4 | 5 | import javax.swing.JTextField; 6 | 7 | import org.jdesktop.swingx.JXTextField; 8 | import org.junit.Test; 9 | 10 | public class PromptTextFieldUITest extends PromptTextUITest_Base { 11 | JTextField txtField; 12 | 13 | @Override 14 | public void setup() { 15 | textComponent = txtField = new JXTextField(); 16 | } 17 | 18 | @Override 19 | @Test 20 | public void testGetLabelComponent() { 21 | super.testGetLabelComponent(); 22 | txtField.setHorizontalAlignment(JTextField.CENTER); 23 | JTextField lbl = (JTextField) ui.getPromptComponent(txtField); 24 | 25 | assertEquals(txtField.getHorizontalAlignment(), lbl.getHorizontalAlignment()); 26 | assertEquals(txtField.getColumns(), lbl.getColumns()); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/tree/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2008 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | /** 22 | * Contains Tree specific classes and interfaces. 23 | */ 24 | package org.jdesktop.swingx.tree; 25 | 26 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/plaf/misc/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2008 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | /** 22 | * A package to collect miscellaneous UI delegates. 23 | */ 24 | package org.jdesktop.swingx.plaf.misc; 25 | 26 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/border/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2008 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | /** 22 | * Contains extensions to the {@code javax.swingx.border} package. 23 | */ 24 | package org.jdesktop.swingx.border; 25 | 26 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/auth/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2008 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | /** 22 | * Contains classes and interfaces used by the {@code JXLoginPane} component. 23 | */ 24 | package org.jdesktop.swingx.auth; 25 | 26 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/error/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2008 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | /** 22 | * Contains classes and interfaces used by the {@code JErrorPane} component. 23 | */ 24 | package org.jdesktop.swingx.error; 25 | 26 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/combobox/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2008 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | /** 22 | * Contains classes and interfaces used by the {@code JComboBox} component. 23 | */ 24 | package org.jdesktop.swingx.combobox; 25 | 26 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/multisplitpane/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2009 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | * 21 | */ 22 | /** Contains support classes for the MultiSplitLayout layout manager. 23 | */ 24 | package org.jdesktop.swingx.multisplitpane; -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/color/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2008 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | /** 22 | * Contains classes and interfaces used by the {@code JXGradientChooser} 23 | * component. 24 | */ 25 | package org.jdesktop.swingx.color; 26 | -------------------------------------------------------------------------------- /src/test/java/org/jdesktop/swingx/table/ColumnControlButtonIssues.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | */ 7 | package org.jdesktop.swingx.table; 8 | 9 | import java.util.logging.Logger; 10 | 11 | /** 12 | * Test to exposed known issues of ColumnControlButton.

13 | * 14 | * Ideally, there would be at least one failing test method per open 15 | * issue in the issue tracker. Plus additional failing test methods for 16 | * not fully specified or not yet decided upon features/behaviour.

17 | * 18 | * Once the issues are fixed and the corresponding methods are passing, they 19 | * should be moved over to the XXTest. 20 | * 21 | * @author Jeanette Winzenburg 22 | */ 23 | public class ColumnControlButtonIssues extends ColumnControlButtonTest { 24 | @SuppressWarnings("all") 25 | private static final Logger LOG = Logger 26 | .getLogger(ColumnControlButtonIssues.class.getName()); 27 | 28 | public void testDummy() { 29 | // do nothing - placeholder for empty issues 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/multislider/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2008 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | /** 22 | * Contains classes used by slider classes, such as {@code JXMultiThumbSlider}. 23 | */ 24 | package org.jdesktop.swingx.multislider; 25 | 26 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/renderer/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2008 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | /** 22 | * Contains implementation of renderers used by JXTable, JXTreeTable and related classes. 23 | */ 24 | package org.jdesktop.swingx.renderer; 25 | 26 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/calendar/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2008 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | /** 22 | * Contains classes and interfaces used by the {@code JXDatePicker} and 23 | * {@code JXMonthView} components. 24 | */ 25 | package org.jdesktop.swingx.calendar; 26 | 27 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/plaf/HeaderUI.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | package org.jdesktop.swingx.plaf; 23 | 24 | import javax.swing.plaf.PanelUI; 25 | 26 | /** 27 | * 28 | * @author rbair 29 | */ 30 | public abstract class HeaderUI extends PanelUI { 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/tips/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2009 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | * 21 | */ 22 | /** Provides classes and interfaces for dealing with 23 | org.jdesktop.swingx.JXTipOfTheDay. 24 | 25 |

Related Documentation

26 | */ 27 | package org.jdesktop.swingx.tips; -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/plaf/basic/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2008 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | /** 22 | * Provides basic implementation of pluggable look-and-feel for SwingX components together with a 23 | * mechanism to support custom component look-and-feels. 24 | */ 25 | package org.jdesktop.swingx.plaf.basic; 26 | 27 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/plaf/MultiThumbSliderUI.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2006 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | package org.jdesktop.swingx.plaf; 22 | 23 | import javax.swing.plaf.ComponentUI; 24 | 25 | /** 26 | * 27 | * @author Joshua Marinacci 28 | */ 29 | public abstract class MultiThumbSliderUI extends ComponentUI { 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/plaf/macosx/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2008 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | /** 22 | * Provides macos specific implementation of pluggable look-and-feel for SwingX components together with a 23 | * mechanism to support custom component look-and-feels. 24 | */ 25 | package org.jdesktop.swingx.plaf.macosx; 26 | 27 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/plaf/metal/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2008 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | /** 22 | * Provides metal laf specific implementation of pluggable look-and-feel for SwingX components together with a 23 | * mechanism to support custom component look-and-feels. 24 | */ 25 | package org.jdesktop.swingx.plaf.metal; 26 | 27 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/plaf/nimbus/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2008 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | /** 22 | * Provides nimbus laf specific implementation of pluggable look-and-feel for SwingX components together with a 23 | * mechanism to support custom component look-and-feels. 24 | */ 25 | package org.jdesktop.swingx.plaf.nimbus; 26 | 27 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/plaf/windows/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2008 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | /** 22 | * Provides window laf specific implementation of pluggable look-and-feel for SwingX components together with a 23 | * mechanism to support custom component look-and-feels. 24 | */ 25 | package org.jdesktop.swingx.plaf.windows; 26 | 27 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/plaf/StatusBarUI.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | package org.jdesktop.swingx.plaf; 23 | 24 | import javax.swing.plaf.ComponentUI; 25 | 26 | /** 27 | * Pluggable look and feel interface for StatusBar. 28 | * 29 | * @author rbair 30 | */ 31 | public abstract class StatusBarUI extends ComponentUI { 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/multislider/TrackRenderer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2008 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | package org.jdesktop.swingx.multislider; 22 | 23 | import javax.swing.JComponent; 24 | 25 | import org.jdesktop.swingx.JXMultiThumbSlider; 26 | 27 | 28 | public interface TrackRenderer { 29 | public JComponent getRendererComponent(JXMultiThumbSlider slider); 30 | } -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/event/DateSelectionListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2006 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | package org.jdesktop.swingx.event; 22 | 23 | 24 | import java.util.EventListener; 25 | 26 | /** 27 | * @author Joshua Outwater 28 | */ 29 | public interface DateSelectionListener extends EventListener { 30 | public void valueChanged(DateSelectionEvent ev); 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/renderer/BooleanValue.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2006 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | package org.jdesktop.swingx.renderer; 22 | 23 | /** 24 | * A simple converter to return a Boolean value from an Object. 25 | * 26 | * @author Jeanette Winzenburg 27 | */ 28 | public interface BooleanValue { 29 | 30 | boolean getBoolean(Object value); 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/multislider/ThumbListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2008 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | package org.jdesktop.swingx.multislider; 22 | 23 | import java.awt.event.MouseEvent; 24 | 25 | public interface ThumbListener { 26 | public void thumbMoved(int thumb, float pos); 27 | public void thumbSelected(int thumb); 28 | public void mousePressed(MouseEvent evt); 29 | } -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/multislider/ThumbRenderer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2008 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | package org.jdesktop.swingx.multislider; 22 | 23 | import javax.swing.JComponent; 24 | 25 | import org.jdesktop.swingx.JXMultiThumbSlider; 26 | 27 | public interface ThumbRenderer { 28 | public JComponent getThumbRendererComponent(JXMultiThumbSlider slider, int index, boolean selected); 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/plaf/basic/CalendarState.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2007 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | package org.jdesktop.swingx.plaf.basic; 22 | 23 | /** 24 | * States of a Day in a MonthView page. 25 | * 26 | * @author Jeanette Winzenburg 27 | */ 28 | public enum CalendarState { 29 | TODAY, 30 | IN_MONTH, 31 | LEADING, 32 | TRAILING, 33 | WEEK_OF_YEAR, 34 | DAY_OF_WEEK, TITLE 35 | } -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/icon/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2009 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | * 21 | */ 22 | /**Contains Swing Icon classes used by JDNC's Swing Extensions. 23 |

Package Specification

24 | 25 | 28 | 29 |

Related Documentation

30 | 31 | 34 | 35 | */ 36 | package org.jdesktop.swingx.icon; -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/plaf/TaskPaneContainerUI.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | package org.jdesktop.swingx.plaf; 22 | 23 | import javax.swing.plaf.PanelUI; 24 | 25 | /** 26 | * Pluggable UI for JXTaskPaneContainer. 27 | * 28 | * @author Frederic Lavigne 29 | */ 30 | public abstract class TaskPaneContainerUI extends PanelUI { 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/treetable/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2009 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | * 21 | */ 22 | /**Contains API required by the JXTreeTable component. 23 |

Package Specification

24 | 25 | 28 | 29 |

Related Documentation

30 | 31 | 34 | 35 | */ 36 | package org.jdesktop.swingx.treetable; -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/LoginPane.properties: -------------------------------------------------------------------------------- 1 | # Strings used by JXLoginDialog and JXLoginPane 2 | JXLoginPane.okString=OK 3 | JXLoginPane.okString.mnemonic=O 4 | JXLoginPane.cancelString=Cancel 5 | JXLoginPane.cancelString.mnemonic=C 6 | JXLoginPane.stopString=Stop Login 7 | JXLoginPane.stopString.mnemonic=S 8 | JXLoginPane.promptString=Enter your user name and password 9 | JXLoginPane.serverString=Server 10 | JXLoginPane.nameString=User Name 11 | JXLoginPane.loginString=Login 12 | JXLoginPane.bannerString=Login 13 | JXLoginPane.titleString=Login 14 | JXLoginPane.passwordString=Password 15 | JXLoginPane.rememberUserString=Remember Me 16 | JXLoginPane.rememberPasswordString=Remember Password 17 | JXLoginPane.loggingInString=Please wait, logging in... 18 | JXLoginPane.failedString=Login failed; invalid user name/password combination. 19 | JXLoginPane.enterUserNamePassword=Enter your user name and password 20 | JXLoginPane.pleaseWait=Please wait, logging in... 21 | JXLoginPane.cancelWait=Canceling login, please wait... 22 | JXLoginPane.cancelLogin=Stop login 23 | JXLoginPane.errorMessage=Couldn't log in

\ 24 | Check your user name and password. Check to see if \ 25 | Caps Lock is turned on. 26 | JXLoginPane.capsOnWarning=CapsLock seems to be ON! 27 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/table/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2009 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | * 21 | */ 22 | /**Contains API required by the extended JTable component, JXTable. 23 |

Package Specification

24 | 25 | 28 | 29 |

Related Documentation

30 | 31 | 34 | 35 | */ 36 | package org.jdesktop.swingx.table; -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/LoginPane_it.properties: -------------------------------------------------------------------------------- 1 | # Strings used by JXLoginDialog and JXLoginPanel 2 | JXLoginPane.okString=OK 3 | JXLoginPane.okString.mnemonic=O 4 | JXLoginPane.cancelString=Annulla 5 | JXLoginPane.cancelString.mnemonic=C 6 | JXLoginPane.stopString=Stop Login 7 | JXLoginPane.stopString.mnemonic=S 8 | JXLoginPane.promptString=Immetti il tuo Nome Utente e Password 9 | JXLoginPane.serverString=Server 10 | JXLoginPane.nameString=Nome Utente 11 | JXLoginPane.loginString=Login 12 | JXLoginPane.bannerString=Identificativo Utente 13 | JXLoginPane.titleString=Identificativo Utente 14 | JXLoginPane.passwordString=Password 15 | JXLoginPane.rememberUserString=Ricordami 16 | JXLoginPane.rememberPasswordString=Ricorda la Password 17 | JXLoginPane.loggingInString=Attendere, autenticazione in corso.... 18 | JXLoginPane.failedString=Login fallito; nome utente/password non validi. 19 | JXLoginPane.enterUserNamePassword=Immetti il tuo Nome Utente e Password 20 | JXLoginPane.pleaseWait=Attendere, autenticazione in corso.... 21 | JXLoginPane.cancelWait=Annullamento login, attendere.... 22 | JXLoginPane.cancelLogin=Stop login 23 | JXLoginPane.errorMessage=Autenticazione fallita

\ 24 | Controlla il tuo Nome Utente/Password. Controlla che Bloc-Maiusc \ 25 | non sia attivo. 26 | 27 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/multislider/ThumbDataListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | package org.jdesktop.swingx.multislider; 23 | 24 | /** 25 | * 26 | * @author jm158417 27 | */ 28 | public interface ThumbDataListener { 29 | public void valueChanged(ThumbDataEvent e); 30 | public void positionChanged(ThumbDataEvent e); 31 | public void thumbAdded(ThumbDataEvent e); 32 | public void thumbRemoved(ThumbDataEvent e); 33 | } -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/LoginPane_pt_BR.properties: -------------------------------------------------------------------------------- 1 | # Strings used by JXLoginDialog and JXLoginPanel 2 | JXLoginPane.okString=OK 3 | JXLoginPane.okString.mnemonic='O' 4 | JXLoginPane.cancelString=Cancelar 5 | JXLoginPane.cancelString.mnemonic='C' 6 | JXLoginPane.stopString=Interromper Autentica\u00E7\u00E3o 7 | JXLoginPane.stopString.mnemonic=P 8 | JXLoginPane.promptString=Informe seu usu\u00E1rio e senha 9 | JXLoginPane.serverString=Servidor 10 | JXLoginPane.nameString=Usu\u00E1rio 11 | JXLoginPane.loginString=Ok 12 | JXLoginPane.bannerString=Autentica\u00E7\u00E3o 13 | JXLoginPane.titleString=Autentica\u00E7\u00E3o 14 | JXLoginPane.passwordString=Senha 15 | JXLoginPane.rememberUserString=Lembrar usu\u00E1rio 16 | JXLoginPane.rememberPasswordString=Lembrar senha 17 | JXLoginPane.loggingInString=Aguarde, autenticando... 18 | JXLoginPane.failedString=Autentica\u00E7\u00E3o falhou; combina\u00E7\u00E3o usu\u00E1rio/senha inv\u00E1lida. 19 | JXLoginPane.enterUserNamePassword=Informe seu usu\u00E1rio e senha 20 | JXLoginPane.pleaseWait=Aguarde, autenticando... 21 | JXLoginPane.cancelWait=Aguarde, cancelando autentica\u00E7\u00E3o... 22 | JXLoginPane.cancelLogin=Parar autentica\u00E7\u00E3o 23 | JXLoginPane.errorMessage=N\u00E3o foi poss\u00edvel autenticar.

Confira usu\u00E1rio e senha e verifique se Caps Lock est\u00E1 ativado. 24 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/event/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2009 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | * 21 | */ 22 | /**Contains API for events added as part of JDNC's Swing extensions, 23 | such as message and progress events. 24 | 25 |

Package Specification

26 | 27 | 30 | 31 |

Related Documentation

32 | 33 | 36 | 37 | */ 38 | package org.jdesktop.swingx.event; -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/AbstractLayoutManager.java: -------------------------------------------------------------------------------- 1 | package org.jdesktop.swingx; 2 | 3 | import java.awt.Component; 4 | import java.awt.Container; 5 | import java.awt.Dimension; 6 | import java.awt.LayoutManager; 7 | import java.io.Serializable; 8 | 9 | /** 10 | * A simple abstract class to handle common layout implementations. Package-private as we do NOT 11 | * want to export this as part of the public API. 12 | * 13 | * @author kschaefer 14 | */ 15 | abstract class AbstractLayoutManager implements LayoutManager, Serializable { 16 | private static final long serialVersionUID = 1446292747820044161L; 17 | 18 | /** 19 | * {@inheritDoc} 20 | *

21 | * This implementation does nothing. 22 | */ 23 | @Override 24 | public void addLayoutComponent(String name, Component comp) { 25 | //does nothing 26 | } 27 | 28 | /** 29 | * {@inheritDoc} 30 | *

31 | * This implementation does nothing. 32 | */ 33 | @Override 34 | public void removeLayoutComponent(Component comp) { 35 | // does nothing 36 | } 37 | 38 | /** 39 | * {@inheritDoc} 40 | *

41 | * This implementation defers to {@link #preferredLayoutSize(Container)}. 42 | */ 43 | @Override 44 | public Dimension minimumLayoutSize(Container parent) { 45 | return preferredLayoutSize(parent); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/LoginPane_nl.properties: -------------------------------------------------------------------------------- 1 | # Strings used by JXLoginDialog and JXLoginPane 2 | JXLoginPane.okString=OK 3 | JXLoginPane.okString.mnemonic=O 4 | JXLoginPane.cancelString=Annuleren 5 | JXLoginPane.cancelString.mnemonic=A 6 | JXLoginPane.stopString=Stop Login 7 | JXLoginPane.stopString.mnemonic=S 8 | JXLoginPane.promptString=Voer uw gebruikersnaam en wachtwoord in 9 | JXLoginPane.serverString=Server 10 | JXLoginPane.nameString=Gebruikersnaam 11 | JXLoginPane.loginString=Login 12 | JXLoginPane.bannerString=Login 13 | JXLoginPane.titleString=Login 14 | JXLoginPane.passwordString=Wachtwoord 15 | JXLoginPane.rememberUserString=Onthouden 16 | JXLoginPane.rememberPasswordString=Onthoud wachtwoord 17 | JXLoginPane.loggingInString=Even geduld, er wordt nu ingelogd... 18 | JXLoginPane.failedString=Inloggen mislukt; ongeldige gebruikersnaam/wachtwoord combinatie. 19 | JXLoginPane.enterUserNamePassword=Voer uw gebruikersnaam en wachtwoord in 20 | JXLoginPane.pleaseWait=Even geduld, er wordt nu ingelogd... 21 | JXLoginPane.cancelWait=Login wordt geannuleerd, even geduld... 22 | JXLoginPane.cancelLogin=Stop login 23 | JXLoginPane.errorMessage=Kan niet inloggen

\ 24 | Controleer uw gebruikersnaam en wachtwoord. Controleer of Caps Lock aan \ 25 | staat. 26 | JXLoginPane.capsOnWarning=CapsLock staat AAN! 27 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/search/PatternMatcher.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2009 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | * 21 | */ 22 | package org.jdesktop.swingx.search; 23 | 24 | import java.util.regex.Pattern; 25 | 26 | /** 27 | * Implemented by classes that work with {@link java.util.regex.Pattern} objects. 28 | 29 | * @author Ramesh Gupta 30 | */ 31 | public interface PatternMatcher { 32 | public Pattern getPattern(); 33 | public void setPattern(Pattern pattern); 34 | } -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/plaf/LoginPaneUI.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | package org.jdesktop.swingx.plaf; 23 | import java.awt.Image; 24 | 25 | import javax.swing.plaf.PanelUI; 26 | 27 | /** 28 | * 29 | * @author rbair 30 | */ 31 | public abstract class LoginPaneUI extends PanelUI { 32 | /** 33 | * @return The Image to use as the banner for the JXLoginPane. If 34 | * this method returns null, then no banner will be shown. 35 | */ 36 | public abstract Image getBanner(); 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/renderer/PainterAware.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2006 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | package org.jdesktop.swingx.renderer; 22 | 23 | import org.jdesktop.swingx.painter.Painter; 24 | 25 | /** 26 | * Temporary hook to allow painters in rendering.

27 | * 28 | * NOTE: this will be removed as soon as the painter_work enters 29 | * main. 30 | * 31 | * @author Jeanette Winzenburg 32 | */ 33 | public interface PainterAware { 34 | void setPainter(Painter painter); 35 | Painter getPainter(); 36 | } 37 | -------------------------------------------------------------------------------- /src/test/java/org/jdesktop/swingx/decorator/TableColumnExtAsHighlighterClientIssues.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2007 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | * 21 | */ 22 | package org.jdesktop.swingx.decorator; 23 | 24 | 25 | /** 26 | * Contains failing tests for TableColumnExt in its role as HighlighterClient 27 | * 28 | * @author Jeanette Winzenburg 29 | */ 30 | public class TableColumnExtAsHighlighterClientIssues extends 31 | TableColumnExtAsHighlighterClientTest { 32 | 33 | 34 | public void testDummy() { 35 | 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/LoginPane_fr.properties: -------------------------------------------------------------------------------- 1 | # Strings used by JXLoginDialog and JXLoginPanel 2 | JXLoginPane.okString=OK 3 | JXLoginPane.okString.mnemonic='O' 4 | JXLoginPane.cancelString=Annuler 5 | JXLoginPane.cancelString.mnemonic='A' 6 | JXLoginPane.stopString=Interrompre 7 | JXLoginPane.stopString.mnemonic='I' 8 | JXLoginPane.promptString=Entrez votre login et mot de passe 9 | JXLoginPane.serverString=Serveur 10 | JXLoginPane.nameString=Nom 11 | JXLoginPane.loginString=Identifiant 12 | JXLoginPane.bannerString=Identifiant 13 | JXLoginPane.titleString=Identifiant 14 | JXLoginPane.passwordString=Mot de passe 15 | JXLoginPane.rememberUserString=Se souvenir de moi 16 | JXLoginPane.rememberPasswordString=Se souvenir du mot de passe 17 | JXLoginPane.loggingInString=Veuillez patienter, authentification en cours.... 18 | JXLoginPane.failedString=\u00C9ched d'authentification. Identifiant ou mot de passe invalide. 19 | JXLoginPane.enterUserNamePassword=Entrez votre identifiant et mot de pass 20 | JXLoginPane.pleaseWait=Veuillez patienter, authentification en cours.... 21 | JXLoginPane.cancelWait=Annulation de la connexion, veuillez patienter.... 22 | JXLoginPane.cancelLogin=Interrompre 23 | JXLoginPane.errorMessage=\u00C9chec d'authentification

\ 24 | V\u00E9rifiez votre identifiant et votre mot de passe. \ 25 | V\u00E9rifiez que la touche Verrouill. Maj. est d\u00E9sactiv\u00E9e. 26 | -------------------------------------------------------------------------------- /src/test/resources/org/jdesktop/swingx/resources/stringdata2.txt: -------------------------------------------------------------------------------- 1 | onebootwoboothreeboofourboofiveboosixbooseven 2 | 1boo2boo3boo4boo5boo6boo7 3 | firstboosecondboothirdboofourthboofifthboosixthbooseventh 4 | onebootwoboothreeboofourboofiveboosixbooseven 5 | 1boo2boo3boo4boo5boo6boo7 6 | firstboosecondboothirdboofourthboofifthboosixthbooseventh 7 | onebootwoboothreeboofourboofiveboosixbooseven 8 | 1boo2boo3boo4boo5boo6boo7 9 | firstboosecondboothirdboofourthboofifthboosixthbooseventh 10 | onebootwoboothreeboofourboofiveboosixbooseven 11 | 1boo2boo3boo4boo5boo6boo7 12 | firstboosecondboothirdboofourthboofifthboosixthbooseventh 13 | onebootwoboothreeboofourboofiveboosixbooseven 14 | 1boo2boo3boo4boo5boo6boo7 15 | firstboosecondboothirdboofourthboofifthboosixthbooseventh 16 | onebootwoboothreeboofourboofiveboosixbooseven 17 | 1boo2boo3boo4boo5boo6boo7 18 | firstboosecondboothirdboofourthboofifthboosixthbooseventh 19 | onebootwoboothreeboofourboofiveboosixbooseven 20 | 1boo2boo3boo4boo5boo6boo7 21 | firstboosecondboothirdboofourthboofifthboosixthbooseventh 22 | onebootwoboothreeboofourboofiveboosixbooseven 23 | 1boo2boo3boo4boo5boo6boo7 24 | firstboosecondboothirdboofourthboofifthboosixthbooseventh 25 | onebootwoboothreeboofourboofiveboosixbooseven 26 | 1boo2boo3boo4boo5boo6boo7 27 | firstboosecondboothirdboofourthboofifthboosixthbooseventh 28 | onebootwoboothreeboofourboofiveboosixbooseven 29 | 1boo2boo3boo4boo5boo6boo7 30 | firstboosecondboothirdboofourthboofifthboosixthbooseventh -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/LoginPane_de.properties: -------------------------------------------------------------------------------- 1 | # Strings used by JXLoginDialog and JXLoginPane 2 | JXLoginPane.okString=Ok 3 | JXLoginPane.okString.mnemonic=O 4 | JXLoginPane.cancelString=Abbrechen 5 | JXLoginPane.cancelString.mnemonic=A 6 | JXLoginPane.stopString=Anmeldung abbrechen 7 | JXLoginPane.stopString.mnemonic=A 8 | JXLoginPane.promptString=Bitte geben Sie Ihren Benutzernamen und Ihr Passwort ein 9 | JXLoginPane.serverString=Server 10 | JXLoginPane.nameString=Benutzername 11 | JXLoginPane.loginString=Anmelden 12 | JXLoginPane.bannerString=Anmeldung 13 | JXLoginPane.titleString=Anmeldung 14 | JXLoginPane.passwordString=Passwort 15 | JXLoginPane.rememberUserString=Benutzernamen merken 16 | JXLoginPane.rememberPasswordString=Passwort merken 17 | JXLoginPane.loggingInString=Bitte warten, Sie werden angemeldet... 18 | JXLoginPane.failedString=Anmeldung fehlgeschlagen; Der Benutzername mit diesem Passwort ist ung\u00FCltig. 19 | JXLoginPane.enterUserNamePassword=Bitte geben Sie Ihren Benutzernamen und Ihr Passwort ein 20 | JXLoginPane.pleaseWait=Bitte warten, Sie werden angemeldet... 21 | JXLoginPane.cancelWait=Anmeldung wird abgebrochen, bitte warten... 22 | JXLoginPane.cancelLogin=Anmeldung abbrechen 23 | JXLoginPane.errorMessage=Anmeldung fehlgeschlagen

\ 24 | Bitte pr\u00FCfen Sie den Benutzernamen und das Passwort. 25 | JXLoginPane.capsOnWarning=Achtung: Die Hochstelltaste ('CapsLock') ist aktiv ! 26 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/LoginPane_pl.properties: -------------------------------------------------------------------------------- 1 | # Strings used by JXLoginDialog and JXLoginPane 2 | JXLoginPane.okString=OK 3 | JXLoginPane.okString.mnemonic=O 4 | JXLoginPane.cancelString=Anuluj 5 | JXLoginPane.cancelString.mnemonic=A 6 | JXLoginPane.stopString=Przerwij Logowanie 7 | JXLoginPane.stopString.mnemonic=P 8 | JXLoginPane.promptString= Podaj nazw\u0119 u\u017Cytkownika oraz has\u0142o 9 | JXLoginPane.serverString=Serwer 10 | JXLoginPane.nameString=Nazwa u\u017Cytkownika 11 | JXLoginPane.loginString=Logowanie 12 | JXLoginPane.bannerString=Logowanie 13 | JXLoginPane.titleString=Logowanie 14 | JXLoginPane.passwordString=Has\u0142o 15 | JXLoginPane.rememberUserString=Zapami\u0119taj mnie 16 | JXLoginPane.rememberPasswordString=Zapami\u0119taj has\u0142o 17 | JXLoginPane.loggingInString=Prosz\u0119 czeka\u0107, trwa logowanie... 18 | JXLoginPane.failedString=Nieudane logowanie; nieprawid\u0142owa nazwa u\u017Cytkownika lub has\u0142o. 19 | JXLoginPane.enterUserNamePassword=Podaj nazw\u0119 u\u017Cytkownika oraz has\u0142o 20 | JXLoginPane.pleaseWait=Prosz\u0119 czeka\u0107, trwa logowanie... 21 | JXLoginPane.cancelWait=Anulowanie logowania, prosz\u0119 czeka\u0107... 22 | JXLoginPane.cancelLogin=Anuluj logowanie 23 | JXLoginPane.errorMessage=Nieudane logowanie

Sprawd\u017A nazw\u0119 u\u017Cytkownika oraz has\u0142o. Sprawd\u017A czy Caps Lock jest
wcisni\u0119ty. 24 | JXLoginPane.capsOnWarning=Uwaga: CapsLock jest aktywny! 25 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/decorator/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2008 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | /** 22 | * Contains API used to implement coordinated sorting, filtering 23 | * and highlighting of the extended Swing cell-rendering component 24 | * classes JXTable, JXTreeTable, JXTree, and JXList.

25 | * 26 | * For details, see 27 | * 28 | * SwingX Highlighter Basics (in the wiki) .

29 | * 30 | * PENDING JW: describe here instead of linking ;-) 31 | */ 32 | package org.jdesktop.swingx.decorator; 33 | 34 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/LoginPane_sv.properties: -------------------------------------------------------------------------------- 1 | # Strings used by JXLoginDialog and JXLoginPanel 2 | JXLoginPane.okString=OK 3 | JXLoginPane.okString.mnemonic=O 4 | JXLoginPane.cancelString=Avbryt 5 | JXLoginPane.cancelString.mnemonic=v 6 | JXLoginPane.stopString=Avbryt inloggning 7 | JXLoginPane.stopString.mnemonic=v 8 | JXLoginPane.promptString=Ange ditt anv\u00E4ndarnamn och l\u00F6senord 9 | JXLoginPane.serverString=Server 10 | JXLoginPane.nameString=Anv\u00E4ndarnamn 11 | JXLoginPane.loginString=Inloggning 12 | JXLoginPane.bannerString=Inloggning 13 | JXLoginPane.titleString=Inloggning 14 | JXLoginPane.passwordString=L\u00F6senord 15 | JXLoginPane.rememberUserString=Kom ih\u00E5g mig 16 | JXLoginPane.rememberPasswordString=Kom ih\u00E5g l\u00F6senord 17 | JXLoginPane.loggingInString=Var god v\u00E4nta, inloggning p\u00E5g\u00E5r.... 18 | JXLoginPane.failedString=Inloggningen misslyckades; felaktig kombination av anv\u00E4ndarnamn/l\u00F6senord. 19 | JXLoginPane.enterUserNamePassword=Ange ditt anv\u00E4ndarnamn och l\u00F6senord 20 | JXLoginPane.pleaseWait=Var god v\u00E4nta, inloggning p\u00E5g\u00E5r.... 21 | JXLoginPane.cancelWait=Avbryter inloggningen, var god v\u00E4nta.... 22 | JXLoginPane.cancelLogin=Avbryt inloggning 23 | JXLoginPane.errorMessage=Inloggningen misslyckades

\ 24 | Kontrollera ditt anv\u00E4ndarnamn och l\u00F6senord. Kontrollera om Caps Lock \ 25 | \u00E4r aktiverat. 26 | JXLoginPane.capsOnWarning=Caps Lock \u00E4r aktiverat -------------------------------------------------------------------------------- /src/test/java/org/jdesktop/swingx/renderer/StringValuesIssues.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2009 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | * 21 | */ 22 | package org.jdesktop.swingx.renderer; 23 | 24 | import org.jdesktop.swingx.InteractiveTestCase; 25 | import org.junit.Test; 26 | import org.junit.runner.RunWith; 27 | import org.junit.runners.JUnit4; 28 | 29 | /** 30 | * 31 | */ 32 | @RunWith(JUnit4.class) 33 | public class StringValuesIssues extends InteractiveTestCase { 34 | 35 | @Test 36 | public void testDummy() { 37 | // keep runner happy if we have no issues 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /src/test/java/org/jdesktop/swingx/test/TreeTableUtils.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | package org.jdesktop.swingx.test; 5 | 6 | import java.util.Enumeration; 7 | import java.util.Vector; 8 | 9 | import javax.swing.tree.DefaultMutableTreeNode; 10 | import javax.swing.tree.DefaultTreeModel; 11 | 12 | import org.jdesktop.swingx.treetable.DefaultMutableTreeTableNode; 13 | import org.jdesktop.swingx.treetable.DefaultTreeTableModel; 14 | 15 | /** 16 | * 17 | */ 18 | public class TreeTableUtils { 19 | private TreeTableUtils() { 20 | //does nothing 21 | } 22 | 23 | public static DefaultTreeTableModel convertDefaultTreeModel(DefaultTreeModel model) { 24 | Vector v = new Vector(); 25 | v.add("A"); 26 | DefaultTreeTableModel ttModel = new DefaultTreeTableModel(null, v); 27 | 28 | ttModel.setRoot(convertDefaultMutableTreeNode((DefaultMutableTreeNode) model.getRoot())); 29 | 30 | return ttModel; 31 | } 32 | 33 | @SuppressWarnings("unchecked") 34 | private static DefaultMutableTreeTableNode convertDefaultMutableTreeNode(DefaultMutableTreeNode node) { 35 | DefaultMutableTreeTableNode ttNode = new DefaultMutableTreeTableNode(node.getUserObject()); 36 | 37 | Enumeration children = node.children(); 38 | 39 | while (children.hasMoreElements()) { 40 | ttNode.add(convertDefaultMutableTreeNode(children.nextElement())); 41 | } 42 | 43 | return ttNode; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/LoginPane_es.properties: -------------------------------------------------------------------------------- 1 | # Spanish properties for SwingX 2 | # JXLoginPane 3 | # @author: Sergio Samayoa 4 | # @author: Lola Traba Martínez 5 | 6 | JXLoginPane.okString=Aceptar 7 | JXLoginPane.okString.mnemonic='A' 8 | JXLoginPane.cancelString=Cancelar 9 | JXLoginPane.cancelString.mnemonic='C' 10 | JXLoginPane.nameString=Usuario 11 | JXLoginPane.loginString=Conectar 12 | JXLoginPane.passwordString=Contrase\u00F1a 13 | JXLoginPane.rememberUserString=Recu\u00E9rdame 14 | JXLoginPane.rememberPasswordString=Recordar contrase\u00F1a 15 | JXLoginPane.loggingInString=Conectando, espere por favor... 16 | JXLoginPane.bannerString=Conectar 17 | JXLoginPane.cancelLogin=Cancelar conexi\u00F3n 18 | JXLoginPane.cancelWait=Cancelando conexi\u00F3n, espere por favor... 19 | JXLoginPane.capsOnWarning=\u00A1Bloqueo de may\u00FAsculas activado! 20 | JXLoginPane.enterUserNamePassword=Ingrese su nombre de usuario y contrase\u00F1a 21 | JXLoginPane.errorMessage=No fue posible autenticar.

Compruebe su nombre de usuario y contrase\u00F1a. Compruebe si el bloqueo de may\u00FAsculas est\u00E1 activado. 22 | JXLoginPane.failedString=Fall\u00F3 la conexi\u00F3n; la combinaci\u00F3n de nombre de usuario/contrase\u00F1a es inv\u00E1lida. 23 | JXLoginPane.pleaseWait=Espere por favor... 24 | JXLoginPane.promptString=Ingrese su nombre de usuario y contrase\u00F1a 25 | JXLoginPane.serverString=Servidor 26 | JXLoginPane.stopString=Detener conexi\u00F3n 27 | JXLoginPane.stopString.mnemonic=D 28 | JXLoginPane.titleString=Conectar -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/plaf/PromptTextAreaUI.java: -------------------------------------------------------------------------------- 1 | package org.jdesktop.swingx.plaf; 2 | 3 | import javax.swing.JTextArea; 4 | import javax.swing.plaf.TextUI; 5 | import javax.swing.text.JTextComponent; 6 | 7 | /** 8 | * {@link PromptTextUI} implementation for rendering prompts on 9 | * {@link JTextArea}s and uses a {@link JTextArea} as a prompt component. 10 | * 11 | * @author Peter Weishapl 12 | * 13 | */ 14 | public class PromptTextAreaUI extends PromptTextUI { 15 | /** 16 | * Shared prompt renderer. 17 | */ 18 | private final static JTextArea txt = new JTextArea(); 19 | 20 | /** 21 | * Creates a new {@link PromptTextAreaUI}. 22 | * 23 | * @param delegate 24 | */ 25 | public PromptTextAreaUI(TextUI delegate) { 26 | super(delegate); 27 | } 28 | 29 | /** 30 | * Overrides {@link #getPromptComponent(JTextComponent)} to additionally 31 | * update {@link JTextArea} specific properties. 32 | */ 33 | @Override 34 | public JTextComponent getPromptComponent(JTextComponent txt) { 35 | JTextArea lbl = (JTextArea) super.getPromptComponent(txt); 36 | JTextArea txtArea = (JTextArea) txt; 37 | 38 | lbl.setColumns(txtArea.getColumns()); 39 | lbl.setRows(txtArea.getRows()); 40 | 41 | return lbl; 42 | } 43 | 44 | /** 45 | * Returns a shared {@link JTextArea}. 46 | */ 47 | @Override 48 | protected JTextComponent createPromptComponent() { 49 | txt.updateUI(); 50 | return txt; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/auth/LoginAdapter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | package org.jdesktop.swingx.auth; 23 | 24 | /** 25 | * 26 | * @author rbair 27 | */ 28 | public abstract class LoginAdapter implements LoginListener { 29 | /** 30 | * @inheritDoc 31 | */ 32 | public void loginSucceeded(LoginEvent source) {} 33 | 34 | /** 35 | * @inheritDoc 36 | */ 37 | public void loginStarted(LoginEvent source) {} 38 | 39 | /** 40 | * @inheritDoc 41 | */ 42 | public void loginFailed(LoginEvent source) {} 43 | 44 | /** 45 | * @inheritDoc 46 | */ 47 | public void loginCanceled(LoginEvent source) {} 48 | } 49 | -------------------------------------------------------------------------------- /src/test/java/org/jdesktop/swingx/treetable/TreeTableModelIssues.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | */ 7 | package org.jdesktop.swingx.treetable; 8 | 9 | import java.util.logging.Logger; 10 | 11 | import javax.swing.tree.TreePath; 12 | 13 | import org.jdesktop.swingx.InteractiveTestCase; 14 | import org.junit.Test; 15 | import org.junit.runner.RunWith; 16 | import org.junit.runners.JUnit4; 17 | 18 | /** 19 | * 20 | * Known issues around TreeTableModel and related classes. 21 | * 22 | */ 23 | @RunWith(JUnit4.class) 24 | public class TreeTableModelIssues extends InteractiveTestCase { 25 | @SuppressWarnings("unused") 26 | private static final Logger LOG = Logger 27 | .getLogger(TreeTableModelIssues.class.getName()); 28 | 29 | public static void main(String[] args) { 30 | TreeTableModelIssues test = new TreeTableModelIssues(); 31 | try { 32 | test.runInteractiveTests(); 33 | } catch (Exception e) { 34 | e.printStackTrace(); 35 | } 36 | } 37 | 38 | 39 | /** 40 | * TreePath issue: null must not be allowed as path element. 41 | * The constructor doesn't cope with array containing null. 42 | */ 43 | @Test 44 | public void testTreeStructureChangedEmptyPath() { 45 | TreePath path = new TreePath(new Object[] {null}); 46 | assertNotNull("TreePath must not contain null path elements", 47 | path.getLastPathComponent()); 48 | } 49 | 50 | 51 | } 52 | -------------------------------------------------------------------------------- /src/test/java/org/jdesktop/swingx/JXTaskPaneContainerIssues.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2007 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | * 21 | */ 22 | package org.jdesktop.swingx; 23 | 24 | import java.util.logging.Logger; 25 | 26 | import junit.framework.TestCase; 27 | 28 | /** 29 | * 30 | * @author Jeanette Winzenburg 31 | */ 32 | public class JXTaskPaneContainerIssues extends TestCase { 33 | @SuppressWarnings("unused") 34 | private static final Logger LOG = Logger 35 | .getLogger(JXTaskPaneContainerIssues.class.getName()); 36 | 37 | 38 | /** 39 | * Empty test method to keep the test runner happy if we have no 40 | * open issues. 41 | */ 42 | public void testDummy() { 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/test/java/org/jdesktop/test/PropertyReport.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Created on 14.02.2012 3 | * 4 | */ 5 | package org.jdesktop.test; 6 | 7 | import java.awt.Component; 8 | 9 | import org.jdesktop.beans.AbstractBean; 10 | 11 | /** 12 | * Subclass as quick-fix for dependency issue. 13 | * 14 | * PENDING JW: need better solution ... 15 | * PropertyChangeReport resides in swingx-testsupport which is stand-alone. 16 | * Convenience constructor needs AbstractBean which is in swingx-common. 17 | * 18 | * @author Jeanette Winzenburg, Berlin 19 | */ 20 | public class PropertyReport extends PropertyChangeReport { 21 | 22 | /** 23 | * Instantiates a PropertyChangeReport. 24 | */ 25 | public PropertyReport() { 26 | this((AbstractBean) null); 27 | } 28 | 29 | /** 30 | * Instantiates a PropertyChangeReport and registers itself with the given bean 31 | * if that is not null. 32 | * 33 | * @param bean the AbstractBean to register itself to. 34 | */ 35 | public PropertyReport(AbstractBean bean) { 36 | if (bean != null) { 37 | bean.addPropertyChangeListener(this); 38 | } 39 | } 40 | 41 | /** 42 | * Instantiates a PropertyChangeReport and registers itself with the given component 43 | * if that is not null. 44 | * 45 | * @param component the Component to register itself to. 46 | */ 47 | public PropertyReport(Component component) { 48 | if(component != null) { 49 | component.addPropertyChangeListener(this); 50 | } 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/combobox/ListModelComboBoxWrapper.java: -------------------------------------------------------------------------------- 1 | package org.jdesktop.swingx.combobox; 2 | 3 | import javax.swing.AbstractListModel; 4 | import javax.swing.ComboBoxModel; 5 | import javax.swing.ListModel; 6 | import javax.swing.event.ListDataListener; 7 | 8 | public class ListModelComboBoxWrapper extends AbstractListModel implements ComboBoxModel { 9 | private ListModel delegate; 10 | 11 | private Object selectedItem; 12 | 13 | public ListModelComboBoxWrapper(ListModel delegate) { 14 | this.delegate = delegate; 15 | } 16 | 17 | @Override 18 | public int getSize() { 19 | return delegate.getSize(); 20 | } 21 | 22 | @Override 23 | public Object getElementAt(int index) { 24 | return delegate.getElementAt(index); 25 | } 26 | 27 | @Override 28 | public void addListDataListener(ListDataListener l) { 29 | super.addListDataListener(l); 30 | delegate.addListDataListener(l); 31 | } 32 | 33 | @Override 34 | public void removeListDataListener(ListDataListener l) { 35 | delegate.removeListDataListener(l); 36 | super.removeListDataListener(l); 37 | } 38 | 39 | @Override 40 | public void setSelectedItem(Object anItem) { 41 | if ((selectedItem != null && !selectedItem.equals(anItem)) 42 | || selectedItem == null && anItem != null) { 43 | selectedItem = anItem; 44 | 45 | fireContentsChanged(this, -1, -1); 46 | } 47 | } 48 | 49 | @Override 50 | public Object getSelectedItem() { 51 | return selectedItem; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /src/test/java/org/jdesktop/test/TreeSelectionReport.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | */ 7 | 8 | 9 | package org.jdesktop.test; 10 | 11 | import java.util.Collections; 12 | import java.util.LinkedList; 13 | import java.util.List; 14 | 15 | import javax.swing.event.TreeSelectionEvent; 16 | import javax.swing.event.TreeSelectionListener; 17 | 18 | /** 19 | * A TreeSelectionListener that stores the received TreeSelectionEvents. 20 | * 21 | * 22 | */ 23 | public class TreeSelectionReport implements TreeSelectionListener { 24 | 25 | /** 26 | * Holds a list of all received PropertyChangeEvents. 27 | */ 28 | protected List events = Collections.synchronizedList(new LinkedList()); 29 | 30 | //------------------------ implement ListSelectionListener 31 | 32 | public void valueChanged(TreeSelectionEvent e) { 33 | events.add(0, e); 34 | 35 | } 36 | 37 | 38 | public void clear() { 39 | events.clear(); 40 | } 41 | 42 | public boolean hasEvents() { 43 | return !events.isEmpty(); 44 | } 45 | 46 | public int getEventCount() { 47 | return events.size(); 48 | } 49 | 50 | 51 | public TreeSelectionEvent getLastEvent() { 52 | return getLastFrom(events); 53 | 54 | } 55 | 56 | private TreeSelectionEvent getLastFrom(List list) { 57 | return list.isEmpty() 58 | ? null : list.get(0); 59 | } 60 | 61 | 62 | } 63 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/auth/LoginEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | package org.jdesktop.swingx.auth; 22 | import java.util.EventObject; 23 | 24 | /** 25 | * This is an event object that is passed to login listener methods 26 | * 27 | * @author Shai Almog 28 | */ 29 | public class LoginEvent extends EventObject { 30 | private Throwable cause; 31 | 32 | public LoginEvent(Object source) { 33 | this(source, null); 34 | } 35 | 36 | /** Creates a new instance of LoginEvent */ 37 | public LoginEvent(Object source, Throwable cause) { 38 | super(source); 39 | this.cause = cause; 40 | } 41 | 42 | public Throwable getCause() { 43 | return cause; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/test/java/org/jdesktop/swingx/UIDefaultsResourceBundleCheck.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Created on 23.02.2007 3 | * 4 | */ 5 | package org.jdesktop.swingx; 6 | 7 | import java.util.Locale; 8 | 9 | import org.jdesktop.swingx.plaf.UIManagerExt; 10 | import org.jdesktop.swingx.resources.swingx; 11 | 12 | /** 13 | * Standalone example for problems with application resourceBundle.

14 | * 15 | * Run in jdk5: the found resource value is always in the system's default 16 | * locale.

17 | * 18 | * Run in jdk6: the found resource value is correctly localized. 19 | * 20 | * @author Karl Schaefer 21 | */ 22 | public class UIDefaultsResourceBundleCheck { 23 | /** 24 | * @param args 25 | * unused 26 | */ 27 | public static void main(String[] args) { 28 | UIManagerExt.addResourceBundle( 29 | swingx.class.getName()); 30 | System.out.println(UIManagerExt.getString("LoginPane.1")); 31 | System.out.println(UIManagerExt.getString("LoginPane.1", Locale.US)); 32 | System.out.println(UIManagerExt.getString("LoginPane.1", Locale.GERMAN)); 33 | System.out.println(UIManagerExt.getString("LoginPane.1", Locale.GERMANY)); 34 | System.out.println(UIManagerExt.getString("LoginPane.1", Locale.FRENCH)); 35 | System.out.println(UIManagerExt.getString("LoginPane.1", Locale.FRANCE)); 36 | System.out.println(UIManagerExt.getString("LoginPane.1", Locale.CANADA_FRENCH)); 37 | System.out.println(UIManagerExt.getString("LoginPane.1", new Locale("pt"))); 38 | System.out.println(UIManagerExt.getString("LoginPane.1", new Locale("pt", "BR"))); 39 | System.out.println(UIManagerExt.getString("LoginPane.1", Locale.KOREAN)); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/plaf/MultiThumbSliderAddon.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2008 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | package org.jdesktop.swingx.plaf; 22 | 23 | import org.jdesktop.swingx.JXMultiThumbSlider; 24 | 25 | /** 26 | * 27 | * @author jm158417 28 | */ 29 | public class MultiThumbSliderAddon extends AbstractComponentAddon { 30 | 31 | /** Creates a new instance of MultiThumbSliderAddon */ 32 | public MultiThumbSliderAddon() { 33 | super("JXMultiThumbSlider"); 34 | } 35 | 36 | @Override 37 | protected void addBasicDefaults(LookAndFeelAddons addon, DefaultsList defaults) { 38 | super.addBasicDefaults(addon, defaults); 39 | 40 | defaults.add(JXMultiThumbSlider.uiClassID, 41 | "org.jdesktop.swingx.plaf.basic.BasicMultiThumbSliderUI"); 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/plaf/TaskPaneUI.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | package org.jdesktop.swingx.plaf; 22 | 23 | import java.awt.Component; 24 | 25 | import javax.swing.Action; 26 | import javax.swing.JButton; 27 | import javax.swing.plaf.PanelUI; 28 | 29 | /** 30 | * Pluggable UI for JXTaskPane. 31 | * 32 | * @author Frederic Lavigne 33 | */ 34 | public abstract class TaskPaneUI extends PanelUI { 35 | 36 | /** 37 | * Called by the component when an action is added to the component through 38 | * the {@link org.jdesktop.swingx.JXTaskPane#add(Action)} method. 39 | * 40 | * @param action 41 | * @return a component built from the action. 42 | */ 43 | public Component createAction(Action action) { 44 | return new JButton(action); 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/prompt/BuddyButton.java: -------------------------------------------------------------------------------- 1 | package org.jdesktop.swingx.prompt; 2 | 3 | import java.awt.Cursor; 4 | import java.awt.Insets; 5 | 6 | import javax.swing.BorderFactory; 7 | import javax.swing.JButton; 8 | import javax.swing.border.Border; 9 | 10 | import org.jdesktop.swingx.plaf.SearchFieldUI; 11 | 12 | /** 13 | * Non focusable, no border, no margin and insets button with no content area 14 | * filled. 15 | * 16 | * @author Peter Weishapl 17 | * 18 | */ 19 | public class BuddyButton extends JButton { 20 | public BuddyButton() { 21 | this(null); 22 | } 23 | 24 | public BuddyButton(String text) { 25 | super(text); 26 | setFocusable(false); 27 | setMargin(SearchFieldUI.NO_INSETS); 28 | 29 | // Windows UI will add 1 pixel for width and height, if this is true 30 | setFocusPainted(false); 31 | 32 | setBorderPainted(false); 33 | setContentAreaFilled(false); 34 | setIconTextGap(0); 35 | 36 | setBorder(null); 37 | 38 | setOpaque(false); 39 | 40 | setCursor(Cursor.getDefaultCursor()); 41 | } 42 | 43 | // Windows UI overrides Insets. 44 | // Who knows what other UIs are doing... 45 | @Override 46 | public Insets getInsets() { 47 | return SearchFieldUI.NO_INSETS; 48 | } 49 | 50 | @Override 51 | public Insets getInsets(Insets insets) { 52 | return getInsets(); 53 | } 54 | 55 | @Override 56 | public Insets getMargin() { 57 | return getInsets(); 58 | } 59 | 60 | @Override 61 | public void setBorder(Border border) { 62 | // Don't let Motif overwrite my Border 63 | super.setBorder(BorderFactory.createEmptyBorder()); 64 | } 65 | } -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/plaf/BusyLabelUI.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | package org.jdesktop.swingx.plaf; 23 | 24 | import java.awt.Dimension; 25 | 26 | import org.jdesktop.swingx.painter.BusyPainter; 27 | 28 | /** 29 | * 30 | * @author rah003 31 | */ 32 | public interface BusyLabelUI { 33 | /** 34 | * @return The BusyPainter for the JXBusyLabel. If 35 | * this method returns null, then no progress indication will be shown by busy label. 36 | */ 37 | public BusyPainter getBusyPainter(Dimension dim); 38 | 39 | /** 40 | * Delay between moving from one point to another. The exact timing will be close to the selected value but is not guaranteed to be precise (subject to the timing precision of underlaying jvm). 41 | * @return Delay in ms. 42 | */ 43 | public int getDelay(); 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/treetable/TreeTableModelProvider.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Created on 11.01.2011 3 | * 4 | */ 5 | package org.jdesktop.swingx.treetable; 6 | 7 | 8 | /** 9 | * Interface which guarantees access to a TreeTableModel. It is implemented by 10 | * the internal TreeTableModelAdapter of JXTreeTable to allow direct access to 11 | * the underlying TreeTableModel from the adapter. 12 | *

13 | * 14 | * That's useful f.i. when trying to configure TableColumnExt in a 15 | * ColumnFactory, like in 16 | * 17 | *

18 |  * 
19 |  * JXTreeTable table = new JXTreeTable();
20 |  * ColumnFactory factory = new ColumnFactory() {
21 |  * 
22 |  *     @Override
23 |  *     public void configureTableColumn(TableModel model,
24 |  *             TableColumnExt columnExt) {
25 |  *         super.configureTableColumn(model, columnExt);
26 |  *         if (model instanceof TreeTableModelProvider) {
27 |  *             TreeTableModel treeTableModel = ((TreeTableModelProvider) model).getTreeTableModel();
28 |  *             if (treeTableModel.getHierarchicalColumn() == columnExt.getModelIndex()) {
29 |  *                 columnExt.setTitle("Hierarchical: " + columnExt.getTitle());
30 |  *             }
31 |  *         }
32 |  *     }
33 |  * };
34 |  * table.setColumnFactory(factory);
35 |  * table.setTreeTableModel(new FileSystemModel());
36 |  * 
37 |  * 
38 |  * 
39 | * 40 | * @author Jeanette Winzenburg, Berlin 41 | */ 42 | public interface TreeTableModelProvider { 43 | 44 | /** 45 | * Returns a TreeTableModel, guaranteed to be not null. 46 | * 47 | * @return a TreeTableModel, guaranteed to be not null. 48 | */ 49 | TreeTableModel getTreeTableModel(); 50 | 51 | } 52 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/rollover/TableRolloverProducer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2007 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | * 21 | */ 22 | package org.jdesktop.swingx.rollover; 23 | 24 | import java.awt.Point; 25 | 26 | import javax.swing.JComponent; 27 | import javax.swing.JTable; 28 | 29 | /** 30 | * Table-specific implementation of RolloverProducer. 31 | * 32 | * @author Jeanette Winzenburg 33 | */ 34 | public class TableRolloverProducer extends RolloverProducer { 35 | 36 | @Override 37 | protected void updateRolloverPoint(JComponent component, Point mousePoint) { 38 | JTable table = (JTable) component; 39 | int col = table.columnAtPoint(mousePoint); 40 | int row = table.rowAtPoint(mousePoint); 41 | if ((col < 0) || (row < 0)) { 42 | row = -1; 43 | col = -1; 44 | } 45 | rollover.x = col; 46 | rollover.y = row; 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/plaf/synth/SynthUI.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2009 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | * 21 | */ 22 | package org.jdesktop.swingx.plaf.synth; 23 | 24 | import java.awt.Graphics; 25 | 26 | import javax.swing.JComponent; 27 | import javax.swing.plaf.synth.SynthContext; 28 | 29 | /** 30 | * Replacement of sun.swing.plaf.SynthUI.

31 | * 32 | * Note: this is a temporary emergency measure to make SwingX web-deployable. It is 33 | * used internally only. Expect problems in future, as custom styles might not be 34 | * found: SynthStyleFactory checks against type of sun SynthUI. 35 | * 36 | * @author Jeanette Winzenburg 37 | */ 38 | public interface SynthUI { 39 | 40 | public SynthContext getContext(JComponent arg0); 41 | 42 | public void paintBorder(SynthContext context, Graphics g, int x, 43 | int y, int w, int h); 44 | 45 | 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/multislider/Thumb.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | package org.jdesktop.swingx.multislider; 23 | 24 | /** 25 | * 26 | * @author jm158417 27 | */ 28 | public class Thumb { 29 | private float position; 30 | private E object; 31 | private MultiThumbModel model; 32 | 33 | /** Creates a new instance of Thumb */ 34 | public Thumb(MultiThumbModel model) { 35 | this.model = model; 36 | } 37 | 38 | public float getPosition() { 39 | return position; 40 | } 41 | 42 | public void setPosition(float position) { 43 | this.position = position; 44 | model.thumbPositionChanged(this); 45 | } 46 | 47 | public E getObject() { 48 | return object; 49 | } 50 | 51 | public void setObject(E object) { 52 | this.object = object; 53 | model.thumbValueChanged(this); 54 | } 55 | } -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/rollover/RolloverRenderer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2006 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | package org.jdesktop.swingx.rollover; 22 | 23 | /** 24 | * Interface to mark renderers as "live".

25 | * 26 | * PENDING: probably need methods to enabled/click taking a similar 27 | * set of parameters as getXXComponent because the actual 28 | * outcome might depend on the given value. If so, we'll need 29 | * to extend the XXRenderer interfaces. 30 | * 31 | * @author Jeanette Winzenburg 32 | */ 33 | public interface RolloverRenderer { 34 | /** 35 | * 36 | * @return true if rollover effects are on and clickable. 37 | */ 38 | boolean isEnabled(); 39 | 40 | /** 41 | * Same as AbstractButton.doClick(). It's up to client 42 | * code to prepare the renderer's component before calling 43 | * this method. 44 | * 45 | */ 46 | void doClick(); 47 | } 48 | -------------------------------------------------------------------------------- /src/test/java/org/jdesktop/test/AllReportsTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Created on 14.02.2012 3 | * 4 | */ 5 | package org.jdesktop.test; 6 | 7 | import org.jdesktop.beans.AbstractBean; 8 | import org.junit.Test; 9 | 10 | import junit.framework.TestCase; 11 | 12 | /** 13 | * Contains unit tests around the xxReport classes. 14 | * 15 | * @author Jeanette Winzenburg, Berlin 16 | */ 17 | public class AllReportsTest extends TestCase { 18 | 19 | 20 | /** 21 | * Multicast events not counted properly. 22 | */ 23 | @Test 24 | public void testPropertyEventCount() { 25 | DummyBean bean = new DummyBean(); 26 | PropertyReport report = new PropertyReport(bean); 27 | bean.fireMulticastChange(); 28 | bean.fireNameChange("myProperty"); 29 | assertEquals(2, report.getEventCount()); 30 | assertEquals(1, report.getMultiCastEventCount()); 31 | assertEquals(1, report.getNamedEventCount()); 32 | } 33 | 34 | @Test 35 | public void testPropertyMultipleMulticastCount() { 36 | DummyBean bean = new DummyBean(); 37 | PropertyReport report = new PropertyReport(bean); 38 | bean.fireMulticastChange(); 39 | bean.fireNameChange("myProperty"); 40 | bean.fireMulticastChange(); 41 | assertEquals(2, report.getMultiCastEventCount()); 42 | assertEquals(1, report.getNamedEventCount()); 43 | 44 | } 45 | 46 | public static class DummyBean extends AbstractBean { 47 | 48 | public void fireNameChange(String name) { 49 | firePropertyChange(name, null, "somevalue"); 50 | } 51 | 52 | public void fireMulticastChange() { 53 | firePropertyChange(null, null, null); 54 | } 55 | } 56 | 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/resources/org/jdesktop/swingx/plaf/basic/resources/LoginPane_cs.properties: -------------------------------------------------------------------------------- 1 | #Czech resource bundle created by Vity (vitywap@seznam.cz) 08/2007 2 | # Strings used by JXLoginDialog and JXLoginPanel 3 | JXLoginPane.okString=OK 4 | JXLoginPane.okString.mnemonic=O 5 | JXLoginPane.cancelString=Storno 6 | JXLoginPane.cancelString.mnemonic=S 7 | JXLoginPane.stopString=P\u0159eru\u0161it p\u0159ihla\u0161ov\u00e1n\u00ed 8 | JXLoginPane.stopString.mnemonic=P 9 | JXLoginPane.promptString=Zadejte sv\u00e9 u\u017eivatelsk\u00e9 jm\u00e9no a heslo 10 | JXLoginPane.serverString=Server 11 | JXLoginPane.nameString=U\u017eivatelsk\u00e9 Jm\u00e9no 12 | JXLoginPane.loginString=P\u0159ihl\u00e1sit 13 | JXLoginPane.bannerString=P\u0159ihl\u00e1\u0161en\u00ed 14 | JXLoginPane.titleString=P\u0159ihl\u00e1\u0161en\u00ed 15 | JXLoginPane.passwordString=Heslo 16 | JXLoginPane.rememberUserString=Zapamatovat 17 | JXLoginPane.rememberPasswordString=Zapamatovat Heslo 18 | JXLoginPane.loggingInString=Pros\u00edm \u010dekejte, prob\u00edh\u00e1 p\u0159ihla\u0161ov\u00e1n\u00ed.... 19 | JXLoginPane.failedString=P\u0159ihla\u0161ov\u00e1n\u00ed selhalo; \u0161patn\u00e9 u\u017eivatelsk\u00e9 jm\u00e9no nebo heslo. 20 | JXLoginPane.enterUserNamePassword=Zadejte sv\u00e9 u\u017eivatelsk\u00e9 jm\u00e9no a heslo 21 | JXLoginPane.pleaseWait=Pros\u00edm \u010dekejte, prob\u00edh\u00e1 p\u0159ihla\u0161ov\u00e1n\u00ed.... 22 | JXLoginPane.cancelWait=Ukon\u010den\u00ed p\u0159ihla\u0161ov\u00e1n\u00ed, pros\u00edm \u010dekejte.... 23 | JXLoginPane.cancelLogin=P\u0159eru\u0161it p\u0159ihla\u0161ov\u00e1n\u00ed 24 | JXLoginPane.errorMessage=Nepoda\u0159ilo se p\u0159ihl\u00e1sit.

\ 25 | Pros\u00edm ov\u011b\u0159te sv\u00e9 u\u017eivatelsk\u00e9 jm\u00e9no a heslo. \ 26 | P\u0159\u00edpadn\u011b zkontrolujte nen\u00ed-li zapnuta kl\u00e1vesa Caps Lock. 27 | -------------------------------------------------------------------------------- /src/test/java/org/jdesktop/swingx/JXStatusBarTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | */ 7 | 8 | package org.jdesktop.swingx; 9 | 10 | import java.awt.Dimension; 11 | 12 | import javax.swing.JLabel; 13 | import javax.swing.LookAndFeel; 14 | import javax.swing.UIManager; 15 | 16 | import org.junit.Test; 17 | import org.junit.runner.RunWith; 18 | import org.junit.runners.JUnit4; 19 | 20 | 21 | /** 22 | * 23 | * @author rbair 24 | */ 25 | @RunWith(JUnit4.class) 26 | public class JXStatusBarTest extends junit.framework.TestCase { 27 | 28 | /** 29 | * This test ensures that after the LAF is switched, the Border and 30 | * LayoutManager are still in valid states. 31 | */ 32 | @Test 33 | public void testLAFSwitch() throws Exception { 34 | //create a status bar with a single child, a label. 35 | //ensure that after switching look and feels, the layout manager 36 | //on the status bar still references the label 37 | JXStatusBar bar = new JXStatusBar(); 38 | JLabel label = new JLabel("Hello"); 39 | bar.add(label); 40 | Dimension dim = bar.getLayout().preferredLayoutSize(bar); 41 | toggleLAF(); 42 | toggleLAF(); 43 | assertEquals(dim, bar.getLayout().preferredLayoutSize(bar)); 44 | } 45 | 46 | private void toggleLAF() throws Exception { 47 | LookAndFeel laf = UIManager.getLookAndFeel(); 48 | if (laf == null || laf.getName().equals(UIManager.getSystemLookAndFeelClassName())) { 49 | UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName()); 50 | } else { 51 | UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /src/test/java/org/jdesktop/test/ChangeReport.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | */ 7 | 8 | 9 | package org.jdesktop.test; 10 | 11 | import java.util.Collections; 12 | import java.util.HashMap; 13 | import java.util.LinkedList; 14 | import java.util.List; 15 | import java.util.Map; 16 | 17 | import javax.swing.event.ChangeEvent; 18 | import javax.swing.event.ChangeListener; 19 | 20 | /** 21 | * A ChangeListener that stores the received ChangeEvents. 22 | * 23 | */ 24 | public class ChangeReport implements ChangeListener { 25 | 26 | /** 27 | * Holds a list of all received PropertyChangeEvents. 28 | */ 29 | protected List events = Collections.synchronizedList(new LinkedList()); 30 | protected Map eventMap = Collections.synchronizedMap(new HashMap()); 31 | 32 | //------------------------ implement PropertyChangeListener 33 | 34 | public void stateChanged(ChangeEvent evt) { 35 | events.add(0, evt); 36 | if (evt.getSource() != null) { 37 | eventMap.put(evt.getSource(), evt); 38 | } 39 | } 40 | 41 | public int getEventCount() { 42 | return events.size(); 43 | } 44 | 45 | public void clear() { 46 | events.clear(); 47 | eventMap.clear(); 48 | } 49 | 50 | public boolean hasEvents() { 51 | return !events.isEmpty(); 52 | } 53 | 54 | public ChangeEvent getLastEvent() { 55 | return events.isEmpty() 56 | ? null 57 | : (ChangeEvent) events.get(0); 58 | } 59 | 60 | public ChangeEvent getEvent(Object source) { 61 | return (ChangeEvent) eventMap.get(source); 62 | } 63 | 64 | } 65 | -------------------------------------------------------------------------------- /src/test/java/org/jdesktop/swingx/combobox/EnumComboBoxModelVisualCheck.java: -------------------------------------------------------------------------------- 1 | package org.jdesktop.swingx.combobox; 2 | 3 | import javax.swing.JComboBox; 4 | 5 | import org.jdesktop.swingx.JXFrame; 6 | 7 | public class EnumComboBoxModelVisualCheck extends EnumComboBoxModelUnitTest { 8 | public static void main(String[] args) throws Exception { 9 | EnumComboBoxModelUnitTest test = new EnumComboBoxModelUnitTest(); 10 | try { 11 | test.runInteractiveTests(); 12 | } catch (Exception e) { 13 | System.err.println("exception when executing interactive tests:"); 14 | e.printStackTrace(); 15 | } 16 | } 17 | 18 | /** 19 | * Issue #303-swingx: EnumComboBoxModel getSelectedItem throws 20 | * ClassCastException. Fixed. 21 | *

22 | * A visual example using default {@code toString} implementation. 23 | */ 24 | public void interactiveSelectedItem() { 25 | EnumComboBoxModel enumModel = new EnumComboBoxModel( 26 | MyEnum1.class); 27 | JComboBox box = new JComboBox(enumModel); 28 | box.setEditable(true); 29 | JXFrame frame = wrapInFrame(box, "enum combo"); 30 | frame.setVisible(true); 31 | } 32 | 33 | /** 34 | * Issue #303-swingx: EnumComboBoxModel getSelectedItem throws 35 | * ClassCastException. Fixed. 36 | *

37 | * A visual example using a custom {@code toString} implementation. 38 | */ 39 | public void interactiveSelectedItemWithCustomToString() { 40 | EnumComboBoxModel enumModel = new EnumComboBoxModel( 41 | MyEnum2.class); 42 | JComboBox box = new JComboBox(enumModel); 43 | box.setEditable(true); 44 | JXFrame frame = wrapInFrame(box, "enum with custom toString combo"); 45 | frame.setVisible(true); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/icon/EmptyIcon.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | package org.jdesktop.swingx.icon; 22 | 23 | import java.awt.Component; 24 | import java.awt.Graphics; 25 | import java.io.Serializable; 26 | 27 | import javax.swing.Icon; 28 | 29 | /** 30 | * An empty icon with arbitrary width and height. 31 | */ 32 | public final class EmptyIcon implements Icon, Serializable { 33 | 34 | private int width; 35 | 36 | private int height; 37 | 38 | public EmptyIcon() { 39 | this(0, 0); 40 | } 41 | 42 | public EmptyIcon(int width, int height) { 43 | this.width = width; 44 | this.height = height; 45 | } 46 | 47 | @Override 48 | public int getIconHeight() { 49 | return height; 50 | } 51 | 52 | @Override 53 | public int getIconWidth() { 54 | return width; 55 | } 56 | 57 | @Override 58 | public void paintIcon(Component c, Graphics g, int x, int y) { 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /src/test/java/org/jdesktop/swingx/JXEditorPaneIssues.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | */ 7 | 8 | package org.jdesktop.swingx; 9 | 10 | import java.util.logging.Logger; 11 | 12 | import javax.swing.Action; 13 | 14 | import org.jdesktop.swingx.action.ActionFactory; 15 | import org.jdesktop.swingx.action.ActionManager; 16 | import org.jdesktop.swingx.action.TargetManager; 17 | 18 | /** 19 | * A unit test for the JXEditorPane 20 | * 21 | * @author Mark Davidson 22 | */ 23 | public class JXEditorPaneIssues extends JXEditorPaneTest { 24 | @SuppressWarnings("all") 25 | private static final Logger LOG = Logger.getLogger(JXEditorPaneIssues.class 26 | .getName()); 27 | private static String testText = "This is an example of some text"; 28 | 29 | 30 | public void testEditorActionManagerWoes() { 31 | JXEditorPane editable = new JXEditorPane(); 32 | assertTrue(editable.isEditable()); 33 | ActionManager.getInstance().addAction(ActionFactory.createTargetableAction("undo", "Undo", "U")); 34 | TargetManager.getInstance().addTarget(editable); 35 | 36 | } 37 | 38 | /** 39 | * Issue #289-swingx: JXEditorPane actions should be disabled if not 40 | * applicable. 41 | * 42 | * undo must not perform on non-editable editor. 43 | * 44 | */ 45 | public void testXUndoActionNotEditable() { 46 | JXEditorPane editor = new JXEditorPane(); 47 | editor.setEditable(false); 48 | editor.setText(testText); 49 | assertEquals(testText, editor.getText()); 50 | Action action = editor.getActionMap().get("undo"); 51 | action.actionPerformed(null); 52 | assertEquals("undo must have no effect", testText, editor.getText()); 53 | } 54 | 55 | } 56 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/plaf/TipOfTheDayUI.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | package org.jdesktop.swingx.plaf; 22 | 23 | import java.awt.Component; 24 | 25 | import javax.swing.JDialog; 26 | import javax.swing.plaf.PanelUI; 27 | 28 | import org.jdesktop.swingx.JXTipOfTheDay; 29 | 30 | /** 31 | * Pluggable UI for JXTipOfTheDay. 32 | * 33 | * @author Frederic Lavigne 34 | */ 35 | public abstract class TipOfTheDayUI extends PanelUI { 36 | 37 | /** 38 | * Creates a new JDialog to display a JXTipOfTheDay panel. If 39 | * choice is not null then the window will offer a way for the 40 | * end-user to not show the tip of the day dialog. 41 | * 42 | * @param parentComponent 43 | * @param choice 44 | * @return a new JDialog to display a JXTipOfTheDay panel 45 | */ 46 | public abstract JDialog createDialog(Component parentComponent, 47 | JXTipOfTheDay.ShowOnStartupChoice choice); 48 | 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/rollover/ListRolloverProducer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2007 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | * 21 | */ 22 | package org.jdesktop.swingx.rollover; 23 | 24 | import java.awt.Point; 25 | import java.awt.Rectangle; 26 | 27 | import javax.swing.JComponent; 28 | import javax.swing.JList; 29 | 30 | /** 31 | * List-specific implementation of RolloverProducer. 32 | * 33 | * @author Jeanette Winzenburg 34 | */ 35 | public class ListRolloverProducer extends RolloverProducer { 36 | 37 | @Override 38 | protected void updateRolloverPoint(JComponent component, Point mousePoint) { 39 | JList list = (JList) component; 40 | int row = list.locationToIndex(mousePoint); 41 | if (row >= 0) { 42 | Rectangle cellBounds = list.getCellBounds(row, row); 43 | if (!cellBounds.contains(mousePoint)) { 44 | row = -1; 45 | } 46 | } 47 | int col = row < 0 ? -1 : 0; 48 | rollover.x = col; 49 | rollover.y = row; 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /src/test/java/org/jdesktop/swingx/plaf/basic/BasicSearchFieldUITest.java: -------------------------------------------------------------------------------- 1 | package org.jdesktop.swingx.plaf.basic; 2 | 3 | import static org.junit.Assert.assertSame; 4 | 5 | import javax.swing.UIManager; 6 | import javax.swing.text.AbstractDocument; 7 | 8 | import org.jdesktop.swingx.JXSearchField; 9 | import org.jdesktop.swingx.plaf.SearchFieldUI; 10 | import org.jdesktop.swingx.search.NativeSearchFieldSupport; 11 | import org.junit.Before; 12 | import org.junit.Test; 13 | 14 | 15 | public class BasicSearchFieldUITest { 16 | private JXSearchField sf; 17 | private SearchFieldUI ui; 18 | 19 | @Before 20 | public void setUp() { 21 | UIManager.put("SearchField.useSeperatePopupButton", Boolean.FALSE); 22 | sf = new JXSearchField(); 23 | sf.setUseNativeSearchFieldIfPossible(false); 24 | ui = (SearchFieldUI) sf.getUI(); 25 | } 26 | 27 | @Test 28 | public void testChildComponents() throws Exception { 29 | assertSame(3, sf.getComponentCount()); 30 | ui.uninstallUI(sf); 31 | assertSame(0, sf.getComponentCount()); 32 | } 33 | 34 | @Test 35 | public void testChildComponentsNative() throws Exception { 36 | if(!NativeSearchFieldSupport.isNativeSearchFieldSupported()){ 37 | return; 38 | } 39 | 40 | sf.setUseNativeSearchFieldIfPossible(true); 41 | 42 | //search and clear buttons installed by AquaLnF 43 | assertSame(2, sf.getComponentCount()); 44 | } 45 | 46 | @Test 47 | public void testDocumentListener() throws Exception { 48 | int listenerCount = ((AbstractDocument)sf.getDocument()).getDocumentListeners().length; 49 | ui.uninstallUI(sf); 50 | assertSame(listenerCount-3, ((AbstractDocument)sf.getDocument()).getDocumentListeners().length); 51 | } 52 | 53 | @Test 54 | public void testPopupListener() throws Exception { 55 | assertSame(1, sf.getPopupButton().getActionListeners().length); 56 | ui.uninstallUI(sf); 57 | assertSame(0, sf.getPopupButton().getActionListeners().length); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/multislider/ThumbDataEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | package org.jdesktop.swingx.multislider; 22 | 23 | import java.util.EventObject; 24 | 25 | /** 26 | * 27 | * @author jm158417 28 | */ 29 | public class ThumbDataEvent extends EventObject { 30 | private int type, index; 31 | private Thumb thumb; 32 | 33 | /** Creates a new instance of ThumbDataEvent */ 34 | public ThumbDataEvent(Object source, int type, int index, Thumb thumb) { 35 | super(source); 36 | this.type = type; 37 | this.thumb = thumb; 38 | this.index = index; 39 | } 40 | 41 | public int getType() { 42 | return type; 43 | } 44 | 45 | public int getIndex() { 46 | return index; 47 | } 48 | 49 | public Thumb getThumb() { 50 | return thumb; 51 | } 52 | 53 | @Override 54 | public String toString() { 55 | return this.getClass().getName() + " : " + type + " " + index + " " + thumb; 56 | } 57 | } -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/plaf/ColumnControlButtonAddon.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2007 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | package org.jdesktop.swingx.plaf; 22 | 23 | import javax.swing.plaf.InsetsUIResource; 24 | 25 | import org.jdesktop.swingx.icon.ColumnControlIcon; 26 | 27 | /** 28 | * Addon to load LF specific properties for the ColumnControlButton. 29 | * 30 | * @author Jeanette Winzenburg 31 | */ 32 | public class ColumnControlButtonAddon extends AbstractComponentAddon { 33 | 34 | /** 35 | * Instantiates the addon for ColumnControlButton. 36 | */ 37 | public ColumnControlButtonAddon() { 38 | super("ColumnControlButton"); 39 | } 40 | 41 | @Override 42 | protected void addBasicDefaults(LookAndFeelAddons addon, 43 | DefaultsList defaults) { 44 | super.addBasicDefaults(addon, defaults); 45 | defaults.add("ColumnControlButton.actionIcon", new ColumnControlIcon()); 46 | defaults.add("ColumnControlButton.margin", new InsetsUIResource(1, 2, 2, 1)); 47 | } 48 | 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/plaf/TitledPanelUI.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | package org.jdesktop.swingx.plaf; 23 | 24 | import java.awt.Container; 25 | 26 | import javax.swing.JComponent; 27 | import javax.swing.plaf.PanelUI; 28 | 29 | /** 30 | * 31 | * @author rbair 32 | */ 33 | public abstract class TitledPanelUI extends PanelUI { 34 | /** 35 | * Adds the given JComponent as a decoration on the right of the title 36 | * @param decoration 37 | */ 38 | public abstract void setRightDecoration(JComponent decoration); 39 | public abstract JComponent getRightDecoration(); 40 | 41 | /** 42 | * Adds the given JComponent as a decoration on the left of the title 43 | * @param decoration 44 | */ 45 | public abstract void setLeftDecoration(JComponent decoration); 46 | public abstract JComponent getLeftDecoration(); 47 | /** 48 | * @return the Container acting as the title bar for this component 49 | */ 50 | public abstract Container getTitleBar(); 51 | } 52 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/error/ErrorListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2006 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | package org.jdesktop.swingx.error; 23 | 24 | import java.util.EventListener; 25 | 26 | /** 27 | * ErrorListener defines the interface for an object which listens to errors generated 28 | * by a JX Swing component. ErrorEvents are only generated for internal un-recoverable errors 29 | * that cannot be thrown. An example would be an internal Action implementation that cannot 30 | * throw an Exception directly because the ActionListener interface forbids it. Exceptions 31 | * which can be throw directly (say from the constructor of the JX component) should not use 32 | * the ErrorListener mechanism. 33 | * 34 | * @see ErrorEvent 35 | * @see ErrorSupport 36 | * @author Joshua Marinacci joshua.marinacci@sun.com 37 | */ 38 | public interface ErrorListener extends EventListener { 39 | 40 | /** 41 | * Tells listeners that an error has occured within the watched component. 42 | * @param event 43 | */ 44 | public void errorOccured(ErrorEvent event); 45 | } 46 | -------------------------------------------------------------------------------- /src/test/java/org/jdesktop/swingx/renderer/IconValuesTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2008 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | * 21 | */ 22 | package org.jdesktop.swingx.renderer; 23 | 24 | import java.io.File; 25 | 26 | import junit.framework.TestCase; 27 | 28 | import org.junit.Test; 29 | import org.junit.runner.RunWith; 30 | import org.junit.runners.JUnit4; 31 | 32 | /** 33 | * 34 | * @author Karl George Schaefer 35 | */ 36 | @RunWith(JUnit4.class) 37 | public class IconValuesTest extends TestCase { 38 | @Test 39 | public void testFileIconWithNonFile() { 40 | Object o = new Object(); 41 | 42 | assertEquals(IconValues.NONE.getIcon(o), 43 | IconValues.FILE_ICON.getIcon(o)); 44 | } 45 | 46 | //not asserting the output of file icon just that it isn't none 47 | @Test 48 | public void testFileIconWithFile() throws Exception { 49 | File f = File.createTempFile("ivt", "tmp"); 50 | f.deleteOnExit(); 51 | 52 | assertNotSame(IconValues.NONE.getIcon(f), 53 | IconValues.FILE_ICON.getIcon(f)); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/test/java/org/jdesktop/swingx/plaf/TextUIWrapperTest.java: -------------------------------------------------------------------------------- 1 | package org.jdesktop.swingx.plaf; 2 | 3 | import static org.junit.Assert.assertEquals; 4 | 5 | import javax.swing.JTextArea; 6 | import javax.swing.JTextField; 7 | import javax.swing.plaf.basic.BasicTextFieldUI; 8 | 9 | import org.jdesktop.swingx.JXSearchField; 10 | import org.junit.Before; 11 | import org.junit.Test; 12 | 13 | 14 | public class TextUIWrapperTest { 15 | private JTextField txt; 16 | private TextUIWrapper wrapper; 17 | 18 | @Before 19 | public void setup() { 20 | txt = new JTextField(); 21 | wrapper = TextUIWrapper.getDefaultWrapper(); 22 | } 23 | 24 | @Test 25 | public void testWrapUI() throws Exception { 26 | assertEquals(BuddyTextFieldUI.class, wrapper.wrapUI(new JTextField()).getClass()); 27 | assertEquals(PromptTextAreaUI.class, wrapper.wrapUI(new JTextArea()).getClass()); 28 | assertEquals(SearchFieldUI.class, wrapper.wrapUI(new JXSearchField()).getClass()); 29 | } 30 | 31 | 32 | @Test 33 | public void testUninstall() { 34 | Class defaultUiClass = txt.getUI().getClass(); 35 | wrapper.install(txt, true); 36 | wrapper.uninstall(txt); 37 | assertEquals(defaultUiClass, txt.getUI().getClass()); 38 | } 39 | 40 | @Test 41 | public void testInstall() { 42 | wrapper.install(txt, false); 43 | mustBeInstalled(); 44 | } 45 | 46 | @Test 47 | public void testInstallAndStay() { 48 | wrapper.install(txt, true); 49 | mustStayInstalled(); 50 | } 51 | 52 | private void mustBeInstalled() { 53 | assertEquals(BuddyTextFieldUI.class, txt.getUI().getClass()); 54 | txt.setUI(new BasicTextFieldUI()); 55 | assertEquals(BasicTextFieldUI.class, txt.getUI().getClass()); 56 | } 57 | 58 | private void mustStayInstalled() { 59 | assertEquals(BuddyTextFieldUI.class, txt.getUI().getClass()); 60 | txt.setUI(new BasicTextFieldUI()); 61 | assertEquals(BuddyTextFieldUI.class, txt.getUI().getClass()); 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/multislider/MultiThumbModel.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | package org.jdesktop.swingx.multislider; 23 | 24 | 25 | import java.util.List; 26 | 27 | /** 28 | * 29 | * @author joshy 30 | */ 31 | public interface MultiThumbModel extends Iterable> { 32 | 33 | public float getMinimumValue(); 34 | public void setMinimumValue(float minimumValue); 35 | public float getMaximumValue(); 36 | public void setMaximumValue(float maximumValue); 37 | 38 | public int addThumb(float value, E obj); 39 | public void insertThumb(float value, E obj, int index); 40 | public void removeThumb(int index); 41 | public int getThumbCount(); 42 | public Thumb getThumbAt(int index); 43 | public int getThumbIndex(Thumb thumb); 44 | public List> getSortedThumbs(); 45 | public void thumbPositionChanged(Thumb thumb); 46 | public void thumbValueChanged(Thumb thumb); 47 | 48 | public void addThumbDataListener(ThumbDataListener listener); 49 | public void removeThumbDataListener(ThumbDataListener listener); 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/plaf/HyperlinkAddon.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | package org.jdesktop.swingx.plaf; 22 | 23 | 24 | import javax.swing.plaf.ColorUIResource; 25 | 26 | import org.jdesktop.swingx.JXHyperlink; 27 | 28 | /** 29 | * Addon for JXHyperlink.
30 | */ 31 | public class HyperlinkAddon extends AbstractComponentAddon { 32 | public HyperlinkAddon() { 33 | super("JXHyperlink"); 34 | } 35 | 36 | @Override 37 | protected void addBasicDefaults(LookAndFeelAddons addon, DefaultsList defaults) { 38 | super.addBasicDefaults(addon, defaults); 39 | 40 | defaults.add(JXHyperlink.uiClassID, "org.jdesktop.swingx.plaf.basic.BasicHyperlinkUI"); 41 | //using CSS pseudo classes for Color types 42 | defaults.add("Hyperlink.linkColor", new ColorUIResource(0, 0x33, 0xFF)); 43 | defaults.add("Hyperlink.visitedColor", new ColorUIResource(0x99, 0, 0x99)); 44 | defaults.add("Hyperlink.hoverColor", new ColorUIResource(0xFF, 0x33, 0)); 45 | defaults.add("Hyperlink.activeColor", new ColorUIResource(0xFF, 0x33, 0)); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/test/resources/org/jdesktop/swingx/resources/test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | I've got a bike 5 | 6 | 7 | 8 |

Bike

9 |

10 | I've got a bike. You can ride it if you like. It's got a basket, a bell that rings and 11 | Things to make it look good. I'd give it to you if I could, but I borrowed it. 12 |

13 | You're the kind of girl that fits in with my world.
14 | I'll give you anything, ev'rything if you want things.
15 |

16 | I've got a cloak. It's a bit of a joke. 17 | There's a tear up the front. It's red and black. 18 | I've had it for months.
19 | If you think it could look good, then I guess it should. 20 |

26 |
27 |

28 | I know a mouse, and he hasn't got a house. 29 | I don't know why. I call him Gerald. 30 | He's getting rather old, but he's a good mouse. 31 |

    32 |
  1. You're the kind of girl 33 |
  2. that fits in with my world 34 |
  3. I'll give you anything 35 |
  4. ev'rything if you want things. 36 |
37 |
38 |       I've got a clan of gingerbread men.
39 |       Here a man, there a man, lots of gingerbread men.
40 |       Take a couple if you wish. They're on the dish.
41 |     
42 |

43 | You're the kind of girl that fits in with my world.
44 | I'll give you anything, ev'rything if you want things.
45 |

46 | I know a room of musical tunes. Some rhyme, some ching. Most of them are clockwork. 47 | Let's go into the other room and make them work. 48 |

49 |

Pink Floyd

50 | 51 | 52 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/error/ErrorEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2006 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | package org.jdesktop.swingx.error; 23 | 24 | import java.util.EventObject; 25 | 26 | /** 27 | * Defines an event which encapsulates an error which occurred in a JX Swing component 28 | * which supports ErrorListeners. 29 | * 30 | * @author Joshua Marinacci joshua.marinacci@sun.com 31 | * @see ErrorListener 32 | * @see ErrorSupport 33 | */ 34 | public class ErrorEvent extends EventObject { 35 | private Throwable throwable; 36 | 37 | /** 38 | * Creates a new instance of ErrorEvent 39 | * @param throwable The Error or Exception which occurred. 40 | * @param source The object which threw the Error or Exception 41 | */ 42 | public ErrorEvent(Throwable throwable, Object source) { 43 | super(source); 44 | this.throwable = throwable; 45 | } 46 | 47 | /** 48 | * Gets the Error or Exception which occurred. 49 | * @return The Error or Exception which occurred. 50 | */ 51 | public Throwable getThrowable() { 52 | return throwable; 53 | } 54 | 55 | } 56 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/tips/DefaultTip.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | package org.jdesktop.swingx.tips; 22 | 23 | import org.jdesktop.swingx.tips.TipOfTheDayModel.Tip; 24 | 25 | /** 26 | * Default {@link org.jdesktop.swingx.tips.TipOfTheDayModel.Tip} implementation.
27 | * 28 | * @author Frederic Lavigne 29 | */ 30 | public class DefaultTip implements Tip { 31 | 32 | private String name; 33 | 34 | private Object tip; 35 | 36 | public DefaultTip() { 37 | } 38 | 39 | public DefaultTip(String name, Object tip) { 40 | this.name = name; 41 | this.tip = tip; 42 | } 43 | 44 | @Override 45 | public Object getTip() { 46 | return tip; 47 | } 48 | 49 | public void setTip(Object tip) { 50 | this.tip = tip; 51 | } 52 | 53 | @Override 54 | public String getTipName() { 55 | return name; 56 | } 57 | 58 | public void setTipName(String name) { 59 | this.name = name; 60 | } 61 | 62 | @Override 63 | public String toString() { 64 | return getTipName(); 65 | } 66 | 67 | } -------------------------------------------------------------------------------- /src/test/java/org/jdesktop/test/ActionReport.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | */ 7 | 8 | 9 | package org.jdesktop.test; 10 | 11 | import java.awt.event.ActionEvent; 12 | import java.awt.event.ActionListener; 13 | import java.util.Collections; 14 | import java.util.HashMap; 15 | import java.util.LinkedList; 16 | import java.util.List; 17 | import java.util.Map; 18 | 19 | /** 20 | * A ChangeListener that stores the received ChangeEvents. 21 | * 22 | */ 23 | public class ActionReport implements ActionListener { 24 | 25 | /** 26 | * Holds a list of all received PropertyChangeEvents. 27 | */ 28 | protected List events = Collections.synchronizedList(new LinkedList()); 29 | protected Map eventMap = Collections.synchronizedMap(new HashMap()); 30 | 31 | //------------------------ implement PropertyChangeListener 32 | 33 | public void actionPerformed(ActionEvent evt) { 34 | events.add(0, evt); 35 | if (evt != null && evt.getSource() != null) { 36 | eventMap.put(evt.getSource(), evt); 37 | } 38 | } 39 | 40 | public int getEventCount() { 41 | return events.size(); 42 | } 43 | 44 | public void clear() { 45 | events.clear(); 46 | eventMap.clear(); 47 | } 48 | 49 | public boolean hasEvents() { 50 | return !events.isEmpty(); 51 | } 52 | 53 | public ActionEvent getLastEvent() { 54 | return hasEvents() ? events.get(0) : null; 55 | } 56 | 57 | public ActionEvent getEvent(Object source) { 58 | return eventMap.get(source); 59 | } 60 | 61 | /** 62 | * @return the action command of the last event or null 63 | * if no events received. 64 | */ 65 | public Object getLastActionCommand() { 66 | return hasEvents() ? events.get(0).getActionCommand() : null; 67 | } 68 | 69 | 70 | } 71 | -------------------------------------------------------------------------------- /src/test/java/org/jdesktop/swingx/JXSearchFieldVisualCheck.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id: JXButtonVisualCheck.java 4082 2011-11-15 18:39:43Z kschaefe $ 3 | * 4 | * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | package org.jdesktop.swingx; 22 | 23 | 24 | /** 25 | * Visual tests of JXSearchField issues. 26 | * @author Karl Schaefer 27 | * 28 | */ 29 | public class JXSearchFieldVisualCheck extends InteractiveTestCase { 30 | public void interactiveRenderingCheck() { 31 | JXSearchField search = new JXSearchField(); 32 | 33 | showInFrame(search, "Painter testing"); 34 | } 35 | 36 | /** 37 | * @param args 38 | */ 39 | public static void main(String[] args) { 40 | JXSearchFieldVisualCheck test = new JXSearchFieldVisualCheck(); 41 | try { 42 | test.runInteractiveTests("interactiveRenderingCheck"); 43 | } catch (Exception e) { 44 | System.err.println("exception when executing interactive tests:"); 45 | e.printStackTrace(); 46 | } 47 | } 48 | 49 | /** 50 | * do nothing test - keep the testrunner happy. 51 | */ 52 | public void testDummy() { 53 | } 54 | 55 | } 56 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/AlphaPaintable.java: -------------------------------------------------------------------------------- 1 | package org.jdesktop.swingx; 2 | 3 | /** 4 | * An interface to describe an object that is capable of painting with an alpha value. 5 | * 6 | * @author kschaefer 7 | */ 8 | interface AlphaPaintable { 9 | /** 10 | * Get the current alpha value. 11 | * 12 | * @return the alpha translucency level for this component. This will be a value between 0 and 13 | * 1, inclusive. 14 | */ 15 | float getAlpha(); 16 | 17 | /** 18 | * Set the alpha transparency level for this component. This automatically causes a repaint of 19 | * the component. 20 | * 21 | * @param alpha 22 | * must be a value between 0 and 1 inclusive 23 | * @throws IllegalArgumentException 24 | * if the value is invalid 25 | */ 26 | void setAlpha(float alpha); 27 | 28 | /** 29 | * Returns the state of the panel with respect to inheriting alpha values. 30 | * 31 | * @return {@code true} if this panel inherits alpha values; {@code false} 32 | * otherwise 33 | * @see #setInheritAlpha(boolean) 34 | */ 35 | boolean isInheritAlpha(); 36 | 37 | /** 38 | * Determines if the effective alpha of this component should include the 39 | * alpha of ancestors. 40 | * 41 | * @param inheritAlpha 42 | * {@code true} to include ancestral alpha data; {@code false} 43 | * otherwise 44 | * @see #isInheritAlpha() 45 | * @see #getEffectiveAlpha() 46 | */ 47 | void setInheritAlpha(boolean inheritAlpha); 48 | 49 | /** 50 | * Unlike other properties, alpha can be set on a component, or on one of 51 | * its parents. If the alpha of a parent component is .4, and the alpha on 52 | * this component is .5, effectively the alpha for this component is .4 53 | * because the lowest alpha in the hierarchy "wins." 54 | * 55 | * @return the lowest alpha value in the hierarchy 56 | */ 57 | float getEffectiveAlpha(); 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/tips/TipOfTheDayModel.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | package org.jdesktop.swingx.tips; 22 | 23 | import org.jdesktop.swingx.JXTipOfTheDay; 24 | 25 | /** 26 | * A model for {@link org.jdesktop.swingx.JXTipOfTheDay}.
27 | * 28 | * @author Frederic Lavigne 29 | */ 30 | public interface TipOfTheDayModel { 31 | 32 | /** 33 | * @return the number of tips in this model 34 | */ 35 | int getTipCount(); 36 | 37 | /** 38 | * @param index 39 | * @return the tip at index 40 | * @throws IndexOutOfBoundsException 41 | * if the index is out of range (index < 0 || index >= 42 | * getTipCount()). 43 | */ 44 | Tip getTipAt(int index); 45 | 46 | /** 47 | * A tip.
48 | */ 49 | interface Tip { 50 | 51 | /** 52 | * @return very short (optional) text describing the tip 53 | */ 54 | String getTipName(); 55 | 56 | /** 57 | * The tip object to show. See {@link JXTipOfTheDay} for supported object 58 | * types. 59 | * 60 | * @return the tip to display 61 | */ 62 | Object getTip(); 63 | } 64 | 65 | } 66 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/multisplitpane/DefaultSplitPaneModel.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2006 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | package org.jdesktop.swingx.multisplitpane; 22 | 23 | import org.jdesktop.swingx.MultiSplitLayout.Divider; 24 | import org.jdesktop.swingx.MultiSplitLayout.Leaf; 25 | import org.jdesktop.swingx.MultiSplitLayout.Split; 26 | /** 27 | * A simplified SplitPaneLayout for common split pane needs. A common multi splitpane 28 | * need is: 29 | * 30 | * +-----------+-----------+ 31 | * | | | 32 | * | +-----------+ 33 | * | | | 34 | * +-----------+-----------+ 35 | * 36 | * @author rbair 37 | */ 38 | public class DefaultSplitPaneModel extends Split { 39 | public static final String LEFT = "left"; 40 | public static final String TOP = "top"; 41 | public static final String BOTTOM = "bottom"; 42 | 43 | /** Creates a new instance of DefaultSplitPaneLayout */ 44 | public DefaultSplitPaneModel() { 45 | Split row = new Split(); 46 | Split col = new Split(); 47 | col.setRowLayout(false); 48 | setChildren(new Leaf(LEFT), new Divider(), col); 49 | col.setChildren(new Leaf(TOP), new Divider(), new Leaf(BOTTOM)); 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/error/ErrorLevel.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | 22 | package org.jdesktop.swingx.error; 23 | 24 | import java.util.logging.Level; 25 | 26 | /** 27 | *

Extends {@link java.util.logging.Level} adding the FATAL error level. 28 | * Fatal errors are those unrecoverable errors that must result in the termination 29 | * of the application.

30 | * 31 | * @status REVIEWED 32 | * @author rbair 33 | */ 34 | public class ErrorLevel extends Level { 35 | /** 36 | * FATAL is a message level indicating a catastrophic failure that should 37 | * result in the immediate termination of the application. 38 | *

39 | * In general FATAL messages should describe events that are 40 | * of considerable critical and which will prevent 41 | * program execution. They should be reasonably intelligible 42 | * to end users and to system administrators. 43 | * This level is initialized to 1100. 44 | */ 45 | public static final ErrorLevel FATAL = new ErrorLevel("FATAL", 1100); 46 | 47 | /** Creates a new instance of ErrorLevel */ 48 | protected ErrorLevel(String name, int value) { 49 | super(name, value); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/BackgroundPaintable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2010 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | package org.jdesktop.swingx; 22 | 23 | import org.jdesktop.swingx.painter.Painter; 24 | 25 | /** 26 | * An interface to define the common methods that are required for defining a background painter. 27 | * 28 | * @author kschaefer 29 | */ 30 | @SuppressWarnings("rawtypes") 31 | interface BackgroundPaintable { 32 | /** 33 | * Returns the current background painter. 34 | * 35 | * @return the current painter 36 | * @see #setBackgroundPainter(Painter) 37 | * @see #isPaintBorderInsets() 38 | */ 39 | Painter getBackgroundPainter(); 40 | 41 | /** 42 | * Sets the new background painter. 43 | * 44 | * @param painter the new background painter; may be {@code null} 45 | */ 46 | void setBackgroundPainter(Painter painter); 47 | 48 | /** 49 | * Determines whether this component paints its background paint underneath the border. 50 | * 51 | * @return {@code true} to paint under the border; {@code false} otherwise 52 | */ 53 | boolean isPaintBorderInsets(); 54 | 55 | /** 56 | * 57 | * @param paintBorderInsets 58 | */ 59 | void setPaintBorderInsets(boolean paintBorderInsets); 60 | } 61 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/auth/UserNameStore.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | */ 21 | package org.jdesktop.swingx.auth; 22 | 23 | import org.jdesktop.beans.AbstractBean; 24 | 25 | /** 26 | * UsernameStore is a class that implements persistence of usernames 27 | * 28 | * @author Bino George 29 | * @author rbair 30 | */ 31 | public abstract class UserNameStore extends AbstractBean { 32 | /** 33 | * Gets the current list of users. 34 | */ 35 | public abstract String[] getUserNames(); 36 | /** 37 | */ 38 | public abstract void setUserNames(String[] names); 39 | /** 40 | * lifecycle method for loading names from persistent storage 41 | */ 42 | public abstract void loadUserNames(); 43 | /** 44 | * lifecycle method for saving name to persistent storage 45 | */ 46 | public abstract void saveUserNames(); 47 | /** 48 | */ 49 | public abstract boolean containsUserName(String name); 50 | 51 | /** 52 | * Add a username to the store. 53 | * @param userName 54 | */ 55 | public abstract void addUserName(String userName); 56 | 57 | /** 58 | * Removes a username from the list. 59 | * @param userName 60 | */ 61 | public abstract void removeUserName(String userName); 62 | } 63 | -------------------------------------------------------------------------------- /src/test/java/org/jdesktop/swingx/JXImageViewTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Created on 02.02.2012 3 | * 4 | */ 5 | package org.jdesktop.swingx; 6 | 7 | import java.awt.Color; 8 | import java.awt.image.BufferedImage; 9 | 10 | import org.jdesktop.swingx.painter.MattePainter; 11 | import org.jdesktop.swingx.painter.Painter; 12 | import org.jdesktop.swingx.test.XTestUtils; 13 | import org.jdesktop.swingx.util.GraphicsUtilities; 14 | import org.jdesktop.test.EDTRunner; 15 | import org.junit.Test; 16 | import org.junit.runner.RunWith; 17 | 18 | /** 19 | * Unit and visual tests for JXImageView 20 | * @author Jeanette Winzenburg, Berlin 21 | */ 22 | @RunWith(EDTRunner.class) 23 | public class JXImageViewTest extends InteractiveTestCase { 24 | 25 | /** 26 | * Issue java.net/jira/browse/SWINGX-1479: 27 | * ImageView should use backgroundPainter 28 | */ 29 | @Test 30 | public void testBackgroundPainterDefault() { 31 | JXImageView panel = new JXImageView(); 32 | Painter background = panel.getBackgroundPainter(); 33 | assertTrue("default background painter should be MattePainter " 34 | + " but was: " + background 35 | , background instanceof MattePainter); 36 | } 37 | 38 | //------------------ interactive 39 | 40 | public static void main(String[] args) { 41 | JXImageViewTest test = new JXImageViewTest(); 42 | try { 43 | test.runInteractiveTests(); 44 | } catch (Exception e) { 45 | e.printStackTrace(); 46 | } 47 | } 48 | 49 | /** 50 | * Issue java.net/jira/browse/SWINGX-1479: 51 | * ImageView should use backgroundPainter 52 | */ 53 | public void interactiveBackgroundPainterUsed() { 54 | BufferedImage im = XTestUtils.loadDefaultImage( 55 | "500by500.png"); 56 | BufferedImage im2 = GraphicsUtilities.createThumbnail(im, 100); 57 | JXImageView ipa = new JXImageView(); 58 | ipa.setBackgroundPainter(new MattePainter(Color.RED)); 59 | ipa.setImage(im2); 60 | showInFrame(ipa, "Imageview background"); 61 | 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /src/test/java/org/jdesktop/swingx/sort/SortControllerIssues.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2009 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | * 21 | */ 22 | package org.jdesktop.swingx.sort; 23 | 24 | import java.util.ArrayList; 25 | import java.util.List; 26 | 27 | import javax.swing.DefaultComboBoxModel; 28 | import javax.swing.ListModel; 29 | import javax.swing.SortOrder; 30 | import javax.swing.RowSorter.SortKey; 31 | 32 | import org.jdesktop.swingx.InteractiveTestCase; 33 | import org.junit.Test; 34 | 35 | /** 36 | * Issues with SortController implementations. 37 | * 38 | * @author Jeanette Winzenburg 39 | */ 40 | public class SortControllerIssues extends InteractiveTestCase { 41 | 42 | 43 | /** 44 | * Issue #1156-swingx: sorter must use comparable if available 45 | * ListSortController 46 | */ 47 | @Test 48 | public void testComparableComparatorList() { 49 | ListModel model = new DefaultComboBoxModel(new Integer[] {10, 2}); 50 | ListSortController sorter = new ListSortController(model); 51 | List keys = new ArrayList(); 52 | keys.add(new SortKey(0, SortOrder.ASCENDING)); 53 | sorter.setSortKeys(keys); 54 | assertEquals(0, sorter.convertRowIndexToModel(1)); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/org/jdesktop/swingx/sort/StringValueProvider.java: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | * 4 | * Copyright 2009 Sun Microsystems, Inc., 4150 Network Circle, 5 | * Santa Clara, California 95054, U.S.A. All rights reserved. 6 | * 7 | * This library is free software; you can redistribute it and/or 8 | * modify it under the terms of the GNU Lesser General Public 9 | * License as published by the Free Software Foundation; either 10 | * version 2.1 of the License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 | * 21 | */ 22 | package org.jdesktop.swingx.sort; 23 | 24 | import org.jdesktop.swingx.renderer.StringValue; 25 | 26 | /** 27 | * Read-only repository for StringValues. This is meant to be shared by collection views 28 | * (in rendering a cell) and RowSorters/SortControllers/ComponentAdapters.

29 | * 30 | * Note: this is work-in-progress, related to re-enable WYSIWYM in sorting/filtering. 31 | * It's location and api is expected to change. 32 | * 33 | * @author Jeanette Winzenburg 34 | */ 35 | public interface StringValueProvider { 36 | 37 | /** 38 | * Returns a StringValue to use for conversion of the cell content at row and column. 39 | * The converter is guaranteed to be not null, so implemenations are responsible for 40 | * a reasonable fall-back value always, f.i. if they have no converters registered of 41 | * if any or both of the row/column coordinate is "invalid" (f.i. -1)

42 | * 43 | * @param row the row of the cell in model coordinates 44 | * @param column the column of the cell in model coordinates 45 | * 46 | * @return a StringValue to use for conversion, guaranteed to not null. 47 | */ 48 | StringValue getStringValue(int row, int column); 49 | 50 | } 51 | --------------------------------------------------------------------------------