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;
}

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&eacute;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&eacute;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

  • 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

  • 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.

  • How to draw a line with arrow head

    Hi,
    I have an application where i need to connect different
    components by line. I am able to connect the components by line but
    i dont know how i can add arrow to the line head or one end of
    line. When i drag line from a souce component to destination the
    line end at destination must have a pointed head i.e arrow.
    If any one have solution please reply..
    Thank you.

    Hi,
    I have an application where i need to connect different
    components by line. I am able to connect the components by line but
    i dont know how i can add arrow to the line head or one end of
    line. When i drag line from a souce component to destination the
    line end at destination must have a pointed head i.e arrow.
    If any one have solution please reply..
    Thank you.

  • 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 create an arrow with a stoke?

    Hello,
    This seems like such an easy task but I cannot find an answer. How do I create an arrow share with a different stroke and fill in InDesign? I used the stroke start and stop options to create arrows, and ended up layering two arrows to achieve the effect, but I'm hoping there is a correct and more elegant solution. Thanks in advance!

    The best way would be to create this in Illustrator - it has more elegant outlining capabilities. Other than that, if you must make this within InDesign, draw the arrow with the pen tool.

  • Problem drawing a graph in Java2D

    I am trying to draw a graph using Java2D, onto a JPanel. I works sort of ok, but i have 2 problems;
    1. I don't know how to get it "linked" to the paint() method, so everytime someone resizez the window/window looses focus, the drawing is removed.
    2. The graphing becomes unacurate when passing more than 25-30 values, I think the problem might be the "hvorPaAkse" (whereOnAksis) or the "okY" (increaseY) value, that for some rasen appear to add too much, so that the error gradually increases for every loop in the for(), or something like that.
    I know reading the code and understanding the problem itselv is a challenge, but I if there's anybody out there who can help, I would be thankful for any help!
    CODE:
    //The draw axis method
    public void tegnAkser(JComponent comp, int antX, int antY, int okX, int okY) {
    Graphics g = comp.getGraphics();
    Graphics2D g2 = (Graphics2D) g;
    g2.setStroke(akseStrek);
    g2.draw(new Line2D.Double(origo.x, origo.y, origo.x, comp.getHeight()-((antY*okY)+(comp.getHeight()/yOffset))));
    g2.draw(new Line2D.Double(origo.x, origo.y, origo.x+(antX*okX), origo.y));
    int hvorPaAkse = origo.x;
    System.out.println(comp.getHeight()/antY);
    int gangeverdi = 1;
    if(comp.getHeight()/antY < 16) {
    gangeverdi = 5;
    for(int i=0; i<antX; i++) {
    g2.draw(new Line2D.Double(hvorPaAkse, origo.y - 2, hvorPaAkse,
    origo.y + 2));
    g2.drawString("" + i, hvorPaAkse, origo.y + 15);
    hvorPaAkse += okX;
    hvorPaAkse = origo.y;
    for(int i=0; i<antY; i++) {
    if(i%gangeverdi == 0) {
    g2.draw(new Line2D.Double(origo.x - 2, hvorPaAkse, origo.x + 2,
    hvorPaAkse));
    g2.drawString("" + i, origo.x - 15, hvorPaAkse);
    hvorPaAkse -= okY;
    //the drawGraf method
    public void tegnGraf(int[] verdier, JComponent comp) {
    Graphics g = comp.getGraphics();
    Graphics2D g2 = (Graphics2D) g;
    int xLengde = comp.getWidth();
    int yLengde = comp.getHeight();
    origo = new Punkt(xLengde - 9 * (xLengde / xOffset),
    yLengde - (yLengde / yOffset));
    int ant = verdier.length;
    int maxVerdi = 0;
    for (int i = 0; i < verdier.length; i++) {
    if (verdier[i] > maxVerdi)
    maxVerdi = verdier;
    tegnAkser(comp, ant+1, maxVerdi+1, (xLengde - (xLengde / xOffset)) / ant,
    ( (yLengde / yOffset) - yLengde) * -1 / maxVerdi);
    g2.setColor(Color.BLUE);
    g2.setStroke(grafStrek);
    ArrayList punkter = new ArrayList();
    for (int i = 0; i < verdier.length; i++) {
    g2.drawString("x", origo.x-2 + (i * (xLengde - (xLengde / xOffset)) / ant),
    origo.y +3 -
    (verdier[i] * ( (yLengde / yOffset) - yLengde) * -1 /
    maxVerdi));
    punkter.add(new Point2D.Double(origo.x +
    (i * (xLengde - (xLengde / xOffset)) / ant),
    origo.y -
    (verdier[i] *
    ( (yLengde / yOffset) - yLengde) * -1 /
    maxVerdi)
    //g2.draw(new Line2D.Double(origo.x,origo.y,origo.x+1,origo.y+1));
    for(int i=1; i<punkter.size(); i++) {
    Point2D.Double forrige = (Point2D.Double)punkter.get(i-1);
    Point2D.Double denne = (Point2D.Double)punkter.get(i);
    Line2D.Double linje = new Line2D.Double(forrige,denne);
    g2.draw(linje);
    Thanks
    CJ

    I couldn't do much with the code that you posted. It looks like you are plotting integers. Maybe you can use this.
    /* Plots plus/minus int values for ordinate for
    * evenly-distributed, positive int values on abcissa
    import java.awt.*;
    import java.awt.geom.*;
    import java.util.*;
    import java.util.List;
    import javax.swing.*;
    public class PlottingIntegers
        public static void main(String[] args)
            int[] data = {
                100, 220, 12, 65, 47, 175, 190, 18
            IntegerPlotter plotter = new IntegerPlotter();
            for(int i = 0; i < 8; i++)
                plotter.plot(data);
    JFrame f = new JFrame("Plotting Integers");
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.getContentPane().add(plotter);
    f.pack();
    f.setLocationRelativeTo(null);
    f.setVisible(true);
    class IntegerPlotter extends JPanel
    final int PAD = 25;
    List dataList;
    public IntegerPlotter()
    dataList = new ArrayList();
    setBackground(Color.white);
    setPreferredSize(new Dimension(400,300));
    public void paintComponent(Graphics g)
    super.paintComponent(g);
    Graphics2D g2 = (Graphics2D)g;
    int width = getWidth();
    int height = getHeight();
    int xStep = (width - 2*PAD)/(dataList.size() - 1);
    int x = PAD;
    int y;
    // scale data
    int max = ((Integer)Collections.max(dataList)).intValue();
    int min = ((Integer)Collections.min(dataList)).intValue();
    int vertSpace = height - 2*PAD;
    int yOffset = height - PAD;
    int yDataOffset = (min >= 0 ? min : max > 0 ? 0 : max);
    double scale = (double)vertSpace/(max - min);
    int yOrigin = yOffset + (int)(min > 0 ? 0 : max > 0 ? scale*min : - vertSpace);
    // draw ordinate
    g2.draw(new Line2D.Float(PAD, PAD, PAD, yOffset));
    // draw abcissa
    g2.draw(new Line2D.Float(PAD, yOrigin, width - PAD, yOrigin));
    // label ordinate limits
    g2.drawString(String.valueOf(max), 10, PAD - 10);
    g2.drawString(String.valueOf(min), 10, yOffset + PAD/2);
    g2.setStroke(new BasicStroke(4f));
    g2.setPaint(Color.red);
    for(int i = 0; i < dataList.size(); i++)
    y = yOrigin -
    (int)(scale * (((Integer)dataList.get(i)).intValue() - yDataOffset));
    g2.draw(new Line2D.Float(x, y, x, y));
    x += xStep;
    protected void plot(int input)
    dataList.add(new Integer(input));
    repaint();

  • 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 a line???

    I am a long time Photoshop user, but new to "Elements". I cannot figure out how to draw a line??? The Help says "To draw a line or arrow...... 1. In the Editor, select the Line tool." Ummm.....WHERE??? HOW??? If I knew how to select the Line tool I wouldn't have gone to the Help file.
    Where is the "Editor"?? All I see at the top in the "Rectangular Marquee Tool" and the "Elliptical Marquee Tool" .....I see no Line tool on the left (where it used to be in PhotoShop) or on the top.
    Jeff

    Jeff,
    I use PEv.3. The line tool is accessed via the shape selection tool.
    Click U. Hold the shift key as you drag and you will have a straight line.
    Editor refers to the component of Elements utilized for enhancement and manipulation. Organizer in the Win version deals with storage and structured organization, as well as special projects.
    Ken

  • How to draw horizontal line in smartform after end of the all line items

    Hi Friends,
    I am working on the smartform. I have created TABLE node in Main window.
    i want to draw a horizontal line after end of the main window table node. i mean after printing all the line items of the table, I need to print one horizontal line.
    Could you please help me how to resolve this issue.
    FYI: I tried with the below two options. But no use.
    1. desinged footer area in the table node of the main window.
    2. tried with uline and system symbols.
    please correct me if i am wrong. please explain in detail how to draw horizontal line after end of the main window table.
    this is very urgent.
    Thanks in advance
    Regards
    Raghu

    Hello Valter Oliveira,
    Thanks for your answer. But I need some more detail about blank line text. i.e thrid point.
    Could you please tell me how to insert blank line text.
    1 - in your table, create a line type with only one column, with the same width of the table
    2 - in table painter, create a line under the line type
    3 - insert a blank line text in the footer section with the line type you have created.

  • How to create an arrow in a table

    How to create an arrow in a table in numbers.
    If you have plus or minus numbers, I want to know a green arrow on the increase is positively or a red arrow if it is negative number

    Maybe something like this?

  • How to draw text vertically, or in an angle

    please help me how to draw text vertically, or in an angle

    I robbed the framework from Dr Las or 74phillip (don't remember which) ...
    import java.awt.*;
    import java.awt.geom.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class AngleText extends JPanel {
      private int      degrees = 16;
      private JSpinner degreesSpinner;
      public AngleText () {
        setBackground ( Color.WHITE );
      }  // AngleText constructor
      protected void paintComponent ( Graphics _g ) {
        super.paintComponent ( _g );
        Graphics2D g = (Graphics2D)_g;
        g.setRenderingHint ( RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON );
        AffineTransform at = AffineTransform.getRotateInstance ( Math.toRadians ( degrees ) );
        Font f =  g.getFont();
        g.setFont ( f.deriveFont ( at ) );
        g.drawString ( "Rotating Text!", getWidth()/2, getHeight()/2 );
        g.setRenderingHint ( RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_OFF );
      }  // paintComponent
      public JPanel getUIPanel () {
        SpinnerModel degreesModel = new SpinnerNumberModel (
                                      degrees  // initial
                                     ,0        // min
                                     ,360      // max
                                     ,2        // step
        degreesSpinner = new JSpinner ( degreesModel );
        degreesSpinner.addChangeListener ( new DegreesTracker() );
        JPanel panel = new JPanel();
        panel.add ( degreesSpinner );
        return panel;
      }  // getUIPanel
      //  DegreesTracker
      private class DegreesTracker implements ChangeListener {
        public void stateChanged ( ChangeEvent e ) {
          Integer i = (Integer)((JSpinner)e.getSource()).getValue();
          degrees   = i.intValue ();
          repaint();
      }  // DegreesTracker
      //  main
      public static void main ( String[] args ) {
        JFrame f = new JFrame ( "AngleText" );
        f.setDefaultCloseOperation ( JFrame.EXIT_ON_CLOSE );
        AngleText app = new AngleText();
        f.getContentPane().add ( app );
        f.getContentPane().add ( app.getUIPanel(), BorderLayout.SOUTH );
        f.setSize ( 200, 200 );
        f.setVisible ( true );
      }  // main
    }  // AngleText

  • How to draw vertical lines in SMART FORMS

    Hi Guys,
    Can anyone please let me know how to draw vertical and horizontal lines in smart forms, i have to do this in the secondary window.
    thanks,
    Ramesh

    Hi Ramesh,
    In the window output options you have option of check box to get lines.
    Then you need to give the spacing for vertical and horizontal.
    Another option is putting a template on window and getting the boxes, but it is quite little bit complex.
    Put the cursor on the WINDOW in which the lines you want.
    Right click on it>create>complex section.
    In that select the TEMPLATE radio button.
    Goto TAB TEMPLATE.
    Name: give some name of line.
    From: From coloumn.
    To: To coloumn
    Height: specify the height of the line.
    Next give the coloumn widths.
    Like this you can draw the vertical and horzontal lines.
    If the above option doesnot workout then u can try the below option also
    any how you can draw vertical and horizontal lines using Template and Table.
    for Template First define the Line and divide that into coloumns and goto select patterns and select the required pattern to get the vertical and horizontal lines.
    For table, you have to divide the total width of the table into required no.of columns and assign the select pattern to get the vertical and horizontal lines.
    if this helps, reward with points.
    Regards,
    Naveen

  • I would like to know how to draw up a list in a cell (like a pull-down menu) to ease data capture, but I don't know how to do that  ! Do you get the idea ? Thanks !

    I would like to know how to draw up a list in a cell (like a pull-down menu) to ease data capture, but I don't know how to do that  !
    Do you get the idea ?
    Thanks ever so much !

    the numbers manual can be downlaoded from this website under the Apple support area...
    http://support.apple.com/manuals/#numbers
    What your looking for is written out step by step for drop downs and all other special types of user input starting around page 96 in the '09 manual.
    Jason

Maybe you are looking for

  • Is There a Way To Show What I've Listened To Recently?

    Is there a way to see what I've listened to say in the lat week?  I can go to Controls and see recent, I can change my views and see (and sort) when songs were "last played" and I can see the top 25 songs in all history played from my library. What I

  • Drill down in Graphs

    Hi Friends, Is there anyway we can make graphs and charts in Web reports more interactive like drilldown in graphs. Suppose user can see sales revenue for different continents in pie-chart and table of web report and when he clicks particular contine

  • Storing TV shows from itunes to flashdrive

    I have dowloaded some TV shows from itunes and I just bought a TV that has a USB port on it.  I would like to download the TV shows to the flashdrive so that I can watch them on my TV but I can not figure out how.  Does any one know how to do this or

  • Regarding radio button and selection screen

    hi i have a requirement to grey out one particular select option , if any one of 4 radio button is selected. (total 5 radio buttons ) .  how do i proceed . SELECTION-SCREEN BEGIN OF BLOCK blk WITH FRAME. SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAM

  • Address in Luxembourg country for creating photo books or cards

    I'm living in Luxembourg and I can't fill my receiving address when I command photos or card or photo books. France or Belgium or other europeans countries but Luxembourg isn't available. What can I do ?