![]() |
Модераторы: LSD, AntonSaburov |
![]() ![]() ![]() |
|
Royan |
|
|||
Dreamer ![]() ![]() ![]() Профиль Группа: Участник Клуба Сообщений: 1708 Регистрация: 14.9.2002 Где: Лондон Репутация: 1 Всего: 15 |
Делаю вот так:
Вопрос: почему не видно текста? -------------------- Открыта вакансия Junior Java Developer'а в нашем лондонском офисе, подробнее можно узнать здесь |
|||
|
||||
AlCapone |
|
|||
![]() Новичок Профиль Группа: Участник Сообщений: 5 Регистрация: 4.8.2008 Где: Королев и Долгопр удный МО Репутация: нет Всего: нет |
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 |
|
|||
![]() Опытный ![]() ![]() Профиль Группа: Участник Сообщений: 358 Регистрация: 17.5.2007 Где: Молдова, Кишинев Репутация: 1 Всего: 1 |
и Усе.... -------------------- |
|||
|
||||
Keyo |
|
|||
Шустрый ![]() Профиль Группа: Участник Сообщений: 95 Регистрация: 10.4.2008 Репутация: нет Всего: нет |
А почему никто не догадался тупо заглянуть в ман?
Это сообщение отредактировал(а) Keyo - 14.8.2008, 15:59 |
|||
|
||||
![]() ![]() ![]() |
Правила форума "Java" | |
|
Если Вам помогли, и атмосфера форума Вам понравилась, то заходите к нам чаще! С уважением, LSD, AntonSaburov, powerOn, jk1. |
1 Пользователей читают эту тему (1 Гостей и 0 Скрытых Пользователей) | |
0 Пользователей: | |
« Предыдущая тема | Java: GUI и Java FX приложения | Следующая тема » |
|
По вопросам размещения рекламы пишите на vladimir(sobaka)vingrad.ru
Отказ от ответственности Powered by Invision Power Board(R) 1.3 © 2003 IPS, Inc. |