Keys in ResourceBundle

I am skinning my application, and I want to localize strings that appear in ADF faces components. For example on OK button component in dialog I want to put something else instead of "OK". I know how I should do that but I don't have resource bundle keys that correspond to such strings. Can anyone tell me where I can find them?

Thank you Simon!!!
I have decompiled the class and extracted the keys to a text file. Here is:
AFLogoIconShortDesc=Logo
AFRequiredIconShortDesc=Required
AFErrorIconShortDesc=Error
AFWarningIconShortDesc=Warning
AFInfoIconShortDesc=Info
AFChangedIconShortDesc=Changed
af_inputFile.UPDATE_BUTTON=Update...
af_inputFile.UPDATE_DIALOG_TITLE=Update File
af_inputFile.UPLOAD_ERROR=Upload Error
af_inputFile.UPLOAD_ERROR_detail=Please verify your upload data.
af_panelHeader.DYNAMIC_HELP_TIP=Select to see help
af_column.SORT_ASCENDING=Sort Ascending
af_column.SORT_DESCENDING=Sort Descending
af_column.SELECTION=Select
af_column.DETAIL_STAMP=Show Detail
af_column.SELECT_LABEL=Select Column
af_column.SELECT_ALL_LABEL=Select All
af_panelHeader.HELP_DIALOG_TITLE=Help
af_panelWindow.CLOSE=Close
af_dialog.OK=OK
af_dialog.CANCEL=Cancel
af_dialog.YES=Yes
af_dialog.NO=No
af_panelCollection.ADVANCED_SORT=Advanced Sort
af_panelCollection.SHOW_COLUMNS=Show More Columns
af_panelCollection.REORDER_COLUMNS=Reorder Columns
af_panelCollection.HIDDEN_COLUMNS=Hidden Columns
af_panelCollection.VISIBLE_COLUMNS=Visible Columns
af_panelCollection.SORT_BY=Sort By
af_panelCollection.THEN_BY=Then By
af_panelCollection.ASCENDING=Ascending
af_panelCollection.DESCENDING=Descending
af_panelCollection.RESIZE_COLUMN=Resize Column
af_panelCollection.PERCENT=Percent
af_panelCollection.PIXEL=Pixels
af_panelCollection.WIDTH=Width
af_panelCollection.COLUMN=Column
af_panelCollection.ROW_NUMBER=Row Number
af_panelCollection.DETACH_TABLE_DIALOG_TITLE=Detached Table
af_panelCollection.DETACH_TREE_TABLE_DIALOG_TITLE=Detached treeTable
af_panelCollection.VISIBLE_COLUMN_REQUIRED=At least 1 column must be in the Visible Columns list.
af_panelCollection.MENU_VIEW=View
af_panelCollection.MENU_COLUMNS=Columns
af_panelCollection.MENUITEM_COLUMNS_SHOWALL=Show All
af_panelCollection.MENUITEM_COLUMNS_SHOWMORECOLUMNS=Show More Columns...
af_panelCollection.MENUITEM_FREEZE=Freeze
af_panelCollection.MENUITEM_UNFREEZE=Unfreeze
af_panelCollection.MENUITEM_DETACH=Detach
af_panelCollection.MENUITEM_REDUCE=Reduce
af_panelCollection.MENU_SORT=Sort
af_panelCollection.MENUITEM_SORT_ASCENDING=Ascending
af_panelCollection.MENUITEM_SORT_DESCENDING=Descending
af_panelCollection.MENUITEM_SORT_ADVANCED=Advanced...
af_panelCollection.MENUITEM_REORDER=Reorder Columns...
af_panelCollection.MENU_TOOLBARS=Toolbars
af_panelCollection.MENUITEM_TOOLBARS_DEFAULT=Default
af_panelCollection.MENUITEM_TOOLBARS_QBE=Query By Example
af_panelCollection.MENU_FORMAT=Format
af_panelCollection.MENUITEM_RESIZECOLUMNS=Resize Columns...
af_panelCollection.MENUITEM_WRAP=Wrap
af_panelCollection.STATUSBARITEM_ROWS_SELECTED=Rows Selected:
af_panelCollection.STATUSBARITEM_ROWS_SELECTED_ALL=All
af_panelCollection.STATUSBARITEM_COLUMNS_HIDDEN=Columns Hidden:
af_panelCollection.STATUSBARITEM_COLUMNS_FROZEN=Columns Frozen:
af_panelCollection.MENUITEM_EXPAND=Expand
af_panelCollection.MENUITEM_COLLAPSE=Collapse
af_panelCollection.MENUITEM_EXPAND_ALL_BELOW=Expand All Below
af_panelCollection.MENUITEM_COLLAPSE_ALL_BELOW=Collapse All Below
af_panelCollection.MENUITEM_EXPAND_ALL=Expand All
af_panelCollection.MENUITEM_COLLAPSE_ALL=Collapse All
af_panelCollection.MENUITEM_GO_UP=Go Up
af_panelCollection.MENUITEM_SHOW_AS_TOP=Show as Top
af_panelCollection.MENUITEM_GO_TO_TOP=Go to Top
af_panelCollection.MENUITEM_SCROLL_TO_FIRST=Scroll to First
af_panelCollection.MENUITEM_SCROLL_TO_LAST=Scroll to Last
af_panelCollection.COLUMN_MULTIPLE=Multiple
af_richTextEditor.FONT_SHORT_DESCRIPTION=Font
af_richTextEditor.FONT_UNSELECTED_LABEL=Font
af_richTextEditor.FONT_SIZE_SHORT_DESCRIPTION=Font Size
af_richTextEditor.COLOR_FOREGROUND=Foreground Color
af_richTextEditor.COLOR_BACKGROUND=Background Color
af_commandNavigationItem.SELECTED_TIP=Selected Item: {0}
af_commandNavigationItem.DISABLED_TIP=Disabled Item: {0}
af_commandMenuItem.ROLE_TYPE_NORMAL=Menu Item
af_commandMenuItem.ROLE_TYPE_CHECKBOX=Checkbox Menu Item
af_commandMenuItem.ROLE_TYPE_RADIO=Radio Button Menu Item
af_commandMenuItem.STATE_CHECKBOX_SELECTED=Checked
af_commandMenuItem.STATE_RADIO_SELECTED=Selected
af_commandMenuItem.STATE_DISABLED=Disabled
af_commandMenuItem.UNTITLED=Untitled
af_commandToolbarButton.POPUP=Popup
af_commandToolbarButton.ICON_ADD_LINK=Add Link
af_commandToolbarButton.ICON_REMOVE_LINK=Remove Link
af_commandToolbarButton.ICON_CLEAR_STYLING=Clear Styling
af_commandToolbarButton.ICON_UNDO=Undo
af_commandToolbarButton.ICON_REDO=Redo
af_commandToolbarButton.ICON_BOLD=Bold
af_commandToolbarButton.ICON_ITALIC=Italic
af_commandToolbarButton.ICON_UNDERLINE=Underline
af_commandToolbarButton.ICON_SUBSCRIPT=Subscript
af_commandToolbarButton.ICON_SUPERSCRIPT=Superscript
af_commandToolbarButton.ICON_STRIKETHROUGH=Strikethrough
af_commandToolbarButton.ICON_JUSTIFY_LEFT=Justify Left
af_commandToolbarButton.ICON_JUSTIFY_CENTER=Justify Center
af_commandToolbarButton.ICON_JUSTIFY_RIGHT=Justify Right
af_commandToolbarButton.ICON_JUSTIFY_FULL=Justify Full
af_commandToolbarButton.ICON_LIST_UNORDERED=Bulleted List
af_commandToolbarButton.ICON_LIST_ORDERED=Numbered List
af_commandToolbarButton.ICON_OUTDENT=Outdent
af_commandToolbarButton.ICON_INDENT=Indent
af_commandToolbarButton.ICON_MODE_RICH_TEXT=Rich Text Editing Mode
af_commandToolbarButton.ICON_MODE_CODE=Source Code Editing Mode
af_commandToolbarButton.ROLE=Toolbar Button
af_commandToolbarButton.ROLE_CHECKBOX=Checkbox Toolbar Button
af_commandToolbarButton.ROLE_RADIO=Radio Toolbar Button
af_commandToolbarButton.STATE_POPUP=Submenu
af_commandToolbarButton.STATE_CHECKBOX_SELECTED=Checked
af_commandToolbarButton.STATE_RADIO_SELECTED=Selected
af_commandToolbarButton.STATE_DISABLED=Disabled
af_tree.COLLAPSED_NODE=Expand
af_tree.EXPANDED_NODE=Collapse
af_tree.HIERARCHICAL_SELECTOR=Select to display popup
af_tree.GO_TO_TOP=Go to Top
af_tree.NODE_LEVEL=Tree node level {0}
af_chooseDate.PREVIOUS_YEAR=Previous Year
af_chooseDate.NEXT_YEAR=Next Year
af_chooseDate.PREVIOUS_MONTH=Previous Month
af_chooseDate.NEXT_MONTH=Next Month
af_chooseDate.OK_BUTTON_TEXT=OK
af_chooseDate.CANCEL_BUTTON_TEXT=Cancel
af_chooseDate.SELECT_MONTH=Select Month
af_chooseDate.SELECT_YEAR=Select Year
af_chooseDate.SELECT_HOURS=Select Hours
af_chooseDate.SELECT_MINUTES=Select Minutes
af_chooseDate.SELECT_SECONDS=Select Seconds
af_chooseDate.SELECT_TIMEZONE=Select Time Zone
af_panelAccordion.DISCLOSE_BUTTON_TIP=Show this panel
af_panelAccordion.UNDISCLOSE_BUTTON_TIP=Hide this panel
af_panelAccordion.UNDISCLOSE_DISABLED_BUTTON_TIP=This panel cannot be hidden
af_panelAccordion.SHOW_PREVIOUS_BUTTON_TIP=Show previous panels
af_panelAccordion.SHOW_NEXT_BUTTON_TIP=Show next panels
af_panelAccordion.DISCLOSE_PRECISE_BUTTON_TIP=Show accordion panel: {0}
af_panelAccordion.UNDISCLOSE_PRECISE_BUTTON_TIP=Hide accordion panel: {0}
af_panelAccordion.UNDISCLOSE_DISABLED_PRECISE_BUTTON_TIP=Accordion panel cannot be hidden: {0}
af_panelAccordion.PANEL_DISCLOSED_TIP=Shown accordion panel: {0}
af_panelAccordion.PANEL_UNDISCLOSED_TIP=Hidden accordion panel: {0}
af_progressIndicator.DETERMINATE={0}%
af_progressIndicator.DETERMINATE_ZERO_PERCENT=0%
af_progressIndicator.DETERMINATE_HUNDRED_PERCENT=100%
af_progressIndicator.INDETERMINATE_RUNNING=In Progress
af_progressIndicator.INDETERMINATE_FINISHED=Process Complete
af_progressIndicator.SCREEN_READER_DETERMINATE=Processing, {0}% complete
af_progressIndicator.SCREEN_READER_INDETERMINATE_RUNNING=Processing, unknown percent complete
af_progressIndicator.SCREEN_READER_INDETERMINATE_FINISHED=Processing complete
af_richTextEditor.LABEL_SPECIFY_THE_URL=Please specify the URL:
af_showDetailItem.TIP=Item: {0}
af_showDetailItem.SELECTED_TIP=Selected Item: {0}
af_showDetailItem.DISABLED_TIP=Disabled Item: {0}
af_showDetailItem.SELECTED_DISABLED_TIP=Selected Disabled Item: {0}
af_train.VISITED_TIP=Visited Step: {0}
af_train.ACTIVE_TIP=Current Step: {0}
af_train.UNVISITED_TIP=Unvisited step: {0}
af_train.DISABLED_TIP=Disabled Step: {0}
af_train.OVERFLOW_NEXT_TIP=Show Next Steps
af_train.OVERFLOW_PREV_TIP=Show Previous Steps
af_train.PARENT_TRAIN_TIP={0}
af_train.PARENT_TRAIN_SEPARATOR=>
af_train.STOP_ERROR_TIP=Error in {0}
af_train.STOP_WARNING_TIP=Warning in {0}
af_train.STOP_INFORMATION_TIP=Information in {0}
af_train.STOP_CONFIRMATION_TIP=Confirmation in {0}
af_train.SHOW_PREV_STEPS=Show Previous Steps
af_train.SHOW_NEXT_STEPS=Show Next Steps
af_trainButtonBar.BACK=&Back
af_trainButtonBar.NEXT=N&ext
af_inputComboboxListOfValues.SEARCH=Search...
af_inputListOfValues.SEARCH_TIP=Search
af_inputListOfValues.SEARCH_LABEL_TIP=Search: {0}
af_quickQuery.DEFAULT_LABEL=Search
af_query.CONJUNCTION_LABEL=Match
af_query.CONJUNCTION_AND_LABEL=All
af_query.CONJUNCTION_OR_LABEL=Any
af_query.MODE_BASIC_LABEL=Basic
af_query.MODE_ADVANCED_LABEL=Advanced
af_query.SAVE=&Save...
af_query.RESET=Reset
af_query.SEARCH=Searc&h
af_query.SAVE_TIP=Save Search
af_query.RESET_TIP=Reset Search Fields
af_query.SEARCH_TIP=Search
af_query.DELETE=Delete
af_query.DUPLICATE=Duplicate
af_query.APPLY=Apply
af_query.DUPLICATE_NAME_PREFIX=copyOf_
af_query.SAVED_SEARCH_TEXT=Saved Search
af_query.SAVED_SEARCH_PERSONALIZE_ENTRY=Personalize...
af_query.DIALOG_PERSONALIZE_SAVED_SEARCHES_LABEL=Saved Searches
af_query.DIALOG_PERSONALIZE_SAVED_SEARCHES_TITLE=Personalize Saved Searches
af_query.DIALOG_CREATE_SAVED_SEARCH_TITLE=Create Saved Search
af_query.DIALOG_SAVED_SEARCH_NAME_LABEL=Name
af_query.DIALOG_UIHINT_SAVE_RESULTS_LAYOUT_LABEL=Save Results Layout
af_query.DIALOG_UIHINT_AUTO_EXECUTE_LABEL=Run Automatically
af_query.DIALOG_UIHINT_SHOW_IN_LIST_LABEL=Show in Search List
af_query.DIALOG_UIHINT_DEFAULT_LABEL=Set as Default
af_query.SEARCHES_LIST_LABEL=Existing Saved Searches
af_query.SAVED_SEARCH_NAME_UNIQUE_CONSTRAINT=Duplicate Name Detected
af_query.SAVED_SEARCH_NAME_UNIQUE_CONSTRAINT_detail=A saved search with the same name was found. Please enter a different name.
af_query.SAVED_SEARCH_NAME_NOTNULL_CONSTRAINT=Name Required
af_query.SAVED_SEARCH_NAME_NOTNULL_CONSTRAINT_detail=Please enter a valid name for the saved search.
af_query.SAVED_SEARCH_DELDUP_CONSTRAINT=Saved Search Selection Required
af_query.SAVED_SEARCH_DELETE_CONSTRAINT_detail=Please select a valid saved search to delete.
af_query.SAVED_SEARCH_DUPLICATE_CONSTRAINT_detail=Please select a valid saved search to duplicate.
af_queryCriteria.DELETE_SEARCH_FIELD_TIP=Remove: {0}
af_chooseColor.LAST_USED_COLOR=Last Used Color
af_chooseColor.DEFAULT_COLOR=Default Color
af_chooseColor.CUSTOM_COLOR=Custom Color...
af_chooseColor.NO_COLOR=No Color
af_chooseColor.HEX=Hex
af_chooseColor.RED=Red
af_chooseColor.GREEN=Green
af_chooseColor.BLUE=Blue
af_chooseColor.NEW_COLOR=New Color
af_chooseColor.CURRENT_COLOR=Current Color
af_chooseColor.TRAN_NO_COLOR=Transparent
af_chooseColor.COLOR_VALUE=Color value
af_chooseColor.HEX_INVALID=is not valid. Please enter hex color value in \"RRGGBB\" format. Example: 0F9A00
af_chooseColor.RGB_INVALID=is not valid. Please enter a number value between 0 and 255 inclusive.
af_chooseColor.CUSTOM_DLG_TITLE=Select Custom Color
af_chooseColor.COLORNAME_F5F5F5=White Smoke
af_chooseColor.COLORNAME_87CEEB=Sky Blue
af_chooseColor.COLORNAME_E0FFFF=Light Cyan
af_chooseColor.COLORNAME_90EE90=Light Green
af_chooseColor.COLORNAME_ADFF2F=Green Yellow
af_chooseColor.COLORNAME_FFF8DC=Cornsilk
af_chooseColor.COLORNAME_FAF0E6=Linen
af_chooseColor.COLORNAME_FFFF00=Yellow
af_chooseColor.COLORNAME_FFE4E1=Misty Rose
af_chooseColor.COLORNAME_D8BFD8=Thistle
af_chooseColor.COLORNAME_FFFFFF=White
af_chooseColor.COLORNAME_DCDCDC=Gainsboro
af_chooseColor.COLORNAME_87CEFA=Light Sky Blue
af_chooseColor.COLORNAME_AFEEEE=Pale Turquoise
af_chooseColor.COLORNAME_00FA9A=Medium Spring Green
af_chooseColor.COLORNAME_7FFF00=Chartreuse
af_chooseColor.COLORNAME_FFEBCD=Blanched Almond
af_chooseColor.COLORNAME_FFDEAD=Navajo White
af_chooseColor.COLORNAME_FFA500=Orange
af_chooseColor.COLORNAME_FFC0CB=Pink
af_chooseColor.COLORNAME_B0C4DE=Light Steel Blue
af_chooseColor.COLORNAME_F0FFF0=Honeydew
af_chooseColor.COLORNAME_D3D3D3=Light Gray
af_chooseColor.COLORNAME_00BFFF=Deep Sky Blue
af_chooseColor.COLORNAME_B0E0E6=Powder Blue
af_chooseColor.COLORNAME_66CDAA=Medium Aquamarine
af_chooseColor.COLORNAME_7CFC00=Lawn Green
af_chooseColor.COLORNAME_FFE4C4=Bisque
af_chooseColor.COLORNAME_FFA07A=Light Salmon
af_chooseColor.COLORNAME_FF8C00=Dark Orange
af_chooseColor.COLORNAME_FFB6C1=Light Pink
af_chooseColor.COLORNAME_6495ED=Cornflower Blue
af_chooseColor.COLORNAME_F5FFFA=Mint Cream
af_chooseColor.COLORNAME_C0C0C0=Silver
af_chooseColor.COLORNAME_1E90FF=Dodger Blue
af_chooseColor.COLORNAME_00FFFF=Cyan
af_chooseColor.COLORNAME_8FBC8F=Dark Sea Green
af_chooseColor.COLORNAME_00FF00=Lime
af_chooseColor.COLORNAME_F5DEB3=Wheat
af_chooseColor.COLORNAME_E9967A=Dark Salmon
af_chooseColor.COLORNAME_FF4500=Orange Red
af_chooseColor.COLORNAME_DDA0DD=Plum
af_chooseColor.COLORNAME_7B68EE=Medium Slate Blue
af_chooseColor.COLORNAME_F0FFFF=Azure
af_chooseColor.COLORNAME_A9A9A9=Dark Gray
af_chooseColor.COLORNAME_4169E1=Royal Blue
af_chooseColor.COLORNAME_7FFFD4=Aquamarine
af_chooseColor.COLORNAME_20B2AA=Light Sea Green
af_chooseColor.COLORNAME_9ACD32=Yellow Green
af_chooseColor.COLORNAME_DEB887=Burly Wood
af_chooseColor.COLORNAME_F08080=Light Coral
af_chooseColor.COLORNAME_D2691E=Chocolate
af_chooseColor.COLORNAME_EE82EE=Violet
af_chooseColor.COLORNAME_9370DB=Medium Purple
af_chooseColor.COLORNAME_F0F8FF=Alice Blue
af_chooseColor.COLORNAME_778899=Light Slate Gray
af_chooseColor.COLORNAME_6A5ACD=Slate Blue
af_chooseColor.COLORNAME_40E0D0=Turquoise
af_chooseColor.COLORNAME_3CB371=Medium Sea Green
af_chooseColor.COLORNAME_32CD32=Lime Green
af_chooseColor.COLORNAME_D2B48C=Tan
af_chooseColor.COLORNAME_FA8072=Salmon
af_chooseColor.COLORNAME_A0522D=Sienna
af_chooseColor.COLORNAME_DA70D6=Orchid
af_chooseColor.COLORNAME_BA55D3=Medium Orchid
af_chooseColor.COLORNAME_F8F8FF=Ghost White
af_chooseColor.COLORNAME_708090=Slate Gray
af_chooseColor.COLORNAME_0000FF=Blue
af_chooseColor.COLORNAME_48D1CC=Medium Turquoise
af_chooseColor.COLORNAME_2E8B57=Sea Green
af_chooseColor.COLORNAME_808000=Olive
af_chooseColor.COLORNAME_BC8F8F=Rosy Brown
af_chooseColor.COLORNAME_FF7F50=Coral
af_chooseColor.COLORNAME_8B4513=Saddle Brown
af_chooseColor.COLORNAME_FF69B4=Hot Pink
af_chooseColor.COLORNAME_9932CC=Dark Orchid
af_chooseColor.COLORNAME_FFF5EE=Seashell
af_chooseColor.COLORNAME_808080=Gray
af_chooseColor.COLORNAME_0000CD=Medium Blue
af_chooseColor.COLORNAME_00CED1=Dark Turquoise
af_chooseColor.COLORNAME_228B22=Forest Green
af_chooseColor.COLORNAME_6B8E23=Olive Drab
af_chooseColor.COLORNAME_F4A460=Sandy Brown
af_chooseColor.COLORNAME_FF6347=Tomato
af_chooseColor.COLORNAME_B22222=Fire Brick
af_chooseColor.COLORNAME_DB7093=Pale Violet Red
af_chooseColor.COLORNAME_8A2BE2=Blue Violet
af_chooseColor.COLORNAME_F5F5DC=Beige
af_chooseColor.COLORNAME_696969=Dim Gray
af_chooseColor.COLORNAME_4B0082=Indigo
af_chooseColor.COLORNAME_4682B4=Steel Blue
af_chooseColor.COLORNAME_008B8B=Dark Cyan
af_chooseColor.COLORNAME_008000=Green
af_chooseColor.COLORNAME_DAA520=Golden Rod
af_chooseColor.COLORNAME_CD5C5C=Indian Red
af_chooseColor.COLORNAME_A52A2A=Brown
af_chooseColor.COLORNAME_FF00FF=Magenta
af_chooseColor.COLORNAME_9400D3=Dark Violet
af_chooseColor.COLORNAME_FDF5E6=Old Lace
af_chooseColor.COLORNAME_2F4F4F=Dark Slate Gray
af_chooseColor.COLORNAME_00008B=Dark Blue
af_chooseColor.COLORNAME_483D8B=Dark Slate Blue
af_chooseColor.COLORNAME_5F9EA0=Cadet Blue
af_chooseColor.COLORNAME_006400=Dark Green
af_chooseColor.COLORNAME_B8860B=Dark Golden Rod
af_chooseColor.COLORNAME_DC143C=Crimson
af_chooseColor.COLORNAME_8B0000=Dark Red
af_chooseColor.COLORNAME_FF1493=Deep Pink
af_chooseColor.COLORNAME_8B008B=Dark Magenta
af_chooseColor.COLORNAME_FFFAF0=Floral White
af_chooseColor.COLORNAME_000000=Black
af_chooseColor.COLORNAME_000080=Navy
af_chooseColor.COLORNAME_191970=Midnight Blue
af_chooseColor.COLORNAME_008080=Teal
af_chooseColor.COLORNAME_556B2F=Dark Olive Green
af_chooseColor.COLORNAME_CD853F=Peru
af_chooseColor.COLORNAME_FF0000=Red
af_chooseColor.COLORNAME_800000=Maroon
af_chooseColor.COLORNAME_C71585=Medium Violet Red
af_chooseColor.COLORNAME_800080=Purple
af_chooseColor.COLORNAME_FFDAB9=Peach Puff
af_chooseColor.COLORNAME_E6E6FA=Lavender
af_chooseColor.COLORNAME_ADD8E6=Light Blue
af_chooseColor.COLORNAME_00FF7F=Spring Green
af_chooseColor.COLORNAME_FAFAD2=Light Golden Rod Yellow
af_chooseColor.COLORNAME_EEE8AA=Pale Golden Rod
af_chooseColor.COLORNAME_FFE4B5=Moccasin
af_chooseColor.COLORNAME_FFD700=Gold
af_chooseColor.COLORNAME_D02090=Violet Red
af_inputColor.CLICK_TO_LAUNCH_POPUP_SELECTOR=Click to launch inline popup color selector
af_inputNumberSpinbox.INCREMENT=increment
af_inputNumberSpinbox.DECREMENT=decrement
af_inputNumberSpinbox.INCREMENT_DISABLED=increment disabled
af_inputNumberSpinbox.DECREMENT_DISABLED=decrement disabled
af_chooseDate._TITLE_SELECT_DATE=Select Date
af_chooseDate._TITLE_SELECT_TIME=Select Time
af_chooseDate._TITLE_SELECT_DATE_AND_TIME=Select Date and Time
af_inputDate.CLICK_TO_LAUNCH_POPUP_SELECTOR=Click to launch inline popup date selector
af_selectManyShuttle.SCREEN_READER_INSTRUCTION=This component allows you to select items from the list of available items and add them to a selected list.\n Use the keyboard to select items and then press the \"Add\" button to move them to the list of selected items.
af_selectManyShuttle.COPY=Copy
af_selectManyShuttle.COPY_ALL=Copy All
af_selectManyShuttle.COPY_ALL_TIP=Coy all items to other list
af_selectManyShuttle.COPY_TIP=Copy selected items to other list
af_selectManyChoice.SELECT_ALL=All
af_selectManyListbox.SELECT_ALL=All
af_statusIndicator.IDLE=Idle
af_statusIndicator.BUSY=Busy
af_statusIndicator.CONNECTING=Connecting
af_statusIndicator.CONNECTED=Connected
af_statusIndicator.RECONNECTING=Reconnecting
af_statusIndicator.DISCONNECTED=Disconnected
af_table.REORDERING_COLUMN=Reordering. Please wait...
af_table.FETCHING=Fetching Data...
af_table.END=End
af_table.START=Start
af_table.ROW=Row
af_table.SELECT_ROW=Select Row
af_table.GOING_TO=Going To:
af_table.ROW_RANGE_UNKNOWN_COUNT=Rows {0} - {1}
af_table.ROW_RANGE_KNOWN_COUNT=Rows {0} - {1} of {2}
af_table.COLLAPSED_NODE=Expand
af_table.EXPANDED_NODE=Collapse
af_table.HEADER_SUMMARY=This table contains column headers corresponding to the data body table below
af_message.FATAL=Critical Error
af_message.ERROR=Error
af_message.WARNING=Warning
af_message.CONFIRMATION=Confirmation
af_message.INFO=Information
af_message.COMPONENT_MESSAGES_INTRO_LABEL=Messages for this component are listed below.
af_message.COMPONENT_MESSAGE_X_OF_Y={0} of {1}
af_message.PREVIOUS_MESSAGE=Previous
af_message.NEXT_MESSAGE=Next
af_message.SHOW_ALL_MESSAGES=All
af_message.SHOW_ALL_MESSAGES_TIP=All
af_message.COMPACT_TYPE_SUMMARY={0}: {1}
af_messages.FATAL=Critical Error
af_messages.ERROR=Error
af_messages.WARNING=Warning
af_messages.CONFIRMATION=Confirmation
af_messages.INFO=Information
af_messages.COMBINED_MESSAGES_INTRO_LABEL=Messages for this page are listed below.
af_messages.COMPONENT_LEVEL_MESSAGE_LABEL=Component
af_messages.SET_FOCUS_ON_COMPONENT=Set focus on {0}
af_document.FAILED_CONNECTION=A connection to the server has failed.
af_document.SPLASH_SCREEN_MESSAGE=Loading...
af_document.ADS_CONFIRM_REFRESH=There are some active data changes on your page. Here is the list: {0}Do you want to reload the page?
af_document.ADS_NO_CHANGE=There is no active data change on your page
af_document.ADS_HOT_KEY_INFO=This page contains the following active components: {0}Please press the following hot key to query active data changes: {1}
af_document.ADS_NO_ACTIVE_COMPONENT=There is no active component on your page
af_document.SKIP_LINK_TEXT=Skip to content
af_navigationLevel.GO_BUTTON_TEXT=Go
af_panelSplitter.COLLAPSE=Collapse Pane
af_panelSplitter.RESTORE=Restore Pane
af_inputNumberSlider.INCREASE=Increase
af_inputNumberSlider.DECREASE=Decrease
af_inputNumberSlider.THUMB=Thumb
af_inputRangeSlider.ACC_START_RANGE=Start of Range
af_inputRangeSlider.ACC_END_RANGE=End of Range
af_breadCrumbs.SHOW_MORE_LINKS=Show More Links...
af_selectBooleanCheckbox.SELECTED=checked
af_selectBooleanCheckbox.UNSELECTED=unchecked
af_media.DEFAULT_LINK_TEXT_AUDIO=Play Audio
af_media.DEFAULT_LINK_TEXT_VIDEO=Play Video
af_media.DEFAULT_LINK_TEXT_UNKOWN=Play Media
af_popup.START_OF_POPUP=Start Of Popup
af_popup.END_OF_POPUP=End Of Popup
af_popup.START_OF_MENU=Start Of Menu
af_popup.END_OF_MENU=End Of Menu
af_menu.ROLE=Menu Item
af_menu.STATE_SUBMENU=Submenu
af_menu.STATE_DISABLED=Disabled
PPR_VIEW_EXPIRED=Because of inactivity, your session has timed out and is no longer active. Click OK to reload the page.
NON_PPR_VIEW_EXPIRED=Because of inactivity, your session has timed out and is no longer active. The page will automatically be reloaded in 10 seconds; if not, {0}click here{1}.
Carlos

Similar Messages

  • Platform.runLater messes up my Thread.currentThread().getContextClassLoader()

    Hi,
    I have a plugin mechanism in my application. The plugins are defines by an interface and are loaded via URLClassLoader. A plugin can also have resources, loaded via ResourceBundle.getBundle.
    Whenever a plugin's method is called, I do this, before it is called:
    ClassLoader oldLoader = Thread.currentThread().getContextClassLoader();
    Thread.currentThread().setContextClassLoader(pluginClassLoaders.get(pluginClass.cast(proxy)));
    // Invoke plugin method
    Thread.currentThread().setContextClassLoader(oldLoader);
    The plugin methods are called in their own thread, that means, when I want to open a window I need to do it on the JavaFX Application Thread with Platform.runLater.
    The problem is, that in the run method of the Platform.runLater, my Thread.currentThread().getContextClassLoader() is not my URLClassLoader but the Application Classloader.
    Why I need this?
    I don't want the plugin developer to always keep in mind, that he has to pass the correct class loader (of his classes) into the ResourceBundle.getBundle method.
    Instead I thought I could rely on Thread.currentThread().getContextClassLoader(), which is set in the main application, to load the correct bundle.
    It would work, but not if I load the bundle inside the JavaFX Application Thread (but which makes the most sense for UI development).
    So my goal was to have a convenient method like:
    String getResource(String bundle, String key)
    return ResourceBundle.getBundle(bundle).getString(key),  Thread.currentThread().getContextClassLoader());
    To avoid passing the classloader every time.
    Any ideas on this?

    OK, found the problem.
    In data-sources.xml, there is a connection pool and a managed-data-source settings. If I set the data source in there - it works!! Seems these XML tags take preference above the datasource tag.
    This is how the data-sources.xml now looks that's been working:
    <?xml version = '1.0' standalone = 'yes'?>
    <data-sources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/data-sources-10_1.xsd" schema-major-version="10" schema-minor-version="1">
    <connection-pool name="jdev-connection-pool-MYDB">
    <connection-factory factory-class="com.mysql.jdbc.Driver" user="henkie" password="->DataBase_User_recGxQcVfghwCszzy_gfsRgwOrxutL2l" url="jdbc:mysql://localhost/mydb"/>
    </connection-pool>
    <managed-data-source name="jdev-connection-managed-MYDB" jndi-name="jdbc/MYDBDS" connection-pool-name="jdev-connection-pool-MYDB"/>
    </data-sources>

  • How to localize operator labels on af:query

    Hi,
    I have localized af:query component by using skin resource bundle. I still need to change labels for operators. On af:query there are select one choice components that can be used for operator selection. Labels for operators are: "Not equal to","Starts with", "Ends with",... These can not be customised through skin boundle. I think that these labels are defined in class oracle.jbo.CSMessageBoundle.java and they are localized in more then twenty languages but not in the one I need. I tried to create custom MessageBundle for my model project with keys I found in CSMessageBundle. It did not work.
    Does anyone knows how to solve this.
    Thanks!!!
    Maxa

    Hi Gorane,
    you have to create and apply new custom skin for your application. Register new resource bundle for that new skin and in that resource bundle you redefine labels for ui components.
    For creating custom skin look at: "Web User Interface Developer’s Guide for Oracle Application Development Framework" chapter: "20 Customizing the Appearance Using Styles and Skins".
    To find out what keys you need to override check out these link:
    Re: Keys in ResourceBundle
    Here is my resource bundle class with keys for query:
    package com.mycomp.myapp.resources;
    import java.util.ListResourceBundle;
    public class MyAppSkinBundle extends ListResourceBundle {
        public MyAppSkinBundle() {
            super();
        public Object[][] getContents()
            return contents;       
        static final Object[][] contents = {
                {"af_dialog.OK","U redu"},//ok
                {"af_dialog.CANCEL","Odustani"},//ok
                {"af_dialog.LABEL_OK", "U redu"},
                {"af_dialog.LABEL_CANCEL", "Odustani"},
                {"af_dialog.LABEL_YES", "Da"},
                {"af_dialog.LABEL_NO", "Ne"},
                {"af_panelWindow.CLOSE", "Zatvori"},
                {"af_document.LABEL_SPLASH_SCREEN","U\u010Ditavanje"},           
                {"af_document.SPLASH_SCREEN_MESSAGE","Dobrodo\u0161li"},
                {"af_selectManyShuttle.MOVE", "Prebaci"},//ok
                {"af_selectManyShuttle.MOVE_ALL", "Prebaci sve"},//ok
                {"af_selectManyShuttle.REMOVE", "Vrati"},//ok
                {"af_selectManyShuttle.REMOVE_ALL", "Vrati sve"},//ok
                {"af_panelCollection.Detach", "Ra\u0161iri tabelu" },
                {"af_table.Detach", "Ra\u0161iri tabelu" },
                {"af_panelWindow.Detach", "Ra\u0161iri tabelu" },
                {"af_dialog.Detach","Uredu"},
                {"af_panelSplitter.COLLAPSE_PANE","Skupi prozor"},
                {"af_panelCollection.MENU_VIEW", "Prikaz"},
                {"af_panelCollection.MENUITEM_DETACH", "Ra\u0160iri"},
                {"af_panelCollection.MENUITEM_COLUMNS_SHOWALL", "Prika\u017Ei sve"},
                {"af_panelCollection.MENUITEM_COLUMNS_SHOWMORECOLUMNS", "Prika\u017Ei jo\u0161 kolona..."},
                {"af_panelCollection.MENUITEM_REORDER", "Preuredi kolone..." },
                {"af_panelCollection.MENU_COLUMNS", "Kolone"},
                {"af_panelCollection.SHOW_COLUMNS", "Prika\u017Ei kolone"},
                {"af_panelCollection.REORDER_COLUMNS", "Preuredi kolone"},
                {"af_panelCollection.HIDDEN_COLUMNS", "Skrivene kolone"},
                {"af_panelCollection.VISIBLE_COLUMNS", "Vidljive kolone"},
                {"af_panelCollection.DETACH_DIALOG_TITLE", "Ra\u0161irena tabela"},
                {"af_table.FETCHING", "Dobavljanje podataka..."},
                //Lokalizovanje labela na Search popupu
                {"af_query.LABEL_MODE_BASIC", "Osnovni"},
                {"af_query.LABEL_MODE_ADVANCED", "Napredni"},
                {"af_query.LABEL_HEADER_TEXT", "Pretraga"},
                {"af_query.LABEL_REQUIRED_INFO_TEXT", "Obavezno"},
                {"af_query.LABEL_INDEXED_INFO_TEXT", "Bar jedan je neophodan"},
                {"af_query.LABEL_FOOTER_ADD_FIELDS", "Dodaj polja"},
                {"af_query.LABEL_CONJUNCTION", "Poklapanje sa"},
                {"af_query.LABEL_CONJUNCTION_AND", "svim"},
                {"af_query.LABEL_CONJUNCTION_OR", "bilo kojim"},
                {"af_query.LABEL_MODE_BASIC", "Osnovna"},
                {"af_query.LABEL_MODE_ADVANCED", "Napredna"},
                {"af_query.LABEL_SCREEN_READER_MODE_BASIC", "Osnovna pretraga"},
                {"af_query.LABEL_SCREEN_READER_MODE_ADVANCED", "Napredna pretraga"},
                {"af_query.LABEL_SAVE", "Sa\u010Duvaj..."},
                {"af_query.LABEL_RESET", "Obri\u0161i"},
                {"af_query.LABEL_SEARCH", "Pretra\u017Ei"},
                {"af_query.LABEL_DELETE", "Obri\u0161i"},
                {"af_query.LABEL_DUPLICATE", "Dupliciraj"},
                {"af_query.LABEL_APPLY", "Primeni"},
                {"af_query.LABEL_DUPLICATE_NAME_PREFIX", "kopijaOd_"},
                {"af_query.LABEL_SAVED_SEARCH", "Sa\u010Duvana pretraga"},
                {"af_query.LABEL_SAVED_SEARCH_PERSONALIZE_ENTRY", "Prilagodi..."},
                {"af_query.LABEL_PERSONALIZE_SAVED_SEARCHES_DLG", "Prilagodi sa\u010Duvane pretrage"},
                {"af_query.LABEL_CREATE_SAVED_SEARCH_DLG", "Kreiraj sa\u010Duvanu pretragu"},
                {"af_query.LABEL_SAVED_SEARCH_NAME", "Naziv"},
                {"af_query.LABEL_UIHINT_SAVE_RESULTS_LAYOUT", "Sa\u010Duvaj izgled rezultata"},
                {"af_query.LABEL_UIHINT_AUTO_EXECUTE", "Pokreni automatski"},
                {"af_query.LABEL_UIHINT_SHOW_IN_LIST", "Prikaži u listi pretraga"},
                {"af_query.LABEL_UIHINT_DEFAULT", "Postavi za podrazumevano"},
                {"af_query.MSG_SAVED_SEARCH_NAME_UNIQUE_CONSTRAINT", "Pretraga sa ovim imenom ve\u0107 postoji."},
                {"af_query.MSG_SAVED_SEARCH_NAME_UNIQUE_CONSTRAINT_DETAIL", "Morate obezbediti jedinstveno ime."},
                {"af_query.MSG_SAVED_SEARCH_NAME_NOTNULL_CONSTRAINT", "Ime je potrebno"},
                {"af_query.MSG_SAVED_SEARCH_NAME_NOTNULL_CONSTRAINT_DETAIL", "Molimo Vas unesite validno ime za sa\u010Duvanu pretragu."},
                {"af_query.MSG_SAVED_SEARCH_DELDUP_CONSTRAINT", "Potrebno je odabrati sa\u010Duvanu pretragu"},
                {"af_query.MSG_SAVED_SEARCH_DELETE_CONSTRAINT_DETAIL", "Molimo Vas odaberite validnu sa\u010Duvanu pretragu za brisanje."},
                {"af_query.MSG_SAVED_SEARCH_DELETE_WARNING", "Obri\u0161i sa\u010Duvanu pretragu: {0}?"},
                {"af_query.MSG_SAVED_SEARCH_DUPLICATE_CONSTRAINT_DETAIL", "Molimo Vas odaberite validnu sa\u010Duvanu pretragu za dupliranje."},
                {"af_query.TIP_DELETE_SEARCH_FIELD", "Ukloni: {0}"},
                {"af_query.TIP_DELETE_WARNING", "Upozorenje"},
                {"af_query.TIP_OPERATOR", "Operatori za"},
                {"af_query.LABEL_VALUE_LOV_POPUP", "Pretra\u017Ei i odaberi:"},
                {"af_quickQuery.LABEL_DEFAULT", "Pretraga"},
                {"af_quickQuery.LABEL_VALUE_LOV_POPUP", "Pretra\u017Ei i odaberi:"}
    }You can see that I had to use UTF codes for serbian letters.
    //š \u0161
    //Š \u0160
    //č \u010D
    //Č \u010C
    //ć \u0107
    //Ć \u0106
    //ž \u017E
    //Ž \u017D
    //đ \u0111
    //Đ \u0110
    I will be glad to answer on any other question!!!
    Maxa

  • Help with ComboBox Selection Update

    Hello,
    I am trying to make this application display all its labels in a different language depending on which locale the user picks from the ComboBox. The variables are being read from the ResourceBundles correctly (see command-line debugging statements) but I cannot get the pane to 'refresh' when the item is selected. I've tried everything I can think of! Please help! :)
    (This assignment was to internationalize a program we wrote for a previous assignment, so this program wasn't originally written to do this. I am trying to add this functionality to my existing project, so it's not ideal).
    Thank you for any advice, help or hints you can give!
    Program(PrjGUI)
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.ItemEvent;
    import java.awt.event.ItemListener;
    import javax.swing.*;
    import java.text.DateFormat;
    import java.util.Calendar;
    import java.util.GregorianCalendar;
    import java.util.Locale;
    import java.util.ResourceBundle;
    import java.util.TimeZone;
    public class PrjGUI extends JFrame
       //**** Instance Variables for both classes
       private JRadioButton optGram, optOz;
       private JTextField txtWeightEnter, txtResult, txtDateTime;
       private JButton cmdConvert;
       private JComboBox comboSelectLocale;
            //arrays--one for combo box list, and the other for values to use when a particular list item is selected
       private String[] localeList = {"English, USA", "Fran\u00E7ais, France", "Espag\u00F1ol, M\u00E9xico"};
       private Locale[] localeCode = {(new Locale("en", "US")), (new Locale("fr", "FR")), (new Locale("es", "MX"))};
       private JLabel lblChoose, lblWeightEnter;
       protected String titleTxt, enterTxt, btnTxt, gramTxt, ozTxt, resultDisplayTxt, localeTimeZone, dateFormat;
       protected ResourceBundle res;
       protected Locale currentLocale;
       //declare Handler Object
       private CmdConvertWeight convertWeight;
       //**************main method******************
       public static void main(String[] args)
          PrjGUI convertWeight1 = new PrjGUI();
       }//end of main******************************
       //constructor
       public PrjGUI()
          //create panel for components
          Container pane = getContentPane();
          //set the layout
          pane.setLayout(new GridLayout(0, 1, 5, 5));
          //set the color
          pane.setBackground(Color.GREEN);
          //make a font to use in components
          Font font1 = new Font("SansSerif", Font.BOLD, 16);
          /**New calendar object to display the date and time*/
          GregorianCalendar calendar = new GregorianCalendar();
          DateFormat formatter = DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL, Locale.US);
          /**currentLocale = localeCode[comboSelectLocale.getSelectedIndex()];
          DateFormat formatter = DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL, currentLocale); //uses key for ResourceBundle*/
          TimeZone timeZone = TimeZone.getTimeZone("CST");
          //TimeZone timeZone = TimeZone.getTimeZone(localeTimeZone); //uses key for resourceBundle
          formatter.setTimeZone(timeZone);
          //***create UI objects***
          /**NEW OBJECTS FOR prjInternational:
           * a drop-down combobox, a label, and a txt field
          txtDateTime = new JTextField(formatter.format(calendar.getTime()));
          //txtDateTime = formatter.format(calendar.getTime());
          lblChoose = new JLabel("Please choose your language.");
          lblChoose.setFont(font1);
          lblChoose.setBackground(new Color(0, 212, 255)); //aqua blue
          comboSelectLocale = new JComboBox(localeList);
          comboSelectLocale.setFont(font1);
          comboSelectLocale.setBackground(new Color(0, 212, 255)); //aqua blue
          //comboSelectLocale.setSelectedIndex(0);
          //add a listener to the combo box to get the selected item
          /**default values for variables so I can debug--at the moment
           * I can't get the resouceBundle to work--it can't locate the
           * file.  So I will hard code these in for now.
          /*titleTxt="Food Weight Converter";
          enterTxt="Please enter the Weight you wish to convert.";
          btnTxt="Convert this weight!";
          gramTxt="grams";
          ozTxt="oz";
          resultDisplayTxt="Result will display here.";*/
          comboSelectLocale.addItemListener(new ItemListener()
               public void itemStateChanged(ItemEvent e)
                    res = setCurrentLocale(comboSelectLocale.getSelectedIndex());
                    System.out.println(res.getString("enterTxt"));
                    updateItems(res);
                  //set variables from Resource Bundle
                  /* titleTxt = res.getString("titleTxt");
                   System.out.println(res.getString("enterTxt")); //debug
                   enterTxt = res.getString("enterTxt");
                   btnTxt = res.getString("enterTxt");
                   gramTxt = res.getString("gramTxt");
                   ozTxt = res.getString("ozTxt");
                   resultDisplayTxt = res.getString("resultDisplayTxt");*/
          //2 radio buttons
          //optGram = new JRadioButton("grams", true);
          optGram = new JRadioButton(gramTxt, true);
          //optOz = new JRadioButton("oz.");
          optOz = new JRadioButton(ozTxt);
          optGram.setBackground(Color.GREEN);
          optGram.setFont(font1);
          optOz.setBackground(Color.GREEN);
          optOz.setFont(font1);
          //button group so only one can be chosen
          ButtonGroup weightUnit = new ButtonGroup();
          weightUnit.add(optGram);
          weightUnit.add(optOz);
          //label and text field for weight
          //JLabel lblWeightEnter = new JLabel("Please enter the weight you wish to convert:");
          JLabel lblWeightEnter = new JLabel(enterTxt);
          lblWeightEnter.setFont(font1);
          txtWeightEnter = new JTextField("20.05", 6);
          txtWeightEnter.setBackground(new Color(205, 255, 0)); //lime green
          txtWeightEnter.setFont(font1);
          //button to make conversion
          //cmdConvert = new JButton("Convert this weight!");
          cmdConvert = new JButton(btnTxt);
          cmdConvert.setFont(font1);
          //textfield to display result
          //txtResult = new JTextField("Result will display here");
          txtResult = new JTextField(resultDisplayTxt);
          txtResult.setBackground(new Color(205, 255, 0)); //lime green
          txtResult.setFont(font1);
          //register the handler
          convertWeight = new CmdConvertWeight();
          cmdConvert.addActionListener(convertWeight);
          //add content to pane
          pane.add(txtDateTime);
          pane.add(lblChoose);
          pane.add(comboSelectLocale);
          pane.add(lblWeightEnter);
          pane.add(txtWeightEnter);
          pane.add(optGram);
          pane.add(optOz);
          pane.add(cmdConvert);
          pane.add(txtResult);
          //create window for object
          setTitle(titleTxt);
          setSize(400, 300);
          setVisible(true);
          setLocationRelativeTo(null);
          setDefaultCloseOperation(EXIT_ON_CLOSE);
       }//end of constructor
       /**  ACTION LISTENER CLASS TO RESPOND TO USER'S INPUT (EVENTS) **/
       private class CmdConvertWeight implements ActionListener
          public void actionPerformed(ActionEvent e)
             //System.out.println("we made it to the Action Listener"); //debug
             //get info from fields
             double weight = Double.parseDouble(txtWeightEnter.getText());
             double weightConvert = 0;
             String weightConvertString;
             if (optGram.isSelected())//if user's weight is in grams, converting to oz
             weightConvert = weight/28.35;
             weightConvertString = Double.toString(weightConvert);
             txtResult.setText(txtWeightEnter.getText() + " grams is equal to " + weightConvertString + " oz.");
             }//end if gram select
             else if (optOz.isSelected())//if user's weight is in oz, converting to grams
             weightConvert = weight*28.35;
             weightConvertString = Double.toString(weightConvert);
             txtResult.setText(txtWeightEnter.getText() + " oz. is equal to " + weightConvertString + " grams.");
             }//end if oz select
         }//end actionPerformed
      }//end CmdConvertWeight
       /**setCurrentLocale method from combo box listener*/
       public ResourceBundle setCurrentLocale(int index)
            Locale currentLocale = localeCode[index];
            System.out.println(currentLocale); //debug
            System.out.println("MyResource_" + currentLocale); //debug
            ResourceBundle res = ResourceBundle.getBundle("MyResource_" + currentLocale);
            return res;
       }//end setCurrentLocale
       public void updateItems(ResourceBundle res)
            //convertWeight1.setTitle(res.getString(titleTxt));
            System.out.println(res.getString(btnTxt));//debug
            lblWeightEnter.setText(res.getString(enterTxt));
            optGram.setText(res.getString(gramTxt));
            optOz.setText(res.getString(ozTxt));
            cmdConvert.setText(res.getString(btnTxt));
            txtResult.setText(res.getString(resultDisplayTxt));
       }//end updateItems
    }//end of class PrjGUIResourceBundles(each in a different file)
    public class MyResource_fr_FR extends java.util.ListResourceBundle
         static final Object[][] contents =
              {"titleTxt", "Convertisseur de poids de nourriture"},
              {"enterTxt", "Veuillez \u00E9crire le poids que vous souhaitez convertir."},
              {"btnTxt", "Convertissez ce poids!"},
              {"gramTxt", "grammes"},
              {"ozTxt", "onces"},
              {"resultDisplayTxt", "Le r\u00E9sultat montrera ici."},
              {"localeTimeZone", "CET"},
              {"dateFormat", "Locale.FR"}
         public Object[][] getContents()
              return contents;
    public class MyResource_es_MX extends java.util.ListResourceBundle
         static final Object[][] contents =
              {"titleTxt", "Convertidor del peso del alimento"},
              {"enterTxt", "Incorpore por favor el peso que usted desea convertir."},
              {"btnTxt", "\u00F1convierta este peso!"},
              {"gramTxt", "gramos"},
              {"ozTxt", "onzas"},
              {"resultDisplayTxt", "El resultado exhibir\u00E1 aqu\u00ED."},
              {"localeTimeZone", "CST"},
              {"dateFormat", "Locale.MX"}     
         public Object[][] getContents()
              return contents;
    public class MyResource_en_US extends java.util.ListResourceBundle
         static final Object[][] contents =
              {"titleTxt", "Food Weight Converter"},
              {"enterTxt", "Please enter the weight you wish to convert."},
              {"btnTxt", "Convert this weight!"},
              {"gramTxt", "grams"},
              {"ozTxt", "oz"},
              {"resultDisplayTxt", "Result will display here."},
              {"localeTimeZone", "CST"},
              {"dateFormat", "Locale.US"}
         public Object[][] getContents()
              return contents;
    }Edited by: JessePhoenix on Nov 2, 2008 8:30 PM

    catman2u wrote:
    does anyone from Lenovo actually read this forum?
    From the Communiy Rules in the Welcome section....
     Objectives of Lenovo Discussion Forums
    These communities have been created to provide a high quality atmosphere in which users of Lenovo products and services may share experiences and expertise. While members from Lenovo may participate at intervals to engage in the discussions and offer advice and suggestions, this forum is not designed as a dedicated and staffed support channel. This is an informal and public forum, and Lenovo does not guarantee the accuracy of information and advice posted here -- see important Warranty information below.
    No amount of ranting is going to get you anything more than you will achieve with a clear exposition of your issue... so you might want to try doing that instead of ranting and assuming that everyone already knows what you know etc etc.
    Cheers,
    Bill
    I don't work for Lenovo

  • WhoIsWho User Search fails (User 30,000)

    Hi All,
             We have a EP 7.0 SR1 Portal.
    We have configured the UME for 5 different LDAP's. We have around 30,000 users.
    <b>WhoIsWho search Iview fails to get the results.</b>
    PS: We have already set the ume.admin.search.maxhits parameter into the
    config tool to 30,000.
    Regards
    Sunil Kulkarni

    Hello Carsten,
                        I am not sure, how to exactly locate the perticular error details.
    Following information from default.trc seems to be relevent:1
    Error##Java###failed to fetch key from ResourceBundle
    [EXCEPTION]
    #1#java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key DS_CORP_LDAP_SCAN
         at java.util.ResourceBundle.getObject(ResourceBundle.java:325)
         at java.util.ResourceBundle.getObject(ResourceBundle.java:322)
         at java.util.ResourceBundle.getString(ResourceBundle.java:285)
         at com.sap.security.core.util.ResourceBean.get(ResourceBean.java:91)
         at com.sap.security.core.jmx.impl.CompanyPrincipalFactory.localizeDatasourceId(CompanyPrincipalFactory.java:708)
         at com.sap.security.core.jmx.impl.JmxServer.getDatasources(JmxServer.java:682)
    Regards
    Sunil

  • ResourceBundle-like component to handle multiple keys ??

    Requirement is :
    A property file will contain resource names, keys (variants) & values of resources depending on keys supplied :
    e.g.
    res1.key1.key11 = valA
    res1.key1.key12 = valB
    res1.key2 = valC
    res2 = valDWe require a component, say ClassA, which will perform following :
    1. ClassA gets data from above property file (can be passed in constructor)
    2. ClassA exhibits a method, which takes resource (property) name, a variable list of keys & returns appropriate value for resource :
    e.g. if i call :
    ClassA a = new ClassA(propfile);
    a.getResource("res1","key1.key11") should return 'valA
    a.getResource("res1","key1.key12") should return valB
    a.getResource("res1") should return any designated default value ( say valA )
    a.getResource("res2") should return valDSo on & so forth ....
    The ResourceBundle class of standard Java collection framework provide similar functionality, but only three keys : Locale, language & variant1. We require that this list of keys should be as long as we desire & if possible dynamically changeable.
    Otherwise the method of determining values depending on keys should be similar to ResourceBundle.
    Is this any such class available ? Or has anyone developed something similar ?
    Thanks,
    Subodh

    Well, standard ResourceBundles can be constructed using a Locale object, which is dependent on Language, Country & Variant.
    Suppose I create a Locale instance for language "en", country "us".
    Now when I try to create a ResourceBundle for this locale, it will search a appropriate class (or any underlying resource - like property file) as :
    first it will try to find baseclasslanguage_country.
    If this class/resource is not found, then baseclasslanguage will be searched.
    If even this is not found, baseclass will be searched.
    Thus, depending on availability / non-availability of details, it goes searching for more & more general class/resource.
    Here, the deciding factors can be MAX 3 - language, country & variant.
    I want a class which can take any number of deciding facotrs - say 10.
    So I would search for baseclass_fact1_fact2_fact3_fact4_fact5, get any of the following available resource :
    baseclass_fact1_fact2_fact3_fact4_fact5
    baseclass_fact1_fact2_fact3_fact4
    baseclass_fact1_fact2_fact3
    baseclass_fact1_fact2
    baseclass_fact1
    baseclass
    Hope that clarifies situation,
    Subodh

  • File upload in KM throws a system exception: java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key xtlt_Required

    Hi All,
    We are on Netweaver 7.01 SP14. (well I understand we are way behind patch levels, but a simple file upload should be working ?/)
    We are trying to upload (HTML &/ Image) a file in one of the KM's public folder.
    As and when we select folder and click on upload we get the below message:
    Below is the error trace details:
    Full Message Text
    com.sapportals.wdf.WdfException
    at com.sapportals.wcm.control.edit.ResourceUploadControl.render(ResourceUploadControl.java:688)
    at com.sapportals.wdf.layout.HorizontalLayout.renderControls(HorizontalLayout.java:42)
    at com.sapportals.wdf.stack.Pane.render(Pane.java:155)
    at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
    at com.sapportals.wdf.layout.HorizontalLayout.renderPanes(HorizontalLayout.java:73)
    at com.sapportals.wdf.stack.Pane.render(Pane.java:158)
    at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
    at com.sapportals.wdf.layout.HorizontalLayout.renderPanes(HorizontalLayout.java:73)
    at com.sapportals.wdf.stack.Pane.render(Pane.java:158)
    at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
    at com.sapportals.wdf.layout.HorizontalLayout.renderPanes(HorizontalLayout.java:73)
    at com.sapportals.wdf.stack.Pane.render(Pane.java:158)
    at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
    at com.sapportals.wdf.WdfCompositeController.internalRender(WdfCompositeController.java:709)
    at com.sapportals.wdf.WdfCompositeController.buildComposition(WdfCompositeController.java:674)
    at com.sapportals.htmlb.AbstractCompositeComponent.preRender(AbstractCompositeComponent.java:33)
    at com.sapportals.htmlb.Container.preRender(Container.java:120)
    at com.sapportals.htmlb.Container.preRender(Container.java:120)
    at com.sapportals.htmlb.Container.preRender(Container.java:120)
    at com.sapportals.portal.htmlb.PrtContext.render(PrtContext.java:408)
    at com.sapportals.htmlb.page.DynPage.doOutput(DynPage.java:238)
    at com.sapportals.wcm.portal.component.base.KMControllerDynPage.doOutput(KMControllerDynPage.java:134)
    at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:133)
    at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
    at com.sapportals.wcm.portal.component.base.ControllerComponent.doContent(ControllerComponent.java:88)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
    at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
    at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:249)
    at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:557)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:430)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1064)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    --- Nested WDF Exception -----------------------
    java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key xtlt_Required
    at java.util.ResourceBundle.getObject(ResourceBundle.java:327)
    at java.util.ResourceBundle.getObject(ResourceBundle.java:324)
    at java.util.ResourceBundle.getString(ResourceBundle.java:287)
    at com.sapportals.wcm.util.resource.ResourceBundles.getString(ResourceBundles.java:55)
    at com.sapportals.wcm.control.base.WcmBaseControl.getBaseBundleString(WcmBaseControl.java:150)
    at com.sapportals.wcm.control.base.WcmBaseControl.getBaseBundleString(WcmBaseControl.java:176)
    at com.sapportals.wcm.control.edit.ResourceUploadControl.renderUploadFileContent(ResourceUploadControl.java:773)
    at com.sapportals.wcm.control.edit.ResourceUploadControl.render(ResourceUploadControl.java:655)
    at com.sapportals.wdf.layout.HorizontalLayout.renderControls(HorizontalLayout.java:42)
    at com.sapportals.wdf.stack.Pane.render(Pane.java:155)
    at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
    at com.sapportals.wdf.layout.HorizontalLayout.renderPanes(HorizontalLayout.java:73)
    at com.sapportals.wdf.stack.Pane.render(Pane.java:158)
    at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
    at com.sapportals.wdf.layout.HorizontalLayout.renderPanes(HorizontalLayout.java:73)
    at com.sapportals.wdf.stack.Pane.render(Pane.java:158)
    at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
    at com.sapportals.wdf.layout.HorizontalLayout.renderPanes(HorizontalLayout.java:73)
    at com.sapportals.wdf.stack.Pane.render(Pane.java:158)
    at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
    at com.sapportals.wdf.WdfCompositeController.internalRender(WdfCompositeController.java:709)
    at com.sapportals.wdf.WdfCompositeController.buildComposition(WdfCompositeController.java:674)
    at com.sapportals.htmlb.AbstractCompositeComponent.preRender(AbstractCompositeComponent.java:33)
    at com.sapportals.htmlb.Container.preRender(Container.java:120)
    at com.sapportals.htmlb.Container.preRender(Container.java:120)
    at com.sapportals.htmlb.Container.preRender(Container.java:120)
    at com.sapportals.portal.htmlb.PrtContext.render(PrtContext.java:408)
    at com.sapportals.htmlb.page.DynPage.doOutput(DynPage.java:238)
    at com.sapportals.wcm.portal.component.base.KMControllerDynPage.doOutput(KMControllerDynPage.java:134)
    at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:133)
    at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
    at com.sapportals.wcm.portal.component.base.ControllerComponent.doContent(ControllerComponent.java:88)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
    at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
    at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:249)
    at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:557)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:430)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1064)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176) 

    Hi Vijay,
    Thanks for the quick reply.
    I have gone through the notes 1535201  & now on 1606563  after your advise.
    Both the notes says the fix is available on 7.01 after SP 07 and we are on SP 14 already.
    Also just in case I did checked with our basis and they confirmed we are a head and we have the above notes in our release already.
    Unfortunately the notes are not the solution to the investigation till date.
    Thanks,
    Sai

  • Java.util.ResourceBundle VS java.util.Properties

    I want to keep some key values pair outside program in a properties file and use that in my program. There is no requirement of localization. Should i use ResourceBundle or Properties class? Previously I have used Properties class for this purpose but in my current project ResourceBundle is being used. Is there any benefits in using ResourceBundle? will it be faster to read properties using ResourceBundle?

    ResourceBundles support internationalization. If you know that don't need it and Properties suffice, okay then.
    Forget about "fast", both will have to read from the disk (slow) and both will use hashmaps (fast look-up). And both will probably do it in the same way.

  • How to enumerate keys in Resource Bundle?

    Is there any way to enumerate all the keys (but not the values) of resource bundle?

    If rb is a ResourceBundle, you can enumerate the keys and values in its 'content' property with the following code:
    for (var key:String in rb.content)
        var value:* = rb.content[key];
    Gordon Smith
    Adobe Flex SDK Team

  • How to realize czech texts with ResourceBundles

    Hi!
    I have got a big problem trying to make one of our german applications available in czech.
    We are using ResourceBundles with .properties files for our texts and have now translated them into czech. When loading the bundle by calling:
    ResourceBundle rb = ResourceBundle.getBundle("x.x.x.BundleName", locale);all seems to work and there is no exception thrown.
    But when i try to get any text out of it i.e. by calling:
    rb.getString("name");i get an exception:
    java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key name
    I tryied to use native2ascii with several encodings (Cp1252, ISO-8859-1, ISO-8859-2, UTF-8, UTF-16, ...) but i never got one that realy works the way i want. Most of the encodings i tryied changes some of the special characters in the file but also left some of them so that i can get some translated texts but most of them with boxes or question symbols within. native2ascii with UTF-8 encoding only answers with a sun.io.MalformedInputException in the comand line. UTF-16 initially looked fine cause nearly all special characters was translated into \uXXXX escape sequences but also there i got a problem with one special character: � (hope it will be displayed correctly here). This character seems to annoy the native2ascii tool cause the following characters would also be translated into escape sequences even if this is not necessary. Also i got some question symbols in the GUI again (having the charset in the HTML/JSP file set to UTF-16).
    I don't know why the original translated property file could not be read in getting an exception only when trying to get a text not when loading the file. Another thing confusing me is that all encodings (except UTF-16) that i tryied for the translated file corrupted the file by seperating each character with a blank one (so i.e. name = jm�no appered as n a m e = j m \u00e9 n o).
    Some of the special characters in the translation are: � � � � � (and also some other characters with those symbols).
    Please can anyone help me or does anyone has experiences with translating a (web) project to czech or any similar/related language.
    Thanks a lot
    Juergen

    You also seem to have a problem with using native2ascii. You say that you tried to use it with Cp1252, ISO-8859-1 (among others), but how can you possibly have a Czech file in those code pages? They don't support the Czech characters set. You simply need to know which source code page your file is actually in, and then run native2ascii on the file specifying that encoding. I have never had a problem executing native2ascii on a Czech file, it seems to work just fine - as long as the correct source encoding is used.

  • How to "get object" -- ResourceBundle

    According to the ResourceBundle API:
    ResourceBundle myResources =  ResourceBundle.getBundle("MyResources");Besides getString, ResourceBundle also provides ... a generic getObject method for any other type of object. When using getObject, you'll have to cast the result to the appropriate type. For example:
    int[] myIntegers = (int[]) myResources.getObject("intList");
    {code}
    Elsewhere,
    +getBundle+ attempts to locate a property resource file.
    Does it make sense/Is it possible to +getObject+ from a property resource file? If so, how is the object "expressed" in the property resource file?
    For example, if the resource file looks like
    1=Person
    then the key 1 is associated with the String "Person"
    If
    [code]class Person {
    String firstName;
    String lastName;
    ... }[/code]
    is it possible to associate "1" with a Person object, where firstName is "Foo" and lastName is "Bar"?
    If so, how would it look in the property resource file?
    Thanks in advance,
    C                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    In the resource file, you can save the data like this:
    numberofperson=2
    firstname1=Foo
    firstname2=dummyfirst
    lastname1=Bar
    lastname2=dummylast
    For programming, you can code like this:
    public class Person{
    private String firstname;
    private String lastname;
    public Person(String firstname, String lastname){
    this.firstname = firstname;
    this.lastname = lastname;
    int personNum = Integer.parseInt(myResources.getString("numberofperson"));
    Person personArr[] = new Person[personNum];
    for (int i=1; i<personNum; i++){
    personArr[i] = new Person(myResources.getString("firstname"+i),myResources.getString("lastname"+i));
    }

  • Localized Accelorator Keys

    Hi folks,
    I have a problem with localization and accelerator keys. I am developing a localized Swing GUI where a user can set his preffered Locale and then all texts are translated.... That's all no prob. The problem is, that in JMenus the accelerator keys for items are displayed not according to the set default locale (e.g., en-US) but are displayed according to the OS user.language (in my case de [German]). Hence, the accel. keys read, e.g., '*Strg-N*' instead of '*Ctrl-N*' as expected for default locale en.
    This is just a display problem, the functionality / the keys work fine, of course.
    I guess my prob is (somehow) related to the awt.properties. When invoking, e.g., KeyEvent.getKeyModifiersText(keyStroke.getModifiers() (which I assume is called for JMenuItems to display the acc keys) I get the modifier key as string in German. These properties are loaded on startup? according to the OS user language. If i change my user language (e.g., with the jvm switch -Duser.language=en) everything is fine. When changing this system property inside Java Code (e.g. in my main-method) the awt.properties are already loaded (somehow) with the OS user.language. Hence, this option doesn't work.
    Has anybody an idea / workaround how I get these modifier keys displayed localized. Is there perhaps a way to change the awt-property on runtime or, at least, to set the values of these properties, e.g. AWT.control?
    Thanks!

    The solution would be to set the user language or the locale before the Toolkit class gets loaded. This would generally be VERY early in the startup sequence, say the first lines of your main method. Because as soon as you start using any GUI related classes such as JFrame, the Toolkit class will also get loaded.
    In my first attempt to solve your problem it didn't work even though I set the locale on the FIRST line of my main method. The problem was that my test class itself extended from JFrame, so the JFrame class got loaded before the main method executed. And loading JFrame means also loading Component means loading Toolkit means the resources got loaded with the default VM user language.
    See the Toolkit class, where you can find the following code (I put a break point on this line):
    resources = ResourceBundle.getBundle("sun.awt.resources.awt", CoreResourceBundleControl.getRBControlInstance());Find below a running example which solves your problem:
    import java.awt.BorderLayout;
    import java.awt.event.ActionEvent;
    import java.util.Locale;
    import javax.swing.AbstractAction;
    import javax.swing.Action;
    import javax.swing.JFrame;
    import javax.swing.JMenu;
    import javax.swing.JMenuBar;
    import javax.swing.JMenuItem;
    import javax.swing.JOptionPane;
    import javax.swing.KeyStroke;
    import javax.swing.SwingUtilities;
    public class Accelerators {
        static void createAndShowGui() {
            JMenuBar bar = new JMenuBar();
            JMenu menu = new JMenu("File");
            bar.add(menu);
            menu.add(new JMenuItem(new AbstractAction() {
                    putValue(Action.NAME, "Save");
                    putValue(Action.ACCELERATOR_KEY, KeyStroke
                            .getKeyStroke("ctrl S"));
                public void actionPerformed(ActionEvent e) {
                    JOptionPane
                            .showConfirmDialog(
                                    null,
                                    "Notice language of dialog caption & buttons.\nThese also depend on the user.language");
            JFrame f = new JFrame("Accelerators");
            f.getContentPane().add(bar, BorderLayout.NORTH);
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.setLocationRelativeTo(null);
            f.setSize(300, 300);
            f.setVisible(true);
        public static void main(String[] args) {
            // Locale.setDefault(Locale.US);
            Locale.setDefault(Locale.GERMAN);
            // or:
            // System.setProperty("user.language", "en");
            // System.setProperty("user.language", "de");
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGui();
    }

  • Crash when using Dimensions version plug-in - key Failed to {0} file {1}

    Oracle JDeveloper 11.1.1.3.0 (JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660)
    Versioning Support (for Dimensions) 11.1.1.3.37.56.60
    I've used "Versioning | Configure" to disable SVN support so that Dimensions is my only enabled extension. No matter what I have selected in the Application Navigator, I cannot get anything enabled on the 'Versioning' menu other than Download and Configure. If I download, I'm prompted to login (testing the connection works fine), and then the "Log Out" menu option is enabled, but no others.
    I've got an application with one project that I've created and added to Dimensions via the Dimensions client. Attempting to download this project into JDeveloper using either the "Download" option from the versioning menu, or the right-click | download from the "Versioning Navigator" fails. If I do it from the Versioning menu, I get the 'Download' dialog and the OK button is enabled, but after entering a destination and clicking OK nothing happens (no error, dialog remains).
    If I use the Versioning Navigator and right-click, I can select my Dimensions project, enter a destination, and click ok and a crash occurs. Details of the error are below:
    Performing action Download...[ from oracle.jdevimpl.vcs.nav.VersioningNavigatorManager$2 ]
    Invoking command: [ from oracle.jdevimpl.vcs.nav.VersioningNavigatorManager$2 ]
    java.util.MissingResourceException: Can't find resource for bundle oracle.jdevimpl.vcs.dimensions.res.Resource, key Failed to {0} file {1}
    j.util.ResourceBundle.getObject(ResourceBundle.java:384)
    j.util.ResourceBundle.getObject(ResourceBundle.java:381)
    j.util.ResourceBundle.getString(ResourceBundle.java:344)
    o.ji.vcs.dimensions.res.Resource.get(Resource.java:23)
    o.ji.vcs.dimensions.res.Resource.format(Resource.java:31)
    o.ji.vcs.dimensions.session.DMVersionOperation.convertToDMException(DMVersionOperation.java:98)
    o.ji.vcs.dimensions.session.DMDownload.downloadFolder(DMDownload.java:84)
    o.ji.vcs.dimensions.nav.cmd.DMDownloadCommand$1.doInvocation(DMDownloadCommand.java:308)
    o.j.vcs.spi.VCSDirectoryInvokable.runInvokableImpl(VCSDirectoryInvokable.java:199)
    o.j.vcs.spi.VCSDirectoryInvokable.runInvokable(VCSDirectoryInvokable.java:117)
    o.ji.vcs.dimensions.nav.cmd.DMDownloadCommand.invokeCommandImpl(DMDownloadCommand.java:258)
    o.ji.vcs.dimensions.op.DMAbstractOperation$1.doCommitOperation(DMAbstractOperation.java:102)
    o.j.vcs.spi.VCSDialogCommitter$1.run(VCSDialogCommitter.java:82)
    Any thoughts?

    I get that error too, only when checking in a new item.
    Got it in Dimensions 2009R02 and 2009R03
    /Kim

  • Problems in Arabic and ResourceBundle

    i have a problem with arabic text using the resource bundle property file.
    I using struts framework and in the jsp i use <bean:meassage key="TheKey">
    like:
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
    <%@ page contentType="text/html; charset=windows-1256"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1256"/>
    </head>
    <body>
    <bean:message key="deposits.deposit.global.depositId"/></td>
    </body>
    </html>
    and the value of the key is arabic text , when i run this page , the arabic text was displayed as ????.
    i have seaching the forum and no solution for this case << Using resource bundle >>.
    Any help Please.

    I think that the solution is to use Unicode utf-8
    add this line in the header of every page that content arabic word
    <%@ page contentType="text/html; charset=utf-8" %>
    and in the ResourceBundle file write in arabic , you will see after compilation that what you had write in arabic became in Unicode.
    exemple :
    before compilation
    Form.label.sndName= &#1575;&#1604;&#1573;&#1587;&#1605;
    after comilation
    Form.label.sndName= \u0627\u0644\u0625\u0633\u0645
    and remember that i sad that you must add
    <%@ page contentType="text/html; charset=utf-8" %> in every page that content arabic word
    in jsp page write
    <bean:message key="Form.label.sndName"/>
    if you folowing this concept you will not encounter any problem with javascript validation

  • Using ResourceBundle and Locale in an Applet

    hello,
    i worked out a little application to use with multilanguage support.
    i wrote two classes so i can start the application within a jar file located on my computer and anotherone to launch it as an applet...
    for development i use Eclipse; when i try to run it in eclipse everything works fine (although i limit the access of the applet!)
    when i try to run the applet in IE i get the error message:
    java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read)i did not use the function "System.getProperty("user.dir")" in MY code which is referred!
    so i guess its one of the included packages:
    ResourceBundle | Locale
    how can i solve this problem as its working in the limited access applet in eclipse??
    thanks in advance

    note: i do load the .properties file from the JAR package, not from hdd!
    here is my code
    import java.util.Locale;
    import java.util.ResourceBundle;
    public class Xlocale {
         private Locale locale = Locale.ENGLISH;
         private ResourceBundle thisLocaleRB;
         public Xlocale(String aXlocaleName, String aLocale) {
              setLocale(getLocale(aLocale)); //if you leave this line it won't work *hmm?*
              if (thisLocaleRB == null || getLocale() != thisLocaleRB.getLocale()) {
                   try {
                        thisLocaleRB = ResourceBundle.getBundle(aXlocaleName, getLocale());
                   } catch (Exception e) {
                        //System.err.println(e.getLocalizedMessage()+" ["+System.getProperty("user.dir")+"\\"+aXlocaleName+"_"+getLocale()+".properties]\n");
         public String getString(String key, String dv) {
              String val = thisLocaleRB.getString(key);
              if (val == null)
                   return dv;
              else
                   return val;
         public void setLocale(Locale l) {
              this.locale = l;
         public Locale getLocale() {
              return this.locale == null ? Locale.ENGLISH : locale;
        public static Locale getLocale(String loc)
            if(loc!=null && loc.length()>0)
                return new Locale(loc);
            else
                return Locale.ENGLISH;
    }

Maybe you are looking for

  • How do I save iCal to a flashdrive?

    I used iCal for the first time on my Mac this week. I made a calendar of my schedule for the next 4 months to give to my boss. I have no printer, so I saved the iCal file to my 1GB USB flashdrive. When i went to the library and got on a G5 and pulled

  • What is Firewire?  What does it do? How do you get it to work on the MacPro-something I must purchase perhaps?

    What is Firewire? What does it do? How do I get it to work on my MacPro?  Do I purchase it?

  • Running bat files in java code

    Hi, I am trying to run a .bat file within java code like this. Runtime.getRuntime().exec("c:\\Test.bat"); but no success. Could you please suggest how to run .bat file or simply a DOS command from java code. thanx in advance Deepak Garg.

  • Problem with DataMatrix barcode

    Hi,       I am using a xdp form with DataMatrix barcode in designer 7.1. I am rendering the xdp as pdf in livecycle workbench. The problem is the barcode is working properly in desinger,  but in the rendered pdf its not working, Can anyone identify w

  • 9i runInstaller Compaq Tru64 UNIX V5.1 fails...

    I'm desperate to install the New Oracle 9i (we want to use this database as the Repository database for iFS.) My environment: $ env PATH=/usr/bin:.:/usr/local/bin:/usr/local/sbin:/usr/sbin:/oracle/product/9.0.1/bin:/usr/ccs/bin:/usr/openwin /bin ORAC