How to draw a simple little line.

I have a JApplet that loads images from a jar file. This applet can scale the images, and move them left right, up and down.
I just want to be able to draw a line on top of the images and then erase it if needed. How do I do this?
Currently, I have a the jpg images loaded into an Image, which is then converted to an ImageIcon, which is then used to create a JLabel, which is used to create a JScrollPane which finally gets added as a tab on a JTabbedPane.
I was told to use BufferedImage but that didn't help me. Here is what I have currently:
private void draw()
//Get the current image to draw on
JScrollPane jsp = (JScrollPane)m_tabbedPane.getSelectedComponent();
JViewport port = jsp.getViewport();
GrabAndScrollLabel gnsLabel = (GrabAndScrollLabel) port.getView();
ImageIcon ii = (ImageIcon) gnsLabel.getIcon();
BufferedImage bi = new BufferedImage (ii.getIconWidth(),
ii.getIconHeight(),
BufferedImage.TYPE_INT_RGB);
Graphics2D g2 = bi.createGraphics();
g2.setPaint(Color.blue);
g2.drawLineRect(100, 200, 300, 500);
g2.drawImage(ii.getImage(),null,null);
ImageIcon newIcon = new ImageIcon(ii.getImage());
gnsLabel.setIcon(newIcon);
port.setView(gnsLabel);
jsp.setViewport(port);
getRootPane().revalidate();
getRootPane().repaint();
Please help. I can't believe it has to be this difficult to draw a little line.
Thanks.

I have a little more insight into my problem.
I built a sample form Sun (the Map_Line sample). It looks like this:
public class Map_Line extends Applet
private BufferedImage bi;
public Map_Line()
setBackground(Color.white);
Image img = getToolkit().getImage("bld.jpg");
try
MediaTracker tracker = new MediaTracker(this);
tracker.addImage(img, 0);
tracker.waitForID(0);
catch (Exception e)
int iw = img.getWidth(this);
int ih = img.getHeight(this);
bi = new BufferedImage(iw, ih, BufferedImage.TYPE_INT_RGB);
Graphics2D big = bi.createGraphics();
big.drawImage(img, 0, 0, this);
public void paint(Graphics g)
Graphics2D g2 = (Graphics2D) g;
int w = getSize().width;
int h = getSize().height;
int bw = bi.getWidth(this);
int bh = bi.getHeight(this);
g2.drawImage(bi, null, 0, 0);
g2.setColor(Color.white);
g2.setStroke(new BasicStroke(5.0f));
g2.drawLine(10, 10, bw - 10, bh - 10);
public static void main(String[] s)
WindowListener l = new WindowAdapter()
public void windowClosing(WindowEvent e)
System.exit(0);
Frame f = new Frame("Map_Line");
f.addWindowListener(l);
f.add("Center", new Map_Line());
f.pack();
f.setSize(new Dimension(350, 250));
f.show();
Note how the drawing is done in paint. This applet works just fine for me.
The difference is that I'm trying to use the BufferedImage to get my Graphics2D object where as this one gets it from paint (casts Graphics to Graphics2D).
This applet works just fine, but if you try to use the Graphics2D that comes back from the BufferedImage, it doesn't work!.
For example, if I create a member variable:
Graphics2D big;
And then in paint do this:
//Graphics2D g2 = (Graphics2D) g;
Grahics2D g2 = big;
It no longer works!
So, it looks like I need to use something other than the
BufferedImage.createGraphics() to get the Graphics2D object I need.
Does this seem right?
Thanks!

Similar Messages

  • How to draw and modify double lines with Adobe Illustrator?

    I need tot draw roadmaps. This should be easy using the pen tool, but my problem is that I cannot find a way to draw double lines with this tool. I have seen many fancy border styles and patterns. Some do have double or even quadruple lines, but the problem is than that they have an offset from the vector line and the space in between the two lines (the edges of the road) cannot be filled. Somewere I also found some pens called 'Double line 1.1' to 'Double line 1.6' but they also had an offset from the vector and I could not chance the size of the lines and the interval in between them independently.
    What I am looking for is a way to draw two lines in parallel and have the option tot fill the space in between with a color or even a pattern.
    The color and size of the lines should be changeable to make a distinction between several types of road.
    Is there an existing set of pencils for this purpose? It would be nice to be able to draw not only roads, but also railways and rivers!
    I am surely not the first person who needs to do this?
    I use AI version 6

    Jacob,
    Thanks for the answer. I have been searching for a solutions for a long
    time, but today I found the solution on a forum (not on this one). That
    solution is exactly as you described below, i.e. using a coloured line and a
    narrower white line on top of the first one. My problem was that I did not
    know how to create a custom brush based on the two lines. Now I know how to
    do that. However, I still have the problem. I can now draw double lines and
    I can change the color of the background line (the coloured one) but I
    cannot change the white colour of the narrower line. I assume that I have to
    completely redefine a new brush when I need to change that colour too.
    Regards,
    Rob Kole
    Van: Jacob Bugge [email protected]
    Verzonden: donderdag 28 maart 2013 17:04
    Aan: RKOLE
    Onderwerp: How to draw and modify double lines with Adobe
    Illustrator?
    Re: How to draw and modify double lines with Adobe Illustrator?
    created by Jacob Bugge <http://forums.adobe.com/people/Jacob+Bugge>  in
    Illustrator - View the full discussion
    <http://forums.adobe.com/message/5186535#5186535

  • How to draw a straight  dotted line on Bar chart at 70%?

    Hi
    Could you please let me know how to draw a straight dotted line on BAR CHART at 70%?
    Thank you

    Hi,
    This may vary depending on what version of crystal you are using.
    Right click on the graph & go to 'chart options' & choose 'Grids'
    In the grids pane go to the grids tab.  From there check the 'draw custom line at' and specify where you want to draw the custom line.
    Once the line is drawn highlight the line, right click and go to 'chart options' & 'selected item'.
    select what format you want the line to look like (choose the dashed one).
    good luck!

  • How to draw a globe with lines of lattitude and longitude?

    I'm using CS4 on a Mac.
    Can anyone tell me how to draw a globe with a grid? I need 7 lines of latitude and 40 lines of longitude (i.e. separated by 9 degrees). I would like to have each segment of the grid defined as shape so I can fill each one with a different color.

    Maybe this way can help.....

  • How to draw a simple pie chart?

    I want to draw a simple pie chart.
    I was wondering whether there already exists a method to allow me to do that in SDK 1.4.2. I saw on the net a method getPieChart( ).
    Do you know if its incorporated in SDK1.4.2 and how to draw the pie chart using this method. Can anybody guide me?
    Thanks.

    Have a look in your demos folder in your SDK, for example:
    C:\j2sdk1.4.2_04\demo\applets\GraphicsTest

  • How to draw a box before Line Item in the Main Window  In SapScript

    Hi guys,
    I am trying to draw a box before Line items to be printed but it overwriting the Line Item can anyone help me in this.
    Thanks,
    Ramesh

    Hi ramesh,
    check this:
    /E   TOP
       plant,,status,,GROUP,,Profit,,Min.Size,,Max.Size
    /:   BOX FRAME 10 TW
    /:   BOX YPOS 2 CH HEIGHT 0 CM FRAME 10 TW
    /*   BOX XPOS 15 CH WIDTH 0 CM FRAME 10 TW
    /*   BOX XPOS 28 CH WIDTH 0 CM FRAME 10 TW
    /*   BOX XPOS 35 CH WIDTH 0 CM FRAME 10 TW
    /*   BOX XPOS 42 CH WIDTH 0 CM FRAME 10 TW
    /*   BOX XPOS 55 CH WIDTH 0 CM FRAME 10 TW
    /E   NEW
       &IT_SCRIPT-pstat(C)&,,&IT_SCRIPT-werks(C)&,,
    =    &IT_SCRIPT-EKGRP(C)&,,&IT_SCRIPT-PRCTR(C)&,,
    =    &IT_SCRIPT-MINLS(C)&,,&IT_SCRIPT-MAXLS(C)&
    /:   BOX FRAME 10 TW
    /:   BOX YPOS 2 CH HEIGHT 0 CM FRAME 10 TW
    /:   BOX XPOS 15 CH WIDTH 0 CM FRAME 10 TW
    /:   BOX XPOS 28 CH WIDTH 0 CM FRAME 10 TW
    /:   BOX XPOS 35 CH WIDTH 0 CM FRAME 10 TW
    /:   BOX XPOS 42 CH WIDTH 0 CM FRAME 10 TW
    /:   BOX XPOS 55 CH WIDTH 0 CM FRAME 10 TW
    the corresponding code in abap editor:
    CALL FUNCTION 'OPEN_FORM'
      EXPORTING
       APPLICATION                       = 'TX'
       ARCHIVE_INDEX                     =
       ARCHIVE_PARAMS                    =
       DEVICE                            = 'PRINTER'
       DIALOG                            = 'X'
        FORM                              = 'ZFINAL_13688'
        LANGUAGE                          = SY-LANGU
      EXCEPTIONS
        CANCELED                          = 1
        DEVICE                            = 2
        FORM                              = 3
        OPTIONS                           = 4
        UNCLOSED                          = 5
        MAIL_OPTIONS                      = 6
        ARCHIVE_ERROR                     = 7
        INVALID_FAX_NUMBER                = 8
        MORE_PARAMS_NEEDED_IN_BATCH       = 9
        SPOOL_ERROR                       = 10
        CODEPAGE                          = 11
        OTHERS                            = 12
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'WRITE_FORM'
                        EXPORTING
                          ELEMENT                        = 'TOP'
                        FUNCTION                       = 'SET'
                          TYPE                           = 'TOP'
                          WINDOW                         = 'MAIN'
                        EXCEPTIONS
                          ELEMENT                        = 1
                          FUNCTION                       = 2
                          TYPE                           = 3
                          UNOPENED                       = 4
                          UNSTARTED                      = 5
                          WINDOW                         = 6
                          BAD_PAGEFORMAT_FOR_PRINT       = 7
                          SPOOL_ERROR                    = 8
                          CODEPAGE                       = 9
                          OTHERS                         = 10
                       IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
                       ENDIF.
    LOOP AT IT_SCRIPT.
      CALL FUNCTION 'WRITE_FORM'
       EXPORTING
         ELEMENT                        = 'NEW'
        FUNCTION                       = 'SET'
         TYPE                           = 'BODY'
         WINDOW                         = 'MAIN'
       EXCEPTIONS
         ELEMENT                        = 1
         FUNCTION                       = 2
         TYPE                           = 3
         UNOPENED                       = 4
         UNSTARTED                      = 5
         WINDOW                         = 6
         BAD_PAGEFORMAT_FOR_PRINT       = 7
         SPOOL_ERROR                    = 8
         CODEPAGE                       = 9
         OTHERS                         = 10
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      ENDLOOP.
    CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
      RESULT                         =
      RDI_RESULT                     =
    TABLES
      OTFDATA                        =
    EXCEPTIONS
       UNOPENED                       = 1
       BAD_PAGEFORMAT_FOR_PRINT       = 2
       SEND_ERROR                     = 3
       SPOOL_ERROR                    = 4
       CODEPAGE                       = 5
       OTHERS                         = 6
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    regards,
    keerthi.

  • How to draw a simple line chart using GRAPH_MATRIX_2D function

    Hello,
    can anyone help me with that function please,
    i couldn't draw a line graph with three data series, i mean with three lines in the graph.
    i want to the chart to be drawn as line graph at the beginning, i shouldn't have to change the chart type later,
    can anybody send me a sample code that does what i want.
    i am expecting your answers,
    thanks.
    Note: all answers will be pointed.

    Hi Ali,
    please refer to my reply [here|Re: drawing 2d line chart problem, urgent please!!!] and skip this thread. This is a copy of the other request.
    Regards
    Matthias

  • How to draw and copy a line?

    I would like to draw a line in a XYLineChart and then copy this line, in order to get this result
    [http://s14.postimage.org/4cip47ult/A02519.png]
    First left mouse click on point 1, then second mouse click on point 2: my goal is to have now a copy (clone) of this line (same lenght, same slope) that I can place anywhere on the chart, in this example by a third left mouse click on point 3.
    How to do this?
    Here is the code to draw a line on the chart
    import javafx.application.Application;
    import javafx.event.EventHandler;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.chart.CategoryAxis;
    import javafx.scene.chart.LineChart;
    import javafx.scene.chart.NumberAxis;
    import javafx.scene.chart.XYChart;
    import javafx.scene.control.Label;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.BorderPane;
    import javafx.scene.layout.Pane;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.Line;
    import javafx.scene.shape.LineTo;
    import javafx.scene.shape.MoveTo;
    import javafx.scene.shape.Path;
    import javafx.stage.Stage;
    public class Lines extends Application {
    Path path;
    public static void main(String[] args) {
        launch(args);
    @Override
    public void start(Stage stage) {
        final CategoryAxis xAxis = new CategoryAxis();
        final NumberAxis yAxis = new NumberAxis(0.5, 9.5, 0.1);
        yAxis.setTickUnit(1);
        //yAxis.setPrefWidth(35);
        yAxis.setMinorTickCount(10);
        yAxis.setTickLabelFormatter(new NumberAxis.DefaultFormatter(yAxis) {
            @Override
            public String toString(Number object) {
                String label;
                label = String.format("%7.2f", object.floatValue());
                return label;
        final LineChart<String, Number> lineChart = new LineChart<String, Number>(xAxis, yAxis);
        lineChart.setCreateSymbols(false);
        lineChart.setAlternativeRowFillVisible(false);
        lineChart.setLegendVisible(false);
        XYChart.Series series1 = new XYChart.Series();
        series1.getData().add(new XYChart.Data("Jan", 1));
        series1.getData().add(new XYChart.Data("Feb", 4.5));
        series1.getData().add(new XYChart.Data("Mar", 2.5));
        series1.getData().add(new XYChart.Data("Apr", 6.5));
        series1.getData().add(new XYChart.Data("May", 4.5));
        series1.getData().add(new XYChart.Data("Jun", 8.5));
        series1.getData().add(new XYChart.Data("Jul", 6.5));
        BorderPane bp = new BorderPane();
        bp.setCenter(lineChart);
        Scene scene = new Scene(bp, 800, 600);
        lineChart.setAnimated(false);
        lineChart.getData().addAll(series1);
        Lines.MouseHandler mh = new Lines.MouseHandler( bp );
        bp.setOnMouseClicked( mh );
        bp.setOnMouseMoved( mh );
        stage.setScene(scene);
        path = new Path();
        path.setStrokeWidth(1);
        path.setStroke(Color.BLACK);
        scene.setOnMouseDragged(mh);
        scene.setOnMousePressed(mh);
        bp.getChildren().add(path);
        stage.setScene(scene);
        stage.show();
    class MouseHandler implements EventHandler< MouseEvent > {
    private boolean gotFirst    = false;
    private Line    line;
    private Pane    pane;
    private double  x1, y1, x2, y2;
    public MouseHandler( Pane pane ) {
        this.pane = pane;
    @Override
    public void handle( MouseEvent event ) {
        if( event.getEventType() == MouseEvent.MOUSE_CLICKED ) {
            if( !gotFirst ) {
                x1 = x2 = event.getX();
                y1 = y2 = event.getY();
                line = new Line( x1, y1, x2, y2 );
                pane.getChildren().add( line );
                gotFirst = true;
            else {
                line = null;
                gotFirst = false;
            else {
                if( line != null ) {
                    x2 = event.getX();
                    y2 = event.getY();
                    // update line
                    line.setEndX( x2 );
                    line.setEndY( y2 );
      }Thanks all.
    Edited by: 932518 on 16-nov-2012 1.54

    Sorry for the simplistic question - but where are the photos you are intending to add going to be coming from?
    If it is the pictures you take - then it almost seems like you need to first upload them to a cloud service like OneDrive or iCloud and then provide the URL to Google Maps

  • How to draw a shape with line tool then fill with colour

    How can i draw a shape with the line tool and then fill it with colour

    Click and drag from one anchor point to the next, making sure that each new line segment begins where the last one ended. The Line Tool will snap onto the anchors.
    Once you're done creating what looks like a closed path, the lines are still separate objects. To combine them into one path, select them all and press Ctrl/Cmd+J (for Join) or via the menu select Object > Path > Join.
    The Pen Tool can be used in a similar manner, but each segment will be a continuation rather than a separate object. The last (closing) click will be indicated by a tiny circle on the mouse pointer.
    If you make an open path, Ai will still "fill" it with a fill color by assuming a straight path between the last open anchor points. Individual straight paths, however, such as those drawn by the line tool, have no "inside", so they won't show the fill color even if you have assigned one.
    Allen

  • How to make a simple 2D line, appear to have perspective?

    Hi,
    I have a 2D line drawing, similar to the form of the attatched. The attatched is not mine however, it is what I want to achieve (exactly, i.e the angle, the orientation etc.)
    I've played with the 3D rotate in AI as well as the ectrude and bevel. I can't get anything like what I have posted below . I use the preview then rotate the '3D box' in small increments but it never looks right, either that or it becomes distorted.
    I may be asking for a lot here, but looking at the attatched can you guess the angle that I should used if I want to rotate my 2d lines into a perspective, it's the exact angle I want!
    Thank You

    I've attatched 3 images, all that are drawn in AI on the same document. I'm not sure wether it will look correctly, with some other elements I'm adding but it's worth a try.
    Thank You

  • How to draw vertical and horizontal lines on chart as shown in image below%3F

    Hi,
    Is it possible to draw a horizontal line (63% as shown in image or 15.75 and vertical line at intersection to X axis) in chart.
    please suggest code
    Regards
    mms79

    Have you tried using cursors?  Right click on the chart and show the cursor legend.  Then right click the legend and add a cursor. 

  • 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

  • Draw a continuous dashed line

    I suspect the answer is simpler than I expect, but it has been eluding me none the less, so I've been wondering how to draw a continuous dashed line, as per the title. I'm cleaning up a photo I made a while back and would to create a flowing line and set it to be dashed as you can do in Adobe Illustrator, where you could draw a line and edit the line type to be dashed, or dotted, or a bunch of snowflakes or what have you.
    I can hear you asking, "why not just use Illustrator?". Well, I do not have it. I used Illustrator and Photoshop CS6 in an art class senior year of high school, but it has been a little while so I'm trying to re-learn the ropes a little bit.

    I was able to use Filter - Other - Minimum with a particular set of parameters, followed by a Median filter to smooth the results, to get something not unlike what you showed, but given that I derived the parameters empirically from your very limited image, at exactly the size given, I wouldn't be surprised if the characteristics of this sequence of operations are way off from what you want.
    In any case, if you'd like to see this "proof of concept" action to understand what I did, here it is:
    http://Noel.ProDigitalSoftware.com/ForumPosts/BlackFindingAction.zip
    Keep in mind this will be VERY sensitive to the thresholds and sizes chosen for the various steps, and is crafted to work at an image with just the resolution you showed above.
    -Noel

  • How to draw only straight line instead of angled one??

    Dear friends,
    I saw a very good code posted by guru here(I think is camickr),
    But I tried to change it and I hope to draw only straight line instead of angled one, can you help how to do it??
    Thanks so much.
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class DrawingArea extends JPanel
         Vector angledLines;
         Point startPoint = null;
         Point endPoint = null;
         Graphics g;
         public DrawingArea()
              angledLines = new Vector();
              setPreferredSize(new Dimension(500,500));
              MyMouseListener ml = new MyMouseListener();
              addMouseListener(ml);
              addMouseMotionListener(ml);
              setBackground(Color.white);
         public void paintComponent(Graphics g)
              // automatically called when repaint
              super.paintComponent(g);
              g.setColor(Color.black);
              AngledLine line;
              if (startPoint != null && endPoint != null)
                   // draw the current dragged line
                   g.drawLine(startPoint.x, startPoint.y, endPoint.x,endPoint.y);
              for (Enumeration e = angledLines.elements(); e.hasMoreElements();)
                   // draw all the angled lines
                   line = (AngledLine)e.nextElement();
                   g.drawPolyline(line.xPoints, line.yPoints, line.n);
         class MyMouseListener extends MouseInputAdapter
              public void mousePressed(MouseEvent e)
                   if (SwingUtilities.isLeftMouseButton(e))
                        startPoint = e.getPoint();
              public void mouseReleased(MouseEvent e)
                   if (SwingUtilities.isLeftMouseButton(e))
                        if (startPoint != null)
                             AngledLine line = new AngledLine(startPoint, e.getPoint(), true);
                             angledLines.add(line);
                             startPoint = null;
                             repaint();
              public void mouseDragged(MouseEvent e)
                   if (SwingUtilities.isLeftMouseButton(e))
                        if (startPoint != null)
                             endPoint = e.getPoint();
                             repaint();
              public void mouseClicked( MouseEvent e )
                   if (g == null)
                        g = getGraphics();
                   g.drawRect(10,10,20,20);
         class AngledLine
              // inner class for angled lines
              public int[] xPoints, yPoints;
              public int n = 3;
              public AngledLine(Point startPoint, Point endPoint, boolean left)
                   xPoints = new int[n];
                   yPoints = new int[n];
                   xPoints[0] = startPoint.x;
                   xPoints[2] = endPoint.x;
                   yPoints[0] = startPoint.y;
                   yPoints[2] = endPoint.y;
                   if (left)
                        xPoints[1] = startPoint.x;
                        yPoints[1] = endPoint.y;
                   else
                        xPoints[1] = endPoint.x;
                        yPoints[1] = startPoint.y;
         public static void main(String[] args)
              JFrame frame = new JFrame("Test angled lines");
              frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
              DrawingArea d = new DrawingArea();
              frame.getContentPane().add( d );
              frame.pack();
              frame.setVisible(true);
    }

    Change the AngledLine class to store two points instead of 3 points (I would rename the class to be StraightLine). The code is much simpler because you just store the starting and ending points and you don't need to calculate the middle point.

  • How to draw a line using JSP?

    Does anyone know how to draw a line using a JSP? Any help is much appreciated.
    Regards,
    Navin Pathuru.

    Graphics classes are useless in JSP files; you can only output HTML tags to the client browser.
    You should be able to give just about any presentation look that you need with HTML and CSS. Have you played with styles? Here's a simple example that works in IE 5+ and Netscape 4.7:
    <HTML>
    <HEAD>
    <STYLE>
    .box {
    border-style:solid;
    border-color:black;
    border-right-width: 1px;
    border-top-width: 1px;
    border-left-width: 1px;
    border-bottom-width: 1px;
    .line {
    border-right-width: 1px;
    border-top-width: 0px;
    border-left-width: 0px;
    border-bottom-width: 0px;
    border-style: solid;
    border-color: red;
    width:1pt;
    height:100%;
    </STYLE>
    </HEAD>
    <BODY>
    <TABLE CELLPADDING=1 CELLSPACING=0 WIDTH=100>
    <TR><TD ALIGN=CENTER><SPAN CLASS="box">Field One</SPAN></TD></TR>
    <TR HEIGHT=50><TD ALIGN=CENTER><SPAN CLASS="line">�</SPAN></TD></TR>
    <TR><TD ALIGN=CENTER><SPAN CLASS="box">Field Two</SPAN></TD></TR>
    <TR HEIGHT=50><TD ALIGN=CENTER WIDTH=50%><SPAN CLASS="line">�</SPAN></TD></TR>
    <TR><TD ALIGN=CENTER><SPAN CLASS="box">Field Three</SPAN></TD></TR>
    </TABLE>
    </BODY>
    </HTML>
    Have fun!

Maybe you are looking for

  • The document could not be saved.  Write error.

    I have a portfolio with a OneNote section embedded in the portfolio.  When I attempt to save the document, I get an error message stating, "The document could not be saved.  Write error."  The document is stored on a network drive.  Other users are a

  • How come the "save as" dialog box keeps popping up whenever I try to use alt codes?

    I type with diacritical marks regularly but recently, when I press and hold Fn + Alt + the numerical code, it brings up the "save as" dialog box. This seems to be a Firefox-specific issue because this doesn't happen on Microsoft Word + other programs

  • DataGroup Drag Enter Issue/Question (FB4)

    I'm working with Flash Builder 4, Flex 4 and I'm having difficulty in getting the drag events to fire, in particular the Drag Enter event. I have 2 dataGroups with a custom layout and itemRenderer. I'm attempting to drag an element from one DataGroup

  • OWA setting for additional exchange server 2010

    Hi, I have exchange 2010 owa setup with public ip address for activesync, owa etc. I just installed a second exchange 2010, How does OWA going to work for this second exchange? I would like it to use the same certificate and ip from the first exchang

  • What is the maximum capacity of memory card suppor...

    Hi Friends! Please can any one tell me What is the maximum capacity of memory card supported by 6233???