Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате |
Форум программистов > Java: GUI и Java FX приложения > После установки action'a не видно текста на кнопке |
Автор: Royan 12.8.2008, 23:37 | ||
Делаю вот так:
Вопрос: почему не видно текста? |
Автор: AlCapone 13.8.2008, 02:39 | ||
The Action interface provides a useful extension to the ActionListener interface in cases where the same functionality may be accessed by several controls. In addition to the actionPerformed method defined by the ActionListener interface, this interface allows the application to define, in a single place: !!!!!!!!!!!!!!!!!!!!!!!!* One or more text strings that describe the function. These strings can be used, for example, to display the flyover text for a button or to set the text in a menu item.!!!!!!!!!!!!!!! * One or more icons that depict the function. These icons can be used for the images in a menu control, or for composite entries in a more sophisticated user interface. * The enabled/disabled state of the functionality. Instead of having to separately disable the menu item and the toolbar button, the application can disable the function that implements this interface. All components which are registered as listeners for the state change then know to disable event generation for that item and to modify the display accordingly. ну собственно код, который показывает строку с использованием AbstractAction
надеюсь,что помогло ![]() |
Автор: skif18 14.8.2008, 14:45 | ||
и Усе.... |
Автор: Keyo 14.8.2008, 15:43 | ||
А почему никто не догадался тупо заглянуть в ман?
|