Drawing an arrow on a photo

Is it possible to draw an arrow on a photo using iPhoto? I have a picture I want to e-mail to someone, and to draw their attention to one detail. The arrow doesn't have to look great -- it could be the equivalent of taking a Sharpie to a printed-out photo.

Sara
No, it's not possible using iPhoto. You can use other editors to do this such as Photoshop Elements or Seashore. There's a new editor called ACORN. It has a trial period so you could see if it meets your needs in the long term by using it in the short term. It will allow you to draw on the pic.
You can set Acorn or Photoshop or any image editor as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in the editor, and when you save it it's sent back to iPhoto automatically.
Regards
TD

Similar Messages

  • How to draw an arrow  ?

    hi.
    i want to create an application which permet to create graphs.
    to create edges i use :
    var arc = Path {
    strokeWidth: bind width
    elements: [
    MoveTo {
    x: bind debutX
    y: bind debutY
    QuadCurveTo {
    x: bind finX
    y: bind finY
    controlX: bind pointX
    controlY: bind pointY
    and i wan't to draw an arrow on this arc so i add a Polygon
    var triangle = Polygon {
    points: bind [pointX - 10,pointY - 10,pointX,pointY,pointX + 10,pointY - 10]
    fill: Color.AQUA
    strokeWidth: 5
    you can see that i use the same pointX and pointY .....this is what i obtain
    http://www.servimg.com/image_preview.php?i=65&u=11565828][img]http://i86.servimg.com/u/f86/11/56/58/28/fleche10.jpg
    the arrow is not on the arc !!
    thanks
    Edited by: ksergses on Apr 20, 2009 5:31 AM

    >
    Indeed, on Bézier curves, control points are outside of the curve, in general.
    Note that I see the triangle pointing precisely on the curve on the given screenshot... It depends on what you call arrow tip! ;-)no it's not the right tip pointing on the curve.....in general the arrow is far from the curve
    Back to your problem, either you compute the middle point with the Bézier formulasthat's what i am thinking about...but even if i do that ...the problem that the curves position can change ..and it's form also...and calculating the middle point is not the solution in this case .......
    i am searching for a tool that bind two objects ( arrow and curve) and after that we can manipulate them like one element ( like flash) !
    I am disappointed that JavaFX does not provide a tool to draw arrows easily.
    thanks
    Edited by: ksergses on Apr 21, 2009 5:03 AM

  • Drawing an arrow between two rectangle shapes

    i am trying to draw an arrow between two rectangle shapes. the arrow will start from the center of one rectangle and end with the arrow tip at the edge of the other rectangle. i actually draw the arrow first, and draw the rectangles last so the effect of where the arrow starts will seem to come from the edge and not the center.
    i have code using some trigonmetry that works for squares, but as soon as the shape becomes a rectangle (i.e. width and height are not the same), the drawing breaks.
    can i detect where a line intersects with a shape through clipping and use that point location to draw my arrow head? if so, how?

    Here's one way to do this using the rule of similar triangles.
    import java.awt.*;
    import java.awt.geom.*;
    import javax.swing.*;
    public class Pointers extends JPanel {
        Rectangle r1 = new Rectangle(40,60,100,150);
        Rectangle r2 = new Rectangle(200,250,175,100);
        int barb = 20;
        double phi = Math.toRadians(20);
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            g2.setPaint(Color.blue);
            g2.draw(r1);
            g2.draw(r2);
            g2.setPaint(Color.red);
            g2.draw(getPath());
        private GeneralPath getPath() {
            double x1 = r1.getCenterX();
            double y1 = r1.getCenterY();
            double x2 = r2.getCenterX();
            double y2 = r2.getCenterY();
            double theta = Math.atan2(y2 - y1, x2 - x1);
            Point2D.Double p1 = getPoint(theta, r1);
            Point2D.Double p2 = getPoint(theta+Math.PI, r2);
            GeneralPath path = new GeneralPath(new Line2D.Float(p1, p2));
            // Add an arrow head at p2.
            double x = p2.x + barb*Math.cos(theta+Math.PI-phi);
            double y = p2.y + barb*Math.sin(theta+Math.PI-phi);
            path.moveTo((float)x, (float)y);
            path.lineTo((float)p2.x, (float)p2.y);
            x = p2.x + barb*Math.cos(theta+Math.PI+phi);
            y = p2.y + barb*Math.sin(theta+Math.PI+phi);
            path.lineTo((float)x, (float)y);
            return path;
        private Point2D.Double getPoint(double theta, Rectangle r) {
            double cx = r.getCenterX();
            double cy = r.getCenterY();
            double w = r.width/2;
            double h = r.height/2;
            double d = Point2D.distance(cx, cy, cx+w, cy+h);
            double x = cx + d*Math.cos(theta);
            double y = cy + d*Math.sin(theta);
            Point2D.Double p = new Point2D.Double();
            int outcode = r.outcode(x, y);
            switch(outcode) {
                case Rectangle.OUT_TOP:
                    p.x = cx - h*((x-cx)/(y-cy));
                    p.y = cy - h;
                    break;
                case Rectangle.OUT_LEFT:
                    p.x = cx - w;
                    p.y = cy - w*((y-cy)/(x-cx));
                    break;
                case Rectangle.OUT_BOTTOM:
                    p.x = cx + h*((x-cx)/(y-cy));
                    p.y = cy + h;
                    break;
                case Rectangle.OUT_RIGHT:
                    p.x = cx + w;
                    p.y = cy + w*((y-cy)/(x-cx));
                    break;
                default:
                    System.out.println("Non-cardinal outcode: " + outcode);
            return p;
        public static void main(String[] args) {
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(new Pointers());
            f.setSize(400,400);
            f.setLocation(200,200);
            f.setVisible(true);
    }

  • How to draw an arrow in Java2D ?

    Hi ,
    Can anybody tell me how can I draw an arrow in Java2D ? The main issue here is to draw the 2 small arrow lines at the appropriate angle at one end of the line
    Thanks
    Ratheesh

    import java.awt.*;
    import java.awt.geom.*;
    public abstract class Transformers
    extends Component {
    Shape mAxes, mShape;
    int mLength = 54, mArrowLength = 4, mTickSize = 4;
    public Transformers() {
    mAxes = createAxes();
    mShape = createShape();
    protected Shape createAxes() {
    GeneralPath path = new GeneralPath();
    // Axes.
    path.moveTo(-mLength, 0);
    path.lineTo(mLength, 0);
    path.moveTo(0, -mLength);
    path.lineTo(0, mLength);
    // Arrows.
    path.moveTo(mLength - mArrowLength, -mArrowLength);
    path.lineTo(mLength, 0);
    path.lineTo(mLength - mArrowLength, mArrowLength);
    path.moveTo(-mArrowLength, mLength - mArrowLength);
    path.lineTo(0, mLength);
    path.lineTo(mArrowLength, mLength - mArrowLength);
    // Half-centimeter tick marks
    float cm = 72 / 2.54f;
    float lengthCentimeter = mLength / cm;
    for (float i = 0.5f; i < lengthCentimeter; i += 1.0f) {
    float tick = i * cm;
    path.moveTo( tick, -mTickSize / 2);
    path.lineTo( tick, mTickSize / 2);
    path.moveTo(-tick, -mTickSize / 2);
    path.lineTo(-tick, mTickSize / 2);
    path.moveTo(-mTickSize / 2, tick);
    path.lineTo( mTickSize / 2, tick);
    path.moveTo(-mTickSize / 2, -tick);
    path.lineTo( mTickSize / 2, -tick);
    // Full-centimeter tick marks
    for (float i = 1.0f; i < lengthCentimeter; i += 1.0f) {
    float tick = i * cm;
    path.moveTo( tick, -mTickSize);
    path.lineTo( tick, mTickSize);
    path.moveTo(-tick, -mTickSize);
    path.lineTo(-tick, mTickSize);
    path.moveTo(-mTickSize, tick);
    path.lineTo( mTickSize, tick);
    path.moveTo(-mTickSize, -tick);
    path.lineTo( mTickSize, -tick);
    return path;
    protected Shape createShape() {
    float cm = 72 / 2.54f;
    return new Rectangle2D.Float(cm, cm, 2 * cm, cm);
    public void paint(Graphics g) {
    Graphics2D g2 = (Graphics2D)g;
    // Use antialiasing.
    g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
    RenderingHints.VALUE_ANTIALIAS_ON);
    // Move the origin to 75, 75.
    AffineTransform at = AffineTransform.getTranslateInstance(75, 75);
    g2.transform(at);
    // Draw the shapes in their original locations.
    g2.setPaint(Color.black);
    g2.draw(mAxes);
    g2.draw(mShape);
    // Transform the Graphics2D.
    g2.transform(getTransform());
    // Draw the shapes in their new locations, but dashed.
    Stroke stroke = new BasicStroke(1,
    BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0,
    new float[] { 3, 1 }, 0);
    g2.setStroke(stroke);
    g2.draw(mAxes);
    g2.draw(mShape);
    public abstract AffineTransform getTransform();
    public Frame getFrame() {
    ApplicationFrame f = new ApplicationFrame("...more than meets the eye");
    f.setLayout(new BorderLayout());
    f.add(this, BorderLayout.CENTER);
    f.setSize(350,200);
    f.center();
    return f;
    }

  • Problem drawing an arrow

    i am facing serious problems drawing an arrow which has to be moved round the screen.
    does anybody have any idea or reference websites that would solve my problem
    i have to rotate the arrow to the mouse pointer to wherever it is dragged.
    hope u will get with this nick
    hussain52

    A more descriptive backgound to the problem may help people come up with a solution for you.
    From what you've said it sound like you need to use a canvas and paint the arrow on it. Then use a mouse listener to listen for mouse clicks on the arrow and re-draw the arrow appropriatly.
    Does this sound like it might work?
    If so, try the code below...
    It only paints a line, but it might get you thinking in the right direction?
    Additions to get it to do what you want are...
    1. Draw an arrow head at the end of the line.
    2. Listen for mouse clicks within a certain radius of the end of the line.
    3. Redraw the line using the original start point and the new end.
    However, if I've completely missunderstood then it's all a complete waste of time.... but I've enjoyed it.
    Adios amigo.
    /*--- formatted by Jindent 2.1, (www.c-lab.de/~jindent) ---*/
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    * Class declaration
    * @author Ollie Lord
    * @version %I%, %G%
    public class ArrowCanvas extends Canvas implements MouseListener {
    private int startX;
    private int startY;
    private int endX;
    private int endY;
    * Constructor declaration
    * @see
    public ArrowCanvas() {
              setSize(new Dimension(200, 200));
              addMouseListener(this);
    public void paint(Graphics g) {
              g.setColor(Color.black);
              g.drawLine(startX, startY, endX, endY);
    * Invoked when the mouse has been clicked on a component.
    public void mouseClicked(MouseEvent e) {
    * Invoked when the mouse enters a component.
    public void mouseEntered(MouseEvent e) {
    * Invoked when the mouse exits a component.
    public void mouseExited(MouseEvent e) {
    * Invoked when a mouse button has been pressed on a component.
    public void mousePressed(MouseEvent e) {
              System.out.println("Pressed");
              startX=e.getX();
              startY=e.getY();
    * Invoked when a mouse button has been released on a component.
    public void mouseReleased(MouseEvent e) {
              System.out.println("Released");
              endX=e.getX();
              endY=e.getY();
              repaint();
    * Method declaration
    * @param args
    * @see
    public static void main(String[] args) {
    JFrame frame = new JFrame("Arrow");
    frame.getContentPane().add(new ArrowCanvas());
    frame.pack();
    frame.show();
    /*--- formatting done in "Ollies Java Convention" style on 07-04-2001 ---*/

  • Is there a way to create a still image from video in either imovie or iphoto?  I want to add an arrow to an imovie and so far have not had any luck but I'm thinking I might be able to add an arrow to a photo and then incorporate it into the movie.

    I'm still trying to point out a location in an imovie with an arrow.  I thought I might be able to insert an arrow in a still photo from the imovie and then reinsert the photo in the movie but my attempts at capturing a still frame from a video in imovie or iphoto haven't worked so far.  Any ideas any one???

    First, get an app called MPEG Streamclip, which is free. You can find it by googling MPEG Streamclip Squared 5.
    Open MPEG Streamclip.
    In iMovie, select the clip you need. Then, right-click/Reveal in Finder.
    Drag this clip into MPEG Streamclip
    In MPEG Streamclip, move the playhead to the frame you want.
    In MPEG Streamclip, click FILE/EXPORT FRAME.
    Choose JPEG, TIFF, or PNG and give it a name.
    Also, for how to add a pointer, try Karsten Schluter's website for a good post on how to do this.

  • Change Color Selecting Layers in PSE10 for a Drawing from Photoshop CS6 (non-photo) .PSD file?

    Hi Everyone,
    I have a drawing that was created in Photoshop CS6 (non-photo) and saved as a .PSD file.  I am able to open the file in PSE10 and see the drawing and select the layers.  I am having trouble with figuring out how to change the colors on each layer in PSE10.  When I select a layer where do I go to change the color of that layer?  Can this be done in PSE10 as this a drawing created in Photoshop CS6 and not a photo?
    TIA,
    ClearInk8

    I'm not sure what I am doing wrong. 
    Here are the steps I have tried.
    I made sure the RGB Color (Image>Mode) was selected.
    I selected the star layer
    Next I selected Layer>Created Clipping Mask
    Then I selected Color blend mode
    Then I selected Solid Color
    When I choose a color the entire canvas fills with the solid color and covers up the drawing.
    What step am I missing?
    The small red square outline you have next to the orange color box in the color fill layer I am not see this small icon.
    ClearInk8

  • Using a keyListener to draw with arrow keys

    Hi!
    I am trying to create an interactive game where the user can
    draw a line using the arrow keys (similar to an etch-a-sketch). I
    have a start point acting on keyListeners that will move around the
    screen using the arrow keys, but I can't seem to figure out how to
    get the listeners to draw a line. Here is the correct code that
    moves the start point:
    information_txt.text = "USE YOUR ARROW KEYS TO DRAW";
    var speed:Number = 4;
    start_mc.onEnterFrame = function() {
    if (Key.isDown(Key.RIGHT)) {
    this._x = this._x+speed;
    } else if (Key.isDown(Key.LEFT)) {
    this._x = this._x-speed;
    if (Key.isDown(Key.UP)) {
    this._y = this._y-speed;
    } else if (Key.isDown(Key.DOWN)) {
    this._y = this._y+speed;
    How can I modify Action Script to get the keyListeners to
    draw on the arrow keys?
    Any help would be MUCH appreciated!!!
    Thanks!

    Thanks for your reply! That's awesome. you were right, my
    script is in AS 2.0... I guess I posted to the wrong section. But I
    could easily switch to AS 3.0. I am really just interested in
    drawing with the arrow keys and using that action script to draw
    onto my own stage/ image. I have tried messing with the script, but
    can't seem to get the "drawing" portions of the script to work.
    Any suggestions??
    Thanks again for the help!!!

  • Use Marquee tool to draw an ellipse over a photo

    I am trying to write a user's guide.  I take screen shots and then bring them into Photoshop elements.  In previous versions I was able to use the Marquee tool to draw an ellipse over a portion of the screen I wanted to discuss.  See below:  It was very easy to do.  Now I am using PE 8 and I cannot seem to do it.

    Thanks for your help.
    I tried it but really don't like the results.  See below:
    the ellipse is soft and washed out.  Compare it with the one I was able to do with the previous version of PE:
    which is crisp and has that little open flourish at the right side.It looks like a drawn image.  Much more professional looking.

  • How can i draw oneway arrow mark

    i wanna a put an arrow symbol at the line.
    but my program output showing to arrow symbols one at start and one at end.
    so how can remove the arrow symbol at the start.
    <%@page import="ChartDirector.*" %>
    // Create a XYChart object of size 500 x 320 pixels, with a pale purpule (0xffccff)
    // background, a black border, and 1 pixel 3D border effect.
    XYChart c = new XYChart(500, 320, 0xffccff, 0x000000, 1);
    // Set the plotarea at (55, 45) and of size 420 x 210 pixels, with white background.
    // Turn on both horizontal and vertical grid lines with light grey color (0xc0c0c0)
    c.setPlotArea(55, 45, 420, 210, 0xffffff, -1, -1, 0xc0c0c0, -1);
    // Add a legend box at (55, 25) (top of the chart) with horizontal layout. Use 8 pts
    // Arial font. Set the background and border color to Transparent.
    c.addLegend(55, 22, false, "", 8).setBackground(Chart.Transparent);
    // Add a title box to the chart using 13 pts Times Bold Italic font. The text is
    // white (0xffffff) on a purple (0x800080) background, with a 1 pixel 3D border.
    c.addTitle("Long Term Server Load", "Times New Roman Bold Italic", 13, 0xffffff
        ).setBackground(0x800080, -1, 1);
    // Add a title to the y axis
    c.yAxis().setTitle("MBytes");
    // Set the labels on the x axis. Rotate the font by 90 degrees.
    c.xAxis().setLabels(labels).setFontAngle(90);
    // The lengths (radii) and directions (angles) of the vectors
    double[] dataR = {2,3};
    double[] dataA = {77,30};
    // Add a vector layer to the chart using blue (0000CC) color, with vector arrow size
    // set to 11 pixels
    LineLayer layer1 = c.addLineLayer();
    //LineLayer layer1 = c.addLineLayer(dataY0, 0xff3333, "Compound AAA");
    layer1.addDataSet(dataY0, 0xff3333, "Close Loop Line");//.setDataSymbol( Chart.LeftTriangleSymbol, 10);
    layer1.setXData(dataX0);
    layer1.setLineWidth(2);
    //layer1.setDataSymbol(Chart.TriangleSymbol, 11);
    //layer1.addCustomDataLabel(0, 0, "Start", "Arial Bold");
    layer1.addCustomDataLabel(0, 4, "End", "Arial Bold");
    // Add a line layer to the chart
    LineLayer lineLayer = c.addLineLayer2();
    // square symbol
    lineLayer.addDataSet(data, 0xcc9966, "Server Utilization").setDataSymbol(
        Chart.SquareSymbol, 7);
    lineLayer.setLineWidth(2);
    // output the chart
    String chart1URL = c.makeSession(request, "chart1");
    %>
    <html>
    <body topmargin="5" leftmargin="5" rightmargin="0">
    <div style="font-size:18pt; font-family:verdana; font-weight:bold">
        Trend Line Chart
    </div>
    <img src='<%=response.encodeURL("getchart.jsp?"+chart1URL)%>'
        usemap="#map1" border="0">
    </body>
    </html>thank u
    shawnak

    Just to add to Phil's suggestion, I'm pretty sure that Photoshop installs a nice set of arrow custom shapes. Open up the Preset Manager and go to the Custom Shapes window. Click and hold on the little round button with the triangle in it at the top right near the Done button. That will get you a dropdown menu with all the installed preset files currently recognized by PS. If Arrows is listed highlight that and append it to your current set.
    Now you have all sorts of arrows. They can be filled shapes and then add styles, free transform them including rotation and if you wish to go bonkers you can use the arrow tools (direct selection or path selection tools) to really customize the arrows.

  • How to draw an arrow in Photoshop CS6?

    The Line Tool in Photoshop CS6 is radically different from that in PSCS5.  I have used Photoshop almost daily for years, yet I haven't been able to figure this out.  Any help out there?

    It just looks different. but the functionality is still there.  Look here:
    -Noel

  • Is there any way to add text or arrows onto photos in iPhoto when creating a book?

    I am creating a photo book (Album), in iPhoto, in Projects. There are some place where it would be helpful if I could draw an arrow on the Photo to indicate certain places. I also would like to add text onto a photo in the book. This is as well as typing in the 'text box' provided. It needs to be on the actual photo in the book. Is this possible? I am using Version 9.5.1 which i think is the latest and i am running on Maverick on my iMac.

    There is no way to add anything to the face of a photo in iPhoto at all You will need an extenral editror for that kind of work. You can add text and arrows etc with Preview, already on your Mac or with apps like these:
    Seashore (free)
    The Gimp (free)
    Graphic Coverter ($45 approx)
    Acorn ($50 approx)
    Pixelmator ($50 approx)
    Photoshop Elements ($75 approx)
    There are many, many other options. Search on MacUpdate or the App Store.
    You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.

  • I want to know how to draw arrows & dashed lines in a picture control

    I have to draw arrows & dashed lines in a picture control. Just like we can do that in word or paint etc. I need to do the same using the mouse and drag the line/arrow till I realease the mouse. I am able to this for a normal line ( it works perfectly) but when I have to draw an arrow or a line I am stumped.

    Unfortunately, you have to code your own VIs to do these. It's not going to be too complicated if you manage the animation (while dragging the mouse) with a normal line and draw the dashed line/arrow at the end (when releasing the mouse button).
    In both cases, you'll know start/end line coordinates, thus having the line equation. For arrows, you need to calculate the angle in order to draw it properly.
    A simpler solution may be an activeX control with these features (Paint like) already integrated or to develop one in Visual Basic (at least it will be simpler to manage mouse events and drawing tasks).
    Let's hope somebody already did it and wants to share.

  • I must be missing something; is there a way to make lines and arrows in PSE9?

    I'm trying to add an arrow to a photo to point out certain features. I'm lost; I see no way to do this???
    Thanks much
    Ron

    Two easy ways:
    1. Select the custom shape tool, select all elements shapes and
       choose from the arrows.
    2. Use the line tool and either draw a line or adjust the settings under arrowheads.
    MTSTUNER

  • Alarm status drawing iow: recolour JInternalFrame components

    Greetings,
    Please have a look at this picture. It's a low res snapshot of
    a few quite complicated components. Most of the functionality isn't
    visible nor relevant in the example. What you're looking at is a real time
    process of some sort. Things can go wrong in that process. In a previous
    version of my views I'd turn the background colour of some components
    red/yellow/green according to the 'alarm status' of the process. One of
    my customers suggested the idea of turning everything red/yellow/green
    inside those JInternalFrames (that's what you're looking at in the example).
    Of course one fool can ask more than a dozen of wise men can answer
    and I am not that wise, so my question is: how would one change the
    colour of all components that are part of a JInternalFrame (or any
    other container) such that the colour wouldn't be 100% opague but
    still visible by itself and still showing the information originally present
    in each individual component. iow, as if a transparent monochrome
    filter were positioned in front of that entire JContainer.
    In a naive way I like the idea; if the idea turns out to be too complicated
    to realize I'd be happy with visual alternatives also. (such as big arrows
    pointing to the JContainer where the alarm happened).
    Note that these appliations run in a 'factory' environment where people
    either hardly watch the screens or they watch them at quite a great
    distance. The changing colours should just attract their attention so they
    will walk/run/drive/ride to the screens for a second inspection.
    Any ideas are appreciated.
    kind regards,
    Jos

    Not sure I understand the question, but I keyed in on:
    as if a transparent monochrome filter were positioned in front of that entire JContainer.So maybe you could use a GlassPane:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class GlassPaneTest extends JFrame
        public GlassPaneTest()
            final JComponent glassPane = new JComponent()
                public void paintComponent(Graphics g)
                    g.setColor( getBackground() );
                    g.fillRect(0, 0, getSize().width, getSize().height);
            glassPane.setOpaque( false );
            glassPane.setBackground( new Color(240, 20, 20, 100) );
            setGlassPane( glassPane );
            glassPane.addKeyListener( new KeyAdapter()
                public void keyPressed(KeyEvent e)
                    e.consume();
            glassPane.addMouseListener( new MouseAdapter()
                public void mousePressed(MouseEvent e)
                    e.consume();
            final JButton button = new JButton( "Click Me" );
            button.setMnemonic('c');
            button.addActionListener( new ActionListener()
                public void actionPerformed(ActionEvent e)
                       glassPane.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
                       glassPane.setVisible( true );
                       glassPane.requestFocus();
                       Thread thread = new Thread()
                            public void run()
                                try { this.sleep(5000); }
                                catch (InterruptedException ie) {}
                                 glassPane.setVisible( false );
                                 glassPane.setCursor(null);
                    thread.start();
            getContentPane().add(new JLabel("NORTH"), BorderLayout.NORTH );
            getContentPane().add( button );
            getContentPane().add(new JTextField(), BorderLayout.SOUTH);
        public static void main(String[] args)
            GlassPaneTest frame = new GlassPaneTest();
            frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
            frame.setSize(300, 300);
            frame.setLocationRelativeTo( null );
            frame.setVisible(true);
    }The Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/components/rootpane.html]How to Use Glass Panes shows how you can also do a simple drawing (your arrow?) on the glass pane.

Maybe you are looking for

  • Can't print from Intel Mac w/Snow Leopard to HP 2600

    Can't print from Intel Mac w/Snow Leopard to HP 2600.  Upgraded from OS 10.4 and printer showed on printer list along with an Epson scanner. but continually shows printer as offline.  I finally deleted the HP Color Laserjet 2600n from the printer lis

  • Content not loading in Dev app.

    Hello, I'm producing our companies first DPS publication, this is the first time I've built an app in DPS, so apologies if I'm missing something obvious. Here's the problem, everything is working fine in Adobe Content Viewer (both the emulator and ap

  • Elements 10 Error 16

    I'm running Photoshop Elements 10 on Mavericks. On lauch I'm getting an error code 16 and the application doesn't open. I've tried to download and run the license repair from Adobe and it doesn't respond. I've gone in and performed a disk permissions

  • Pda state is missing vi or c file

    Hello! I have one VI that is working fine in LabVIEW PDA Module 8.0.1. But when I upgrad this VI in PDA Module 8.20 and try to build it I get this error "state is missing VI or C file"! I'm not new in LabVIEW PDA Module and I know that it has bugs (I

  • Pragma pack(1) - relocation Error

    Hi, I am trying to use the #pragma pack(1) with Forte C++. I do use the -misalign option both at compilation and link. However, when I use a in this context, a class with virtual functions I get compilation errors at code generation ("location counte