|
JavaTM Platform Standard Ed. 6 |
|||||||||
��һ���� ��һ���� | ��� ��� ������ | |||||||||
ժҪ�� Ƕ�� | �ֶ� | ���췽�� | ���� | ��ϸ��Ϣ�� �ֶ� | ���췽�� | ���� |
java.lang.Objectjavax.swing.plaf.metal.MetalTheme
javax.swing.plaf.metal.DefaultMetalTheme
public class DefaultMetalTheme
�ṩ Java ���ԭ�͵� MetalTheme
��һ������ʵ�֣���������Ϊ��Steel�����йظ���Ĭ���������ϸ��Ϣ������� MetalLookAndFeel.setCurrentTheme(javax.swing.plaf.metal.MetalTheme)
��
DefaultMetalTheme
���ص�������ɫ������ȫ�����ġ�
DefaultMetalTheme
������ؼ�ʹ�ú��塣Ҫʹ���пؼ����ڲ�����������Ϳͻ�����װ�δ�����������⣩ʹ����ʽ���壬����ִ�����²���֮һ��
swing.boldMetal
����Ϊ false
������ java -Dswing.boldMetal=false MyApp
��
swing.boldMetal
����Ϊ Boolean.FALSE
�����磺UIManager.put("swing.boldMetal", Boolean.FALSE);
swing.boldMetal
����������ã�������ͬ����ϵͳ���ԡ����ô�Ĭ�����Ժ���Ҫ���°�װ MetalLookAndFeel
��������������ǰ�����Ĵ���С������ UI��������Dz�ȷ���ġ����´���˵������ν��д˲�����
// turn off bold fonts UIManager.put("swing.boldMetal", Boolean.FALSE); // re-install the Metal Look and Feel UIManager.setLookAndFeel(new MetalLookAndFeel()); // Update the ComponentUIs for all Components. This // needs to be invoked for all windows. SwingUtilities.updateComponentTreeUI(rootComponent);
���棺��������л��������Ժ�� Swing �汾�����ݡ���ǰ���л�֧�������ڶ��ڴ洢��������ͬ Swing �汾��Ӧ�ó���֮��� RMI���� 1.4 �汾��ʼ������ java.beans
����������֧������ JavaBeansTM ���ڴ洢�Ĺ��ܡ���μ� XMLEncoder
��
MetalLookAndFeel
,
MetalLookAndFeel.setCurrentTheme(javax.swing.plaf.metal.MetalTheme)
���췽��ժҪ | |
---|---|
DefaultMetalTheme()
���������� DefaultMetalTheme ��һ��ʵ���� |
����ժҪ | |
---|---|
FontUIResource |
getControlTextFont()
���ؿؼ��ı����塣 |
FontUIResource |
getMenuTextFont()
���ز˵��ı����塣 |
String |
getName()
���ش���������ơ� |
protected ColorUIResource |
getPrimary1()
���� primary 1 ��ɫ�� |
protected ColorUIResource |
getPrimary2()
���� primary 2 ��ɫ�� |
protected ColorUIResource |
getPrimary3()
���� primary 3 ��ɫ�� |
protected ColorUIResource |
getSecondary1()
���� secondary 1 ��ɫ�� |
protected ColorUIResource |
getSecondary2()
���� secondary 2 ��ɫ�� |
protected ColorUIResource |
getSecondary3()
���� secondary 3 ��ɫ�� |
FontUIResource |
getSubTextFont()
�������ı����塣 |
FontUIResource |
getSystemTextFont()
����ϵͳ�ı����塣 |
FontUIResource |
getUserTextFont()
�����û��ı����塣 |
FontUIResource |
getWindowTitleFont()
���ش��ڱ������塣 |
���� java.lang.Object �̳еķ��� |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
���췽����ϸ��Ϣ |
---|
public DefaultMetalTheme()
DefaultMetalTheme
��һ��ʵ����
������ϸ��Ϣ |
---|
public String getName()
"Steel"
��
MetalTheme
�е� getName
protected ColorUIResource getPrimary1()
MetalTheme
�е� getPrimary1
protected ColorUIResource getPrimary2()
MetalTheme
�е� getPrimary2
protected ColorUIResource getPrimary3()
MetalTheme
�е� getPrimary3
protected ColorUIResource getSecondary1()
MetalTheme
�е� getSecondary1
protected ColorUIResource getSecondary2()
MetalTheme
�е� getSecondary2
protected ColorUIResource getSecondary3()
MetalTheme
�е� getSecondary3
public FontUIResource getControlTextFont()
MetalTheme
�е� getControlTextFont
public FontUIResource getSystemTextFont()
MetalTheme
�е� getSystemTextFont
public FontUIResource getUserTextFont()
MetalTheme
�е� getUserTextFont
public FontUIResource getMenuTextFont()
MetalTheme
�е� getMenuTextFont
public FontUIResource getWindowTitleFont()
MetalTheme
�е� getWindowTitleFont
public FontUIResource getSubTextFont()
MetalTheme
�е� getSubTextFont
|
JavaTM Platform Standard Ed. 6 |
|||||||||
��һ���� ��һ���� | ��� ��� ������ | |||||||||
ժҪ�� Ƕ�� | �ֶ� | ���췽�� | ���� | ��ϸ��Ϣ�� �ֶ� | ���췽�� | ���� |
��Ȩ���� 2007 Sun Microsystems, Inc. ��������Ȩ���� ����������֤��������������ĵ����·ַ�������