2013-03-28 4 views

답변

3

use a custom cell renderer for the ComboBox 당신은 JComboBox에 표시 될 JLabel을 반환 할 수 있으며, 렌더러의 메서드에서 값에 따라 특정 레이블의 글꼴을 변경할 수 있습니다.이 경우 글꼴 이름이 값이됩니다.

+0

[예 :] (http://stackoverflow.com/questions/5896282/how-to-prevent-jcombobox-from-becoming-unresponsive-when-using-a-custom-listcell) – mKorbel

관련 문제