java - JColorChooser get components -
i'm trying implement custom jcolorchooser
.
colorpanel.setlayout(new gridlayout(1,2)); jcolorchooser tcc = new jcolorchooser(); abstractcolorchooserpanel [] panels = tcc.getchooserpanels(); for(abstractcolorchooserpanel p : panels){ if(p.getdisplayname().equals("rvb")){ colorpanel.add(p); } } final jdialog j = new jdialog(jframe, true); j.setsize(800, 300); j.setlayout(new borderlayout(1,2)); createlistcolor(); j.add(colorpanel);
this works , show me following :
no i'm stuck on how can listeners widgets because problem panel isn't created me. how can components (textfield
, etc.) of abstractcolorchooserpanel p
?
how can catch events on widgets , how can value of textfields in component?
i don't think there api individual components.
you can use darryls' swingutils access components on panel.
Comments
Post a Comment