Help with Live Paint /CS2

Hi everybody
How do i fill a LivePaintGroup? I got the group, but the Bucket shows this black x, and nothing happens, no matter where i click. Also, i can't choose a swatch or your the color-toolbox to color (fill) it. Nothing happens.
This might sound like a simple thing, and i sure didn't expect it to give me that much trouble, but i'm getting really p*ssed here, and before i start poking peoples eyes out with my wacom-pen, i thought i'd try this forum... ;-)
Help! Pleeease!
Cheers
H.

They can change the gap size Edit>Live Paint>Gap Options. That does not seem to be the problem.
The only thing I can think of is that the layer is locked. But that would have a pencil symbol withe black line through it.

Similar Messages

  • Help with Live Paint - filling in part of an image

    I have imported a dfw image into illustrator. It's a black and white image of an object similar to the one below:
    I want to paint the areas around the perimeter of the image black so that it looks like it has a large black outline (the areas that contain the X's). I've been able to do it on a few but some of the images, when I open them, the live paint selects only inner areas that I don't want painted. I can't figure out how to change the paths to the ones I want.
    I import the image, select all, Object>Live Paiint>Make. Then I set the fill to black. In this example, there are 3 stripes on each pants leg and the only thing Live Paint will select is the outermost stripe. I've tried Object>LivePaint>Expand then reselect the Live Paint Buckeet and click the image when it says, "Click to make Live Paint Group" but nothing changesso that I can paint the desired areas.
    I've checked the image closely to ensure there are no breaks in the paths and I've just spent the last 4 hours reading instructions and watching videos but no help. I'm braind new ti Illustrator and must be missing something bassic but don't know what. Any help would be appreciated. I'm stumped.

    I should have posted this hours ago. As soon as I did I found the answer. For anyone else with this problem, Select the image then, before using the Live Paint Bucket, select Object>Flatten Transparacy. Then, when you select the live paint bucket, it will ask for you to set the paths and after you do, it'll work just fine.

  • Live Paint - Selecting the Fills made with live paint

    hi
    A few questions about live paint.....
    1) How do you select the fills you make with live paint by color? so you can change their properties ie, transparency, color?
    2) How do you put the Live Painted Fills onto separate layers so you can turn them off/on easily and change their properties?
    thanks

    Expand the LivePaint object. Then ungroup as necessary for what you are trying to do.
    JET

  • Help with Live View - Links Not Working

    Hello,
    I am having a problem with Live View.  It had been working just fine, until recently.  Now, when I load a site stored locally, the page looks normal and links highlight when I cursor over them, but when I click them no navigation takes place.  I just remain on the index page.  The site does test fine in IE8, Chrome, Firefox and used to test fine in Live View.  The same happens with all my sites.  No changes have been made to my system.  Maybe I changed a setting unknowingly?  Is there some type of setting that I am missing perhaps?  Any help would be appreciated.
    Jason

    Did you close and restart DW to see if that helps?
    E. Michael Brandt
    www.divahtml.com
    www.divahtml.com/products/scripts_dreamweaver_extensions.php
    Standards-compliant scripts and Dreamweaver Extensions
    www.valleywebdesigns.com/vwd_Vdw.asp
    JustSo PictureWindow
    JustSo PhotoAlbum, et alia

  • Raster to Vector help with Live Trace

    Hello All,
    When I convert a raster to vector with Live Trace the result is great but I want to reduce the number of points so I get less layers when I import it into Painter. Can anyone advise on how to do this?
    Rayne

    Jacob Bugge wrote:
    I know nothing about Painter. Is it from the same company as is Worst?
    Jacob...
    Shame! I would have thought that, at the very least,  you knew that Painter existed! Oh! Woe is the world, woe is the world!!

  • How do you keep selected colors with Live Paint Bucket?

    I am always having to re-select the colors for fill and stroke each time I use the Paint Bucket.  This is tedious. There must be a way to keep the selection...

    Not sure what the "Live Paint Bucket" is, but if you are working in Premiere's Titler, and have constant Stroke and Fills, you can easily create and Save a Style, so that the colors and attributes will be constant, Title through Title. The Style will even set your font, and its size, for reuse.
    Another method would be to Save the Title, and use it in multiple Projects, just changing the Text, as is required.
    Now, if you are talking about something else, please point me in the correct direction.
    Good luck,
    Hunt

  • Help with uninstalling InDesign CS2

    A month ago, I installed CS4 over CS2.
    Then, InDesign CS4 did not work because of the conflict with AMD chip in my computer. So, uisng the original CS2 disk, all programs were uninstalled EXCEPT FOR INDESIGN CS2. The reason is that I wanted to use InDesign CS2 until the problem with CS4 is fixed.
    Today, after installing InDesign CS4 update (it was a sort of plug), InDesign became working just fine. So I want to remove InDesign CS2. The problem was that I was not able to remove InDesign CS2 by Add or Remove Programs or with the original CS2 disk.
    Please advise me how to uninstall InDesign CS2. In

    http://www.adobe.com/support/techdocs/331300.html

  • Raw Beginner need help with Adobe Photoshop CS2

    I am reading Photoshop CS2 for digital photographers by Scott Kelby. I am looking at pg 55 if any one has this book and would like to visually see what I am about to describe. I own Adobe Photoshop CS2 software. After bringing up Adobe bride RAW on my PC, I then see all the settings, Exposure, Shadows, Brightness, Contrast, and Saturation.. Located directly above all of these settings is Auto and Default which you can click on and adjust all settings at the same time. If you don't like what you see you click on Default to go back to the original, you can then make your adjustments individually. In my CS2 book there is an Auto box you can check or un-check beside each setting, Exposure, Shadows, Brightness, and Contrast. My question is how do I get the Auto box beside each setting so I can simply put a check in that box and preview changes individually instead of the Auto and Default on top which changes every setting at the same time? I hope this make since to you, if not I will try to explain again.

    Thank you Ramon for your help. I will just be happy with what I have, which works fine but I thought it might be better for me to have the individual Auto check box for each setting. Thank you for the tip to double-click the sliders to reset it to default, it works in CS2 also:) Actually this gives me more control and works out great now that I think about it. I am sure there are more handy little tips I should know about but don't because I am a beginner in learning RAW. Hopefully I'll stumble across a book or some thing over the internet that will help me with my learning curve.

  • Help with a Paint Program if you'd be kind

    Hi, I am making a simple paint package...like simple Paint in Windows, I am trying to change the colour of the scribble line, so I have a button to click and then it scribbles on my panel in a different colour....i.e changing from Black to Red.
    I'm new to all this, so I'm not getting that far, but I know a little...
    I have the following code......
    (this is in a seperate panel.java file
    public void lineTo2(int x, int y) {
    Graphics2D g2 = currImage.createGraphics();
    line.setLine(lastX, lastY, x, y);
    g2.setPaint(Color.black);
    g2.setStroke(stroke);
    g2.draw(line);
    moveTo(x,y);
    g2.dispose();
    repaint();
    and then in my other .java file I have the following to use the buttons.......
    public void actionPerformed(ActionEvent event) {
    Object source = event.getSource();
    if (source == undoButton)
    myDrawing.undo();
    else if (source == exitButton)
    System.exit(0);
    else if (source == exitItem)
    System.exit(0);
    else if (source == redButton)
    repaint();
    ....so I don't quite know what method to use with the Red Button so that it only changes to red when I click that button?
    Any help would be great, and I'm sorry if my terminology is not that of an experienced programmer!
    Many Thanks
    Jon(UK)

    Have a member variable containing the current drawing colour. You then just need to change that when the button is pressed:
    private Color paintColor = Color.black; // Initial colour
    public void lineTo2(...)
      g2.setPaint(paintColor);
    public void actionPerformed(...)
      else if(source == redButton)
        paintColor = Color.red;
      else if(source == blackButton)
        paintColor = Color.black;
    }Hope this helps.

  • Help with live view new camera options...

    Hey guys...I have recently bought a hahnel remote shutter release so that I can take pics on the top of a mast around seven metres up.
    I have a 5 inch monitor at ground level to view the pictures taken, using an av cable from the camera. Problem is, I cant get a continuous "live view" image on the monitor, as you need to hold down the * button whilst in live view to auto focus, so I have to put up with just the shot thats been taken showing up after each shot instead!
    Does anyone know of a canon that would offer a continuous live view image on my monitor, without having to press the * button to auto focus?
    Ideally it would be one from the list below, as they are the cameras that my new hahnel wireless remote supports!
    I hope someone can help! cheers!
    List of supported cameras...would any of these offer live view without the need to press * to autofocus and take a shot:
    Compatible Camera Models:
    EOS 1200D / 1100D / 1000D / 650D / 600D / 550D /500D / 450D / 400D / 350D / 300D /
    70D / 60D / 50D / 40D / 30D / 20D / 20Ds /
    10D / 7D / 6D / 5D / 5D Mark II / 5D Mark III
    1D / 1DX / 1DC / 1Ds Mark III / 1Ds Mark IV
    SX50HS
    Powershot G10 / G11 / G12 / G15 / G1X Mk II
    Pentax Pentax K-5 II / K-5 IIs / K-5 / K-7 / K10 / K20 / K50 / K100 /
    K200 / K500
    Samsung GX10 / GX20

    What camera are you using?  Most "modern" Canon SLRs allow you to set focus during live view.   You move a little rectangle around to select your focus area.   But you need more than a monitor, you'd either need a computer (like a small netbook) running EOS Utility, or a tablet with DSLR Remote or equivilent on it.  The 70D and 6D both have WiFi ability, so you can do it from a smart phone, tablet, or computer, no wires needed.

  • Please, help with Live Audio/Video example from jmf solutions

    Hello,
    I�m desperate looking for a solution for a particular problem.
    I�m trying to feed JMF with an AudioInputStream generated via Java Sound, so that I can send it via RTP. The problem is that I don�t know how to properly create a DataSource from an InputStream. I know the example Live Audio/Video Data from the jmf solutions focuses on something similar.
    The problem is that I don�t know exactly how it works, os, the question is, how can I modify that example in order to use it and try to create a proper DataSource from the AudioInputStream, and then try to send it via RTP?
    I think that I manage to create a DataSource and pass it to the class AVTransmit2 from the jmf examples, and from that DataSource create a processor, which creates successfully, and then find a corresponding format and try to send it, but when i try to send it or play it I get garbage sound, so I�m not really sure whether I create the DataSource correctly or not, as I�ve made some changes on the Live Audio/Video Data from the jmf solutions to construct a livestream from the audioinputstream. Actually, I don�t understand where in the code does it construct the DataSource from the livestream, from an inputStream, because there�s not constructor like this DataSource(InputStream) neither nothing similar.
    Please help me as I�m getting very stuck with this, I would really appreciate your help,
    thanks for your time, bye.

    import javax.media.*;
    import javax.media.format.*;
    import javax.media.protocol.*;
    import java.io.IOException;
    import javax.sound.sampled.AudioInputStream;
    public class LiveAudioStream implements PushBufferStream, Runnable {
        protected ContentDescriptor cd = new ContentDescriptor(ContentDescriptor.RAW);
        protected int maxDataLength;
        protected int vez = 0;
        protected AudioInputStream data;
        public AudioInputStream audioStream;
        protected byte[] audioBuffer;
        protected javax.media.format.AudioFormat audioFormat;
        protected boolean started;
        protected Thread thread;
        protected float frameRate = 20f;
        protected BufferTransferHandler transferHandler;
        protected Control [] controls = new Control[0];
        public LiveAudioStream(byte[] audioBuf) {
             audioBuffer = audioBuf;
                      audioFormat = new AudioFormat(AudioFormat.ULAW,
                          8000.0,
                          8,
                          1,
                          Format.NOT_SPECIFIED,
                          AudioFormat.SIGNED,
                          8,
                          Format.NOT_SPECIFIED,
                          Format.byteArray);
                      maxDataLength = 40764;
                      thread = new Thread(this);
         * SourceStream
        public ContentDescriptor getContentDescriptor() {
         return cd;
        public long getContentLength() {
         return LENGTH_UNKNOWN;
        public boolean endOfStream() {
         return false;
         * PushBufferStream
        int seqNo = 0;
        double freq = 2.0;
        public Format getFormat() {
             return audioFormat;
        public void read(Buffer buffer) throws IOException {
         synchronized (this) {
             Object outdata = buffer.getData();
             if (outdata == null || !(outdata.getClass() == Format.byteArray) ||
              ((byte[])outdata).length < maxDataLength) {
              outdata = new byte[maxDataLength];
              buffer.setData(audioBuffer);          
              buffer.setFormat( audioFormat );
              buffer.setTimeStamp( 1000000000 / 8 );
             buffer.setSequenceNumber( seqNo );
             buffer.setLength(maxDataLength);
             buffer.setFlags(0);
             buffer.setHeader( null );
             seqNo++;
        public void setTransferHandler(BufferTransferHandler transferHandler) {
         synchronized (this) {
             this.transferHandler = transferHandler;
             notifyAll();
        void start(boolean started) {
         synchronized ( this ) {
             this.started = started;
             if (started && !thread.isAlive()) {
              thread = new Thread(this);
              thread.start();
             notifyAll();
         * Runnable
        public void run() {
         while (started) {
             synchronized (this) {
              while (transferHandler == null && started) {
                  try {
                   wait(1000);
                  } catch (InterruptedException ie) {
              } // while
             if (started && transferHandler != null) {
              transferHandler.transferData(this);
              try {
                  Thread.currentThread().sleep( 10 );
              } catch (InterruptedException ise) {
         } // while (started)
        } // run
        // Controls
        public Object [] getControls() {
         return controls;
        public Object getControl(String controlType) {
           try {
              Class  cls = Class.forName(controlType);
              Object cs[] = getControls();
              for (int i = 0; i < cs.length; i++) {
                 if (cls.isInstance(cs))
    return cs[i];
    return null;
    } catch (Exception e) {   // no such controlType or such control
    return null;
    and the other one, the DataSource,
    import javax.media.Time;
    import javax.media.protocol.*;
    import java.io.IOException;
    import java.io.InputStream;
    import javax.sound.sampled.AudioInputStream;
    public class CustomDataSource extends PushBufferDataSource {
        protected Object [] controls = new Object[0];
        protected boolean started = false;
        protected String contentType = "raw";
        protected boolean connected = false;
        protected Time duration = DURATION_UNKNOWN;
        protected LiveAudioStream [] streams = null;
        protected LiveAudioStream stream = null;
        public CustomDataSource(LiveAudioStream ls) {
             streams = new LiveAudioStream[1];
             stream = streams[0]= ls;
        public String getContentType() {
         if (!connected){
                System.err.println("Error: DataSource not connected");
                return null;
         return contentType;
        public byte[] getData() {
             return stream.audioBuffer;
        public void connect() throws IOException {
          if (connected)
                return;
          connected = true;
        public void disconnect() {
         try {
                if (started)
                    stop();
            } catch (IOException e) {}
         connected = false;
        public void start() throws IOException {
         // we need to throw error if connect() has not been called
            if (!connected)
                throw new java.lang.Error("DataSource must be connected before it can be started");
            if (started)
                return;
         started = true;
         stream.start(true);
        public void stop() throws IOException {
         if ((!connected) || (!started))
             return;
         started = false;
         stream.start(false);
        public Object [] getControls() {
         return controls;
        public Object getControl(String controlType) {
           try {
              Class  cls = Class.forName(controlType);
              Object cs[] = getControls();
              for (int i = 0; i < cs.length; i++) {
                 if (cls.isInstance(cs))
    return cs[i];
    return null;
    } catch (Exception e) {   // no such controlType or such control
    return null;
    public Time getDuration() {
         return duration;
    public PushBufferStream [] getStreams() {
         return streams;
    hope this helps

  • Help with live type in fce

    hi, I created a title and intro in live type for fce. In live type the quality is excellent. when opened & viewed in fce in the viewer the quality is also excellent. but when the text is then placed on the timeline the quality of the text is seriously degraded. It is very jagged, rough and pixelated. I am stumped and have been fighting this for days. any help would be great. I am new to the program. The project properties for my live type document are:
    apple intermediate codec 1080i60
    width-1920px 26.67inches at 72.0 dpi
    height-1080px 11.25 inches at 96.0 dpi
    frame rate-29.97 fps
    field dominance - none
    pixel aspect - 1.00
    start time-0:00:00;00
    time format - smpte drop
    quality - all 3 are set to normal
    The project properties for FCE are:
    apple intermediate codec 1080i60
    frame rate-29.97fps
    frame size - 1920x1080
    pixel aspect - square
    field dominance - none
    alpha - none
    composite - normal
    I have tried every other combo with the live type set up and nothing works. Does any one have a fix for this? thanks
    tyler

    In LiveType / Edit / Project Properties (command+0) / Presets HDV 1080i60...
    In Final Cut Express / Easy Setup (control-Q) HDV-Apple Intermediate Codec 1080i60...
    Import the LiveType project file directly into Final Cut Express...
    Regards
    Nolan

  • Help with installing illustrator CS2

    when trying to install my full version of adobe illustrator CS2 my system informed me that I couldn't because my hard disk was a non HFS volume and that it needed to be formatted as HFS...how do I do this???
    thanks

    When you installed OS X did you format the drive for the Unix Filesystem or for Mac OS Extended? If it is formatted Mac OS Extended perhaps the drive is corrupted. Try repairing the drive.
    Disk formatting and repair is done using the Disk Utility located in the /Applications/Utilities/ folder.
    If your drive is formatted Mac OS Extended (HFS+) and the drive is OK, then perhaps there is a problem with the Adobe installer in which case you need to contact Adobe for support because these forums do not provide third-party support.

  • Need help with Extract in CS2

    extract is not working on cs2 for me.  I can only extract if I use the force foreground and then its just washed out

    Could you post an example picture?
    You probably already know this, but you used the Edge Highlighter Tool to draw an outline around the part you want to extract
    and then clicked inside the outline with the Fill Tool and then clicked on the Preview button to see how the extraction looks?

  • Help with a Paint package I am writing please!!

    Hi, I am writing a program to work as a paint application. I have all the necessary buttons. One of my buttons needs to be able to add a small image to the painting frame by clicking the mouse onto the screen...for example, to display a picture of a house, I click the house button which then puts my house picture onto the scribble panel wherever I click the mouse. My problem is that I am new to java and I am stuck on how I can do this. I have put all the code on here which I have. If any one knows the code which I can add to make this work I would very much appreciate it as it is driving me insane!
    Many thanks....
    CODE "DrawingTools.java".............................
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.awt.geom.*;
    public class DrawingTools {
    public static void main (String [] args) {
         Toolkit tk = Toolkit.getDefaultToolkit(); // get system dependent information
    Dimension dim = tk.getScreenSize(); // encapsulate width and height of system
    JFrame f = new DrawingToolFrame();
    f.setSize(800, 550);
    f.setTitle("Drawing Tool v1.10");
    f.setIconImage(tk.getImage("Paint.gif"));
    f.setVisible(true);
    f.setResizable(false);
    class DrawingToolFrame extends JFrame implements ActionListener {
    private JCheckBox checkNormal, checkBold, checkDotted, checkSpray;
    // private JRadioButton orBlack, orBlue, orRed, orYellow, orNormal, orBold, orDotted, orSpray;
    private JButton boldButton, dottedButton, sprayButton;
    private JButton blackButton, blueButton, yellowButton, redButton, greenButton, houseButton, tvButton, starButton;
    private ScribblePanel scribblePanel;
    private JButton scribbleButton, undoButton, newButton, quitButton;
    private JMenuItem newItem, quitItem, undoItem, houseItem, tvItem, starItem,/* normalItem,*/ boldItem, dottedItem, sprayItem, blackItem, blueItem, redItem, yellowItem, greenItem;
    public DrawingToolFrame() {
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    dispose();
    System.exit(0);
    Container contentPane = getContentPane();
    JMenuBar menuBar = new JMenuBar();
         setJMenuBar(menuBar);
         JMenu fileMenu = new JMenu("File");
         newItem = new JMenuItem("New");
         newItem.setMnemonic(KeyEvent.VK_N); //add Alt-N to New short-cut
         newItem.addActionListener(this);
         fileMenu.add(newItem);
         quitItem = new JMenuItem("Quit");
         quitItem.setMnemonic(KeyEvent.VK_Q); //add Alt-Q to Quit short-cut
         quitItem.addActionListener(this);
         fileMenu.add(quitItem);
         menuBar.add(fileMenu);
         JMenu editMenu = new JMenu("Edit");
         undoItem = new JMenuItem("Undo");
         undoItem.addActionListener(this);
         editMenu.add(undoItem);
         menuBar.add(editMenu);
         JMenu shapeMenu = new JMenu("Shape");
         houseItem = new JMenuItem("House");
         houseItem.addActionListener(this);
         shapeMenu.add(houseItem);
         tvItem = new JMenuItem("Television");
         tvItem.addActionListener(this);
         shapeMenu.add(tvItem);
         starItem = new JMenuItem("Star");
         starItem.addActionListener(this);
         shapeMenu.add(starItem);
         menuBar.add(shapeMenu);
    JMenu optionMenu = new JMenu("Option");
    JMenu lineMenu = new JMenu("Line");
         optionMenu.add(lineMenu);
              //normalItem = new JMenuItem("Normal");
              //normalItem.addActionListener(this);
              //lineMenu.add(normalItem);
              boldItem = new JMenuItem("Bold");
              boldItem.addActionListener(this);
              lineMenu.add(boldItem);
              dottedItem = new JMenuItem("Dotted");
              dottedItem.addActionListener(this);
         lineMenu.add(dottedItem);
         sprayItem = new JMenuItem("Spray");
         sprayItem.addActionListener(this);
         lineMenu.add(sprayItem);
         JMenu colourMenu = new JMenu("Colour");
         optionMenu.add(colourMenu);
              blackItem = new JMenuItem("Black");
              blackItem.addActionListener(this);
              colourMenu.add(blackItem);
              blueItem = new JMenuItem("Blue");
              blueItem.addActionListener(this);
              colourMenu.add(blueItem);
              redItem = new JMenuItem("Red");
              redItem.addActionListener(this);
         colourMenu.add(redItem);
         yellowItem = new JMenuItem("Yellow");
         yellowItem.addActionListener(this);
         colourMenu.add(yellowItem);
         greenItem = new JMenuItem("Green");
                   greenItem.addActionListener(this);
         colourMenu.add(greenItem);
         menuBar.add(optionMenu);
    JPanel p = new JPanel();
    ImageIcon scribbleIcon = new ImageIcon("Scribble.gif");
    scribbleButton = new JButton("Scribble", scribbleIcon);
    scribbleButton.setMnemonic(KeyEvent.VK_S); //add Alt-S to Undo short-cut
    scribbleButton.setToolTipText("Click this button and you can draw free hand lines.");
    p.add(scribbleButton);
    //scribbleButton = addJButton("Scribble", p);
    p.add(Box.createHorizontalStrut(20));
    ImageIcon undoIcon = new ImageIcon("Undo.gif");
    undoButton = new JButton("Undo", undoIcon);
    undoButton.setMnemonic(KeyEvent.VK_U); //add Alt-U to Undo short-cut
    undoButton.setToolTipText("Undo the last step");
    p.add(undoButton);
    //undoButton.addActionListener(this);
    p.add(Box.createHorizontalStrut(20));
    ImageIcon newIcon = new ImageIcon("New.gif");
    newButton = new JButton("New", newIcon);
    newButton.setMnemonic(KeyEvent.VK_N); //add Alt-N to New short-cut
    newButton.setToolTipText("Make a new Drawing");
    p.add(newButton);
    p.add(Box.createHorizontalStrut(20));
    ImageIcon quitIcon = new ImageIcon("Door.gif"); //add icon to button
    quitButton = new JButton("Quit", quitIcon);
    quitButton.setMnemonic(KeyEvent.VK_Q); //add Alt-Q to exit short-cut
    quitButton.setToolTipText("Click to Exit");
    p.add(quitButton);
    undoButton.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent e) {
    scribblePanel.undo();}});
    scribbleButton.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent e) {
    scribblePanel.repaint();}});
    newButton.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent e) {
    scribblePanel.repaint();}});
    quitButton.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent e) {
    System.exit(0);}});
    contentPane.add(p, "South");
    p = new JPanel();
    p.setLayout(new BoxLayout(p, BoxLayout.Y_AXIS));
    p.add(Box.createVerticalStrut(10));
    ImageIcon boldIcon = new ImageIcon("Bold.gif"); //add icon to button
    boldButton = new JButton("Bold", boldIcon);
    p.add(boldButton);
    p.add(Box.createVerticalStrut(10));
    ImageIcon dottedIcon = new ImageIcon("Dotted.gif"); //add icon to button
    dottedButton = new JButton("Dotted", dottedIcon);
    p.add(dottedButton);
    p.add(Box.createVerticalStrut(10));
    ImageIcon sprayIcon = new ImageIcon("Spray.gif"); //add icon to button
    sprayButton = new JButton("Spray", sprayIcon);
    p.add(sprayButton);
    /*     ButtonGroup groupA = new ButtonGroup();
         p.add(Box.createVerticalStrut(20));
         orNormal = addJRadioButton("Normal", true, groupA, p);
         p.add(Box.createVerticalStrut(20));
         orBold = addJRadioButton("Bold", false, groupA, p);
         p.add(Box.createVerticalStrut(20));
         orDotted = addJRadioButton("Dotted", false, groupA, p);
         p.add(Box.createVerticalStrut(20));
         orSpray = addJRadioButton("Spray", false, groupA, p);*/
    contentPane.add(p, "East");
    p = new JPanel();
    p.setLayout(new BoxLayout(p, BoxLayout.Y_AXIS));
    p.add(Box.createVerticalStrut(10));
    ImageIcon dIcon = new ImageIcon("Black.gif"); //add icon to button
    blackButton = new JButton("Black", dIcon);
    p.add(blackButton);
    p.add(Box.createVerticalStrut(10));
    ImageIcon eIcon = new ImageIcon("Blue.gif"); //add icon to button
    blueButton = new JButton("Blue", eIcon);
    p.add(blueButton);
    p.add(Box.createVerticalStrut(10));
    ImageIcon fIcon = new ImageIcon("Red.gif"); //add icon to button
    redButton = new JButton("Red", fIcon);
    p.add(redButton);
    p.add(Box.createVerticalStrut(10));
    ImageIcon gIcon = new ImageIcon("Yellow.gif"); //add icon to button
    yellowButton = new JButton("Yellow", gIcon);
    p.add(yellowButton);
    p.add(Box.createVerticalStrut(10));
    ImageIcon hIcon = new ImageIcon("Green.gif"); //add icon to button
    greenButton = new JButton("Green", hIcon);
    p.add(greenButton);
    p.add(Box.createVerticalStrut(30));
    ImageIcon houseIcon = new ImageIcon("house.gif");
    houseButton = new JButton("House", houseIcon);
    houseButton.setToolTipText("Click to add a house in the picture!");
    p.add(houseButton);
    //houseButton = addJButton("House", p);
    p.add(Box.createVerticalStrut(10));
    ImageIcon tvIcon = new ImageIcon("tv.gif");
    tvButton = new JButton("Television", tvIcon);
    tvButton.setToolTipText("Click to add a Television in the picture!");
    p.add(tvButton);
    //tvButton = addJButton("Television", p);
    p.add(Box.createVerticalStrut(10));
    ImageIcon starIcon = new ImageIcon("star.gif");
    starButton = new JButton("Star", starIcon);
    starButton.setToolTipText("Click to add stars in the picture!");
    p.add(starButton);
    //starButton = addJButton("Star", p);
    contentPane.add(p, "West");
    scribblePanel = new ScribblePanel();
    contentPane.add(scribblePanel, "Center");
    private JButton addJButton(String text, Container container) {
    JButton button = new JButton(text);
    container.add(button);
    return button;
    private JRadioButton addJRadioButton(String text, boolean on, ButtonGroup group, Container container) {
    JRadioButton button = new JRadioButton(text, on);
    group.add(button);
    container.add(button);
    return button;
    public void actionPerformed(ActionEvent e) {
    Object source = e.getSource();
    if (source instanceof JMenuItem) {
    String arg = e.getActionCommand();
    if (arg.equals("Undo"))
    scribblePanel.undo();
    else if (arg.equals("New"))
    scribblePanel.repaint();
    else if (arg.equals("Quit"))
    System.exit(0);
    }

    Hi,
    try to implement the Interface MouseListener (or the corresponding MouseAdapter):
    eg:
    class DrawingToolFrame extends JFrame implements ActionListener, MouseListener{
    //add a MouseListener to the component withing you would like to fetch the mouse-coordinates
    yourPanel.addMouseListener(this);
    //implement the five methods of the MouseListener
    public void mouseClicked(MouseEvent�e){}
    public void mouseEntered(MouseEvent�e){}
    public void mouseExited(MouseEvent�e) {}
    public void mousePressed(MouseEvent�e){}
    public void mouseReleased(MouseEvent�e){
    e.getX(); //Coordinates of the mouse after releasing the button
    e.getY();

Maybe you are looking for

  • I got Photoshop Elements 11 when I got my Wacom tablet, but I can't find the serial number anywhere?

    I got Photoshop Elements 11 when i got my wacom tablet this summer. I recently got a better computer so i want Elements 11 on it too. The problem is that I cannot find the serial number anywhere to be able to use it on my new computer. Since I got El

  • Placed Video from VHS Stretched

    I used an aftermarket card on my PowerMac to import some old VHS tapes (via the video/audio in on the card) from the video/audio out on my VCR. The videos came in at at 320x240 and look fine. When I import them to iMove HD 5.0.2it's really stretched

  • Item 1000 should be created; a maximum of 999 item

    Hi Experts, while creating the idoc in ECC we are getting error message Item 1000 should be created; a maximum of 999 item. this is problem is occuring when we process the large file from SAP PI. the condition is large file should not be split. to re

  • Custom HTML Store Class adobeDPS-Folio description

    Hi there, In the DPS portal for each folio we have the description field. But I can't access this field programmatically on iPad. As you can see where http://www.adobe.com/devnet-docs/digitalpublishingsuite/LibraryAndStoreAPI-2.22/symbols/ad obeDPS-F

  • Oracle Backup Question about backup files

    Good Morning, Oracle Database 10g (Release 10.2.0.3.0) on RHEL 4 .DB = Data File .A = Archive Log File .CTL = Control File CCPROD_bkp_al_677429110_Set6100_Piece1 <<< What does these types of file do? control01_CCPROD_30Jan09_0101.ctl.bkup <<< What do