Is there any color picker component , i tried java script ones with no luck

Hi
Thank you for reading my post.
I tried to use a java script color picker inside my JSC portlet , but it does not works.
i tried many things , but at least i did not find any solution for it.
here is color picker that i tried to use :
http://www.flooble.com/scripts/colorpicker.php?op=get
http://www.flooble.com/scripts/colorpicker.php
and also i tried to use this one with no luck . i tried both of them in html files and they works
http://www.mattkruse.com/javascript/colorpicker/
can some one with more knowledge about javascript and JSC help me ?

any comment or advice on this problem ?

Similar Messages

  • Color picker component

    Hi!
    Is there any color picker component out there ? I'd like to make something similar to the color picker buttons in the paintshop pro or photoshop toolbars, where you can see the current background and foreground colors to be used. Any help would be appreciated.
    thanks

    So, what, you click on the button and then it pops up a window with a palette of colours, requiring you to select one? Why not use a JButton with an icon? put the relevant code (re. the JColorChooser and dealing with colour choice by the user) in the actionPerformed method of an ActionListener you add to the button.
    If you're talking about the single-colour-filled colour buttons like in Paint -- you know, the ones you click and then the colour you're painting with gets changed to that colour -- then why not create a subclass of JButton, called ColourButton perhaps (surprise!), something like this:
    import javax.swing.JButton;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.Graphics;
    public class ColourButton extends JButton
        private Color colour;
        public ColourButton (Color colour)
            super ();
            this.colour = colour;
            setBackground (colour);
            setOpaque (true);
            setPreferredSize (new Dimension (30, 30));
        public void paintComponent (Graphics g)
            super.paintComponent (g);
            //Maybe manage the filling of the button's surface area with 'colour' somehow
            //      What I've done in the constructor may be enough, though.
            //Perhaps use a border as well.
    //Class to test...
    import javax.swing.*;
    import java.awt.*;
    public class TestColourButtons extends JFrame
        public TestColourButtons ()
            super ("Colour Bar");
            JPanel pane = new JPanel ();
            pane.setLayout (new GridLayout (1, 0));
            pane.add (new ColourButton (Color.BLACK));
            pane.add (new ColourButton (Color.RED));
            pane.add (new ColourButton (Color.YELLOW));
            pane.add (new ColourButton (Color.CYAN));
            pane.add (new ColourButton (Color.BLUE));
            pane.add (new ColourButton (Color.WHITE));
            getContentPane ().add (pane);
            pack ();
            setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
            setLocationRelativeTo (null);
            setVisible (true);
        public static void main (String[] args)
            new TestColourButtons ();
    }

  • Using the color picker component to change background is coving up the rest of the elements

    Hello,
    I am trying to learn some scripting for components.
    I have a bunch of stuff working and I got the color picker component to change the color of a movie clip and another one to change the text color.
    I have another script that does the background color, but, when I use it with this script, it covers up the other components.
    How can I use the color picker to change the background color of the stage without covering up the the movie elements?
    Here are the two scripts:
    script one-works fine on the 2 elements it is targeting
    import fl.events.*;
    import fl.events.ColorPickerEvent;
    myColPic.addEventListener(ColorPickerEvent.CHANGE,changeHandler);
    function changeHandler(event:ColorPickerEvent):void {
        var colorInfo:ColorTransform = new ColorTransform;
        colorInfo.color = event.color;
        myBox.transform.colorTransform = colorInfo;
        trace(event.target.hexValue);
    myTextPic.addEventListener(ColorPickerEvent.CHANGE,changeText);
    function changeText(event:ColorPickerEvent):void {
        var colorTypeInfo:ColorTransform = new ColorTransform;
        colorTypeInfo.color = event.color;
        myType.transform.colorTransform = colorTypeInfo;
        trace(event.target.hexValue);
    Script 2-works fine in an empty movie, but if I add it to the script above, those elements get hidden..
    import fl.controls.ColorPicker;
    import fl.events.ColorPickerEvent;
    var bg:Sprite = new Sprite();
    bg.graphics.beginFill(0x000000);
    bg.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
    bg.graphics.endFill();
    addChild(bg);
    var colorPicker:ColorPicker = new ColorPicker();
    colorPicker.addEventListener(ColorPickerEvent.CHANGE, colorPicker_change);
    colorPicker.move(10, 10);
    addChild(colorPicker);
    function colorPicker_change(evt:ColorPickerEvent):void {
        bg.graphics.beginFill(evt.color);
        bg.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
        bg.graphics.endFill();
    Granted, I they are changing colors differently, but I am not sure how to change the stage color any other way with this component.
    any thoughts out there?
    thanks
    babs

    Thanks kglad!!!
    that did it

  • Color Picker Component in JSF

    Hi
    I would like to know if there is a Color Picker Component in JSF
    Thanks
    Sreelekha

    Hi
    i tried that component suit , but still i couldnt extract that color picker component from the sample html file :(
    after i become able to extract that then i would try to use it inside jsc pages.
    do you use that component ?
    thanks

  • Are there any Color Adjustments for Safari?  Printing with Magenta overlays.

    Are there any Color Adjustments for Safari?  When printing the iphone at www.apple.com/iphone/compare-iphones/ the phones have a Magenta Overlay on them.  Tried Firefox and Chrome with same computer, plus a PC to the same printer.  All else prints fine.  Have Intel based iMac, updated to 10.7.5, and using Safari 6.0.1.  I called Canon, and they said it is an issue with Safari.  Any Solutions?  Any way of replacing Safari?  (Recently updated to Lion via software downloads.  No disc.)

    Welcome to Apple....
    Kumusta Ka?  Ma init pa dyan?
    If you're browsing the web and you're internet connection is slow or sometimes dropping, it is normal for Safari to hang or freeze for a little bit until it connects to the site you're trying to view or visit.
    Try this - go to system preferences - network - advance - dns and change your dns server.
    see image below - let me know if na ayos mo na ang internet mo.

  • Is there any video search component???

    Hi,
    Is there any video search component which allows the end user to search for videos posted by the author in a particular site????
    If user clicks such retrieved video link which they got as search result, it should display that video in a seperate page... (something like youtube search)
    How i can achieve this???
    Thanks,
    Shankar .A

    It may help to your requirement ,
    1 ) You can create a component with
         Session session = slingReq.getResourceResolver().adaptTo(Session.class);
         QueryBuilder builder = resource.getResourceResolver().adaptTo(QueryBuilder.class);
         Query query = null;
         SearchResult result = null;
         Map<String, String> map = new HashMap<String, String>();
         map.put("type", "dam:asset");
         map.put("path","/content/nmlm/");
         and check extension of each file
    2) Check Example CQ 5.5
    http://localhost:4502/damadmin -- > Search

  • Is there any possible way of deleting BBM5.0 when one's using OS5.0?

    Is there any possible way of deleting BBM5.0 when one's using OS5.0? I tried to use DM6.0 but BBM is marked as a core component impossible to delete.
    I hate BBM in general because it's always on. I don't want install an older version.
    If anyone can help me, thanks in advance.
    Solved!
    Go to Solution.

    lusilveira wrote:
    Is there any possible way of deleting BBM5.0 when one's using OS5.0? I tried to use DM6.0 but BBM is marked as a core component impossible to delete.
    I hate BBM in general because it's always on. I don't want install an older version.
    If anyone can help me, thanks in advance.
    with some 5.0.X.X OSes, the BBm is a core application and cannot be removed.
    BUT other 5.0.X.X OSes, the BBm has become an addon application and can be removed. (i.e. 5.0.0.436 and on 5.0.0.462)
    if you have the first category OS, I suggest you try and install BBm for example using AppWorld. Maybe by upgrading BBm, it will become an addon.
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • Is there any way to merge 2 video layers to one without exporting?

    Is there any way to merge 2 video layers into one without exporting as a new QuickTime movie? I have tried opening a blank player to copy and paste into, but it always forces it to be layered, even when I change the layer numbers both to zero. I tried extracting the video layers and omitting the audio tracks. Then I saved it as a new self contained movie. I am trying to burn the video to dvd with Roxio Easy Media Creator 9's MyDVD on WIndows XP, but I am also using a MacBook with QuickTime Pro. MyDVD will only recognize one video and audio layer at a time, hence, the other layers get skipped. There should be an easy way to merge two video layers without having to export it as a new movie, which takes 2 hours for this 2 hour TV show. Thanks for any answers.

    Just closing this topic.

  • Is there any way to create admin role only for one resource.

    Hi all,
    I am trying to create an admin role with 'update user' capability. But I want to restrict the user(with the admin role) to be able to update a user's attribute only for one resource, The user(with the admin role) should not be able to update the attributes of the other resources which a user have.
    Is there any way to create admin role only for one resource?
    I customized the tabbed user form to show only one resource attribute (deleting the missing fields and adding my tab for the resource) and then assigned this new User Form to the user(with the admin role) in security tab.
    It works fine. But the problem is that if any user(with the admin role) is also admin of some other resource then he/she will not be able to view the other resource attributes.
    Please suggest,
    thanks

    The loop function always repeats the same region so of course the fade is also copied. So option+drag the original region to make a (non clone) copy, fade the first region and loop the second one (which you just copied).

  • Me and my partner have just brought a new MacBook. We both have individual iTunes and iCloud accounts, is there any way we can access both accounts on one computer?

    Me and my partner have just brought a new MacBook. We both have individual iTunes and iCloud accounts, is there any way we can access both accounts on one computer?

    Set up 2 accounts one for each of you.

  • When using an external (ergonomic mouse) is there any way to get the wheel to scroll one full page at a time?

    When using an external (ergonomic mouse) is there any way to get the wheel to scroll one full page at a time? Much appreciated.

    I can't use the keyboard to scroll. I need to keep my hand on the mouse, otherwise I'd never get anything done. Since I have no problem getting Firefox to scroll one page at a time, and I'm constantly jumping between 3 browsers, it would be nice to be able to scroll a full page at a time in Safari, just like I can in Firefox. Thanks.

  • Is there any report to view" the blocked Vendor Invoices along with the Pay

    Dear Gurus,
    Is there any report to view" the blocked Vendor Invoices along with the Payment Date". Please Let me know.
    Balaji

    I think you can solve this issue with a Query.
    Fernando.

  • Is there any solution for convert document spreadsheet presentation to images with Office Web Apps?

    Hi there!
    Is there any solutions for convert document spreadsheet presentation to images with Office Web Apps?

    Hi,
    As far as I know, there is no build-in feature that convert Office file to image format in Office web app yet.
    I'll collect the information, and submit it with internal ways. Then, we could also submit the feedback here:
    http://office.microsoft.com/suggestions.aspx
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • I bought an iphone5 from saudi arabia,can i use it in india?is there any requirements i have to take?many one are saying i need to unlock it,please any one help me,i did'nt activate my phone yet.

    i bought an iphone5 from saudi arabia,can i use it in india?is there any requirements i have to take?many one are saying i need to unlock it,please any one help me,i did'nt activate my phone yet.

    If the phone is unlocked then you can use it in India.
    If your phone is locked, then the only way to get the phone unlocked is to contact your phone company/carrier. The person that sold you the phone in Saudi should have told you whether it was locked or unlocked.  Contact them to check and then contact the carrier to have it unlocked if it is locked.
    Other than that there is not a lot that you can do - perhaps it was unwise to purchase a phone in Saudi - it won't have Facetime on it if you got it there.

  • Is it possible to have the same audio clip be playing nonstop between menu's in idvd '11? I want to be able to go from one menu to the next without the audio cutting out on me. Thanks for any support! I have tried searching the forrums but no luck yet.

    Is it possible to have the same audio clip be playing nonstop between menu's in idvd '11? I want to be able to go from one menu to the next without the audio cutting out on me. Thanks for any support! I have tried searching the forrums but no luck yet.

    No.
    OT

Maybe you are looking for