Wie kann ich Buttons und Textfield Formatieren?

Code46

Erfahrenes Mitglied
Hi liebes forum,
ich wollte gerne meine projekt weiter führen und ein paar Buttons,Textfields und Labels einfügen.Jedoch will ich diese Formatieren das es gut aussieht.
Wisst ihr wie ich das machen kann?

Würde mich sehr freuen danke
 
Code:
setFont(new Font("Arial", Font.PLAIN, 12));
(fontname, dick, (kursiv, normal, dickundkursiv), größe
oder
Code:
 setFont(yourFont);

oder meist du das lookandfeel? also z.b. vistastyle oderso?

Code:
	public void updateLookAndFeel() {
		try {
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
			SwingUtilities.updateComponentTreeUI(this);
		} catch (ClassNotFoundException ce) {
			System.out.println("ClassNotFoundException");
		} catch (UnsupportedLookAndFeelException ue) {
			System.out.println("UnsupportedLookAndFeelException");
		} catch (InstantiationException ie) {
			System.out.println("InstantiationException");
		} catch (IllegalAccessException iae) {
			System.out.println("IllegalAccessException");
		}
	}

mfg Maik
 
Zuletzt bearbeitet:
Zurück