Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Hilfe....!!!!

Empfohlene Antworten

Veröffentlicht

...ich brauche dringend Hilfe!!! Ich möchte die MenuItems und das Menü über ein ActionEvent in Schrift und Form verändern. Da die Beschriftungen(wg. Internationalisierung) in seperaten Properties Files liegen ist mit 'setFont' z.B. nichts zu machen. Wer hat eine Idee und kann mir weiterhelfen. Ich verzweifle sonst noch

Quellcode:

/**Bei dieser Funktion werden die Items entsprechend der PropertiesDatei (MyTextResource) gesetzt/umbenannt:*/

private void setLabels(Locale l)

{

this.menu.setLabel(ResourceBundle.getBundle

( "MyTextResource", l).getString( "menu"));

this.itemNew.setLabel(ResourceBundle.getBundle

( "MyTextResource", l).getString( "itemNew"));

this.itemOpen.setLabel(ResourceBundle.getBundle

( "MyTextResource", l).getString( "itemOpen"));

this.itemClose.setLabel(ResourceBundle.getBundle

( "MyTextResource", l).getString( "itemClose"));

this.options.setLabel(ResourceBundle.getBundle

( "MyTextResource", l).getString( "options"));

this.itemCharacterFont.setLabel(ResourceBundle.getBundle

( "MyTextResource", l).getString( "itemCharacterFont"));

this.itemCharacterSize.setLabel(ResourceBundle.getBundle

( "MyTextResource", l).getString( "itemCharacterSize"));

this.language.setLabel(ResourceBundle.getBundle

( "MyTextResource", l).getString( "language"));

this.itemGerman.setLabel(ResourceBundle.getBundle

( "MyTextResource", l).getString( "itemGerman"));

this.itemEnglish.setLabel(ResourceBundle.getBundle

( "MyTextResource", l).getString( "itemEnglish"));

this.help.setLabel(ResourceBundle.getBundle

( "MyTextResource", l).getString( "help"));

this.itemManual.setLabel(ResourceBundle.getBundle

( "MyTextResource", l).getString( "itemManual"));

this.info.setLabel(ResourceBundle.getBundle

( "MyTextResource", l).getString( "info"));

this.itemCopyRight.setLabel(ResourceBundle.getBundle

( "MyTextResource", l).getString( "itemCopyRight"));

this.itemSysInfo.setLabel(ResourceBundle.getBundle

( "MyTextResource", l).getString( "itemSysInfo"));

}

/** Und ausgeführt werden soll das ganze durch:*/

void itemCharacterFont_actionPerformed( ActionEvent e)

{

}

/**und: */

void itemCharacterSize_actionPerformed( ActionEvent e)

{

}

:eek:

[ 05. Juli 2001: Beitrag editiert von: Selex ]

Hi!

Du solltest dir mal den UIManager anschauen, der wird dir Bestimmt weiterhelfen. In der API, oder auf java.sun.com findet sich sicherlich was dazu.

Gruß

Hardcoder

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.