我需要更改JDateChooser
背景和前景色,我使用 LaF 属性窗口更改颜色,但没有任何反应
然后我也使用以下代码来解决这个问题,
BorrowDateChooser.setBackground(new Color(51,51,51));
但它也不适合我,我能为这个问题做些什么
答案 0 :(得分:0)
使用以下代码更改jdatechooser背景:
create trigger eval
on evaluer
instead of insert
as
begin
insert into evaluer(id_ch, id_abonne, evaluation)
select *
from inserted i
join (select ev.id_abonne
from evaluer ev
join inserted ins on ins.id_abonne = ev.id_abonne
group by ev.id_abonne
having count(*) <= 5) tc on i.id_abonne = tc.id_abonne
end
}
for( Component c : jDateChooser1.getComponents()){
((JComponent)c).setBackground(Color.RED);
}
示例图片的结果: enter image description here