Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7403359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:03:37+00:00 2026-05-29T05:03:37+00:00

I have downloaded the Vaadin Colorpicker addon to try it out , there is

  • 0

I have downloaded the Vaadin Colorpicker addon to try it out , there is a small problem if i klick the colorPicker “Button” twice i get an IllegalArgumentException :

Exception

java.lang.IllegalArgumentException: Window was already added to application - it can not be added to another window also.
    at com.vaadin.ui.Window.addWindow(Window.java:1447)
    at com.vaadin.addon.colorpicker.ColorPicker.changeVariables(Unknown Source)
    at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariableBurst(AbstractCommunicationManager.java:1299)
    at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariables(AbstractCommunicationManager.java:1219)
    at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleUidlRequest(AbstractCommunicationManager.java:735)

Another question :

I want the colorPicker window to popup if I click on an item in a Menu something like if i click on “set Color” i get the colorPicker window. its quite hard to place the button on my GUI 😛

EDIT :

Im adding the ColorPicker like this :

    colorPicker = new ColorPicker();
    colorPicker.setButtonCaption("Set Color");
    colorPicker.setRGBVisibility(false);
    colorPicker.setHSVVisibility(false);
    colorPicker.setHistoryVisibility(false);
    colorPicker.addListener(this);
    window.addComponent(colorPicker);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T05:03:37+00:00Added an answer on May 29, 2026 at 5:03 am

    I think you should try this code in your application:

    public class MyApplication extends Application {
    
        @Override
        public void init() {
            Window mainWindow = new Window("Your Application");
    
            // Create a color picker
            ColorPicker cp = new ColorPicker("ColorPicker", Color.RED);
    
            // Add a color change listener to the color picker
            cp.addListener(new ColorPicker.ColorChangeListener() {
                @Override
                public void colorChanged(ColorChangeEvent event) {
                    MyApplication.this.getMainWindow()
                    .showNotification("Color changed!");
                }
            });
    
            mainWindow.addComponent(cp);
            setMainWindow(mainWindow);
        }
    }
    

    If it doesn’t work, then there is a defect in ColorPicker (and you could report a defect here: http://dev.vaadin.com/).

    If the code above works, the problem is in your code then (in this case, share with us more of your code – you can even share whole class for).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

have downloaded page by webbrowser and need to get mail address. But it is
I have downloaded follwing code from one of Google Codes but problem is in
I have downloaded ajax control toolkit (newest) and trying out fileupload. It's really good
I have downloaded the example code/demo from: http://www.technowise.in/2009/12/uploadify-aspnet-c-vb-examples-demo.html and when I try to run
I have downloaded and installed python-poppler-qt4 and I am now trying out a simple
I have downloaded the latest iphone sdk 3.2 beta and my problem is I
I have downloaded an application from internet(from Chrome browser) named a.app, and there will
I have downloaded CVtypes and tried the example scripts with it but cannot get
I have downloaded cppcheck tool and build it. Now am facing the problem that
I have downloaded a Java 3d-1_5_1-macosx.zip. I am trying unzip the file. The file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.