List of usage examples for javax.swing JColorChooser showDialog
public static Color showDialog(Component component, String title, Color initialColor) throws HeadlessException
From source file:techtonic.Techtonic.java
private void jLabel7MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel7MouseClicked Color c = JColorChooser.showDialog(null, "Choose a Foreground Color", null); forePan.setBackground(c);//from w w w . j av a2 s . com foreColor = c; }
From source file:com.rapidminer.gui.new_plotter.gui.ColorSchemeDialog.java
private Color createColorDialog(Color oldColor) { return JColorChooser.showDialog(this, I18N.getGUILabel("plotter.configuration_dialog.color_scheme_dialog.new_category_color.label"), oldColor);/* w w w . ja va 2 s . com*/ }
From source file:AppearanceExplorer.java
public void actionPerformed(ActionEvent e) { Color currentColor = color.get(); Color newColor = JColorChooser.showDialog(this, name, currentColor); if (newColor != null) { color.set(newColor);/*w ww . jav a 2 s . c o m*/ valueChanged(); } }
From source file:GUI.GraphicalInterface.java
private void jMenuItem6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem6ActionPerformed Color fontColor = JColorChooser.showDialog(terminalJTextArea, "Choose font color", Color.white); if (fontColor != null) { terminalJTextArea.setForeground(fontColor); }/* ww w.jav a 2s. c om*/ }
From source file:GUI.GraphicalInterface.java
private void jMenuItem7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem7ActionPerformed Color backgroundColor = JColorChooser.showDialog(terminalJTextArea, "Choose background color", Color.white); if (backgroundColor != null) { terminalJTextArea.setBackground(backgroundColor); }//from ww w . j av a2 s. com }
From source file:edmondskarp.Gui.EdmondsKarpGui.java
private void defaultColorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_defaultColorActionPerformed // TODO add your handling code here: Color c = JColorChooser.showDialog(this, "Selezione Colore", Color.WHITE); jButtonDefaultColor.setBackground(c); Config.getConfig().setDefaultArrow(c); controller.saveConfig();/*from ww w.j a va 2s . co m*/ update(); }
From source file:edmondskarp.Gui.EdmondsKarpGui.java
private void attraversatoColorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_attraversatoColorActionPerformed // TODO add your handling code here: Color c = JColorChooser.showDialog(this, "Selezione Colore", Color.WHITE); jButtonAttraversatoColor.setBackground(c); Config.getConfig().setUsedArrow(c);//from ww w. ja v a 2s . c o m controller.saveConfig(); update(); }
From source file:edmondskarp.Gui.EdmondsKarpGui.java
private void saturoColorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_saturoColorActionPerformed // TODO add your handling code here: Color c = JColorChooser.showDialog(this, "Selezione Colore", Color.WHITE); jButtonSaturoColor.setBackground(c); Config.getConfig().setFilledArrow(c); controller.saveConfig();//from www. jav a 2s. c o m update(); }
From source file:edmondskarp.Gui.EdmondsKarpGui.java
private void selezionatoColorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_selezionatoColorActionPerformed // TODO add your handling code here: Color c = JColorChooser.showDialog(this, "Selezione Colore", Color.WHITE); jButtonSelezionatoColor.setBackground(c); Config.getConfig().setSelectedArrow(c); controller.saveConfig();//from www . j a v a 2 s. co m update(); }
From source file:org.fhcrc.cpl.viewer.gui.MRMDialog.java
public void contentPanel_mouseClicked(MouseEvent event) { if (event.getButton() == MouseEvent.BUTTON3) { contentPanel.setBackground(/*from w w w . j a v a 2 s.co m*/ JColorChooser.showDialog(this, "Choose Background Color", contentPanel.getBackground())); } }