Drow dot-style table border in JEditorPane (editing HTML)

Hi,
I want to extend JEditorPane to display table border in dot style when
displaying tables with border="0". (like most HTML editors)
I extended HTMLEditor and it's ViewFactory and now maybe I have to write extended TableView class for rendering my tables.
I tried to do that, but without any success.
Can any one advice my how can I rewrite the paint method or some kind of example how to make it.
Thanks in advance.

Hi, i had advantage but i did it in a very stupid way. I copy/pased the
original source and modified some inner classes.I do not remember exactlly what i did (right now i do not have the source).
I modified BoxView and BoxPainter inner classes to achieve this effect.
When i have the source I will paste it here.
Have fun.

Similar Messages

  • Dot-Matrix table border print

    Dear gurus,
    I want my output to print on Dot-Matrix printer,
    Everything is fine till i try to print a table with outline in it.
    I mean if i use a outline or a border for my table the whole table is displayed as a big black window.
    Now if i don't use the border or outline then the whole data of the table is printed without the border.
    Please help me to solve the issue.
    Regards,
    Roshan Lilaram.

    Can you try to print in a different printer, if the error persists then the problem is in the smartform, otherwise raise a note to SAP regarding this. I think that there is problem is with the page format in which u are taking the printout.
    OR
    Can you check if you have selected the framed border in the table border select pattern.
    Hope That Helps
    Anirban M.

  • FF not showing table border style

    I have a webpage with css table border style dotted. It shows up in IE but there is just a line around the table in FF. Is there a way to make it show up? Many thanks.
    table.mytable {
    border-width: 6px;
    padding: 15px;
    border-style: dotted;
    border-color: #88aa96;}

    You need that } after background-color:#e8e5da;
    By removing it you introduced another error:
    <blockquote>Warning: Expected declaration but found '.'. Skipped to next declaration.
    Source File: http://www.cbrundage.net/cleeve/nature.htm
    Line: 33
    </blockquote>
    <pre><nowiki>table.mytable {
    border-width: 6px;
    padding: 15px;
    border-style: dotted;
    border-color: #88aa96;
    background-color:#e8e5da; /* missing } /*
    .back td{background-color:#e8e5da;
    </nowiki></pre>
    Instead of background-size you probably mean background-position:
    <blockquote>Warning: Unknown property 'background-size'. Declaration dropped.
    Source File: http://www.cbrundage.net/cleeve/nature.htm
    Line: 15</blockquote>
    <pre><nowiki>background-attachment:fixed; background-size: 100% 100%;
    </nowiki></pre>

  • Smartforms table border lines not printing (URGENT)

    HI,
    I am trying to print samrtform table border lines on Epson dot matrix printer, in print preview it showing table borders as thick black lines, while printing it not printing lines. It is printing data correctly. Can any one suggest the soution, it is very urgent.
    Regards,
    MAHESH
    Edited by: MAHESH FADNAVIS on Apr 7, 2008 11:53 AM

    Can you try to print in a different printer, if the error persists then the problem is in the smartform, otherwise raise a note to SAP regarding this. I think that there is problem is with the page format in which u are taking the printout.
    OR
    Can you check if you have selected the framed border in the table border select pattern.
    Hope That Helps
    Anirban M.

  • Remove table border and grid lines

    all,
    i have and adf faces table on my page and I would like to get rid of the table border and grid lines. i tried using the inline style properties of the table and columns in the table (border-style:none;), and the GridVisible = false property of the columns, but the lines still appear.
    any suggestions?
    paul

    Hi,
    We can design frames in so many ways so check all those one by one
    Check the output options tab in all your window, table & text nodes.there check whether Box & Shading is check or not if it is check remove it.
    sometimes for vertical lines we create seperate windows with low width like 0.01 cm & in its output options check 'box and shading' frame & this window postions are as you required & you can adjust the line in the preview option of box & shading in the output options.
    & in the table node table tab check the select pattren here patterns are again two types with frame & without frame.
    Let me know your exact requirment & your trails if its not working.
    Thanks,
    Phani.
    Edited by: phani kumar on Aug 26, 2008 1:56 PM

  • Table border is not over-riding cell formatting

    I'm using InDesign CS4. I've created a table and styled it with a Table Style which uses several cell styles. I have specified a table border in Table Setup, but it does not appear on my table. It maintains the formatting in the cells. "Preserve Local Formatting" is grayed out, so I cannot select or deselect it. The only way to get the border to show up is to manually apply a stroke using the Stroke palette. I do not want to use this solution. I want it to work in the Table Style.
    A similar problem was posted but not answered here: http://livedocs.adobe.com/en_US/InDesign/5.0/help.html?content=WSa285fff53dea4f86173837510 01ea8cb3f-6fbf.html
    Please help!

    Here is a useful bit of info from the InDesign CS4 online help:
    Formatting precedence in styles
    If a conflict occurs in formatting applied to a table cell, the following order of precedence determines which formatting is used:
    Cell style precedence
    1. Header/Footer 2. Left column/Right column 3. Body rows. For example, if a cell appears in both the header and the left column, the formatting from the header cell style is used.  
    Table style precedence
    1. Cell overrides 2. Cell style 3. Cell styles applied from a table style 4. Table overrides 5. Table styles. For example, if you apply one fill using the Cell Options dialog box and another fill using the cell style, the fill from the Cell Options dialog box is used.
    Mike Witherell in Maryland

  • Edit html in JEDITORPANE

    HEllo friends!
    I need your help, for editing html in editorpane.
    I want to create a textarea in which the user type simple text than select some part of it & makes it bold, italic etc. by using an event of button or popup any thing.
    So guide me that which textcomponent provide this , i already used JEditorPane, and insert tags manually but it is not good, if i try to overlap the tags og italic & bold.
    So please help me is this any way pre built to provide these func. of add html tags in jeditorpane & use see the render html test in area.
    than please provide me. at [email protected]
    Thanks
    import javax.swing.*;
    import javax.swing.text.*;
    import javax.swing.text.html.*;
    import javax .swing.border.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.IOException;
    public class TestJEditor extends JFrame {
    Panel p1 = new Panel();
    JButton b1 = new JButton("BOLD");
    JButton b2 = new JButton("ITALIC");
    BorderLayout borderLayout1 = new BorderLayout();
    JScrollPane jScrollPane1 = new JScrollPane();
    JEditorPane jEditorPane1 = new JEditorPane();
    HTMLEditorKit editorKit = new HTMLEditorKit();
    DefaultEditorKit defaultKit = new DefaultEditorKit();
    public TestJEditor() {
    super("Note");
    this.getContentPane().add(p1);
    //jEditorPane1.setEditable(false);
    jEditorPane1.setEditorKit(editorKit);
    p1.setLayout(null);
    p1.add(jScrollPane1);
    jScrollPane1.setBounds(10, 10, 350, 100);
    jScrollPane1.getViewport().add(jEditorPane1, null);
    b1.setBounds(370, 10, 100, 20);
    p1.add(b1);
    b2.setBounds(370, 40, 100, 20);
    p1.add(b2);
    b1.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e)
         // jEditorPane1.setEditorKit(defaultKit);
         String str = jEditorPane1.getText();
         System.out.println(str);
         String temp = jEditorPane1.getSelectedText();
         if(temp.indexOf("<B>") != 0)
         int start = str.indexOf(temp);
         int end = start + temp.length();
         System.out.println("start "+start+" end "+end);
         str = str.substring(0,start)+"<B>"+str.substring(start,end)+"</B>"+str.substring(end);
         jEditorPane1.setText(str);
         //System.out.println(jEditorPane1.getText());
    b2.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e)
         String str = jEditorPane1.getText();
         System.out.println(str);
         String temp = jEditorPane1.getSelectedText();
         System.out.println("Italic");
         int start = str.indexOf(temp);
         int end = start + temp.length();
         str = str.substring(0,start)+"<I>"+str.substring(start,end)+"</I>"+str.substring(end);
         jEditorPane1.setText(str);
    public static void main(String[] args) {
    JFrame frame = new TestJEditor();
    frame.setSize(600,500);
    frame.addWindowListener(new WindowAdapter()
    public void windowClosing(WindowEvent e)
    System.exit(0);
    //frame.pack();
    frame.show();
    }

    Hi kashif10,
    JEditorPane or JTextPane are the classes to use. You can have both bold and italic for a text portion.
    See http://java.sun.com/products/jfc/tsc/articles/ for an overview of articles covering the swing text package.
    Or try application SimplyHTML at http://www.lightdev.com/template.php4?id=3 it is open source and has a lot of documentation too.
    Ulrich

  • Table border

    hi!
    I have a table in epub of one row and 2 columns.
    How can I modify the table with sigil to obtain: table width 100%, first column width 20%, stroke only below the second column?
    For example: I would like to obtain table like this below:
    Name ________________________________________
    thanks in advance
    p.s. I export epub from InDesign CS6 and after I use sigil to change codes.

    In a new document in sigil I wrote:
    <table width="100%">
      <tr>
      <td>Name</td>
      <td style="border-bottom-style:solid; border-bottom-width:1pt;width:90%"></td>
      </tr>
      </table>
    and it works fine.
    But in an existing document, which already contains tables, I have to create specific table style  in css and than I have to associate this style to the table.
    Does anyone know how to complete this?
    Thank you in advance

  • Table border thickness in PDF

    Hi All,
    I have developed a report which contains multiple tables. The table borders are
    rendered with different weights(thickness) in PDF output. In the RTF output the table
    border is of the same thickness. In PDF, this issue is also found the cell border also.
    Please let me know if there is an option to avoid this.
    Thanks in advance,
    Sandesh

    Hi Sandesh,
    Does the output still look incorrect once the report has been printed. Something else to consider is if you are using nested tables, and both the inner and outer tables have a border set, in the PDF the lines will double up, but it will look fine in an RTF.
    If this is the case, then the solution is to take the border off either the inner or outer table.
    I hope this helps.
    Regards,
    Cj

  • Record list: add table border

    Using the generator preference "Record list: add table border". I have a problem getting this to work on a single module. The module will not get a border regardless of the setting (Yes/No).
    On a different module in the same application system the preference does work.
    What could be the problem?

    I think what is being asked is "How do I expose a database view as a schema table in Configuration Manager?"
    This is accomplished by creating a database view within the WCC database schema (and with the WCC schema user as the view owner). The view then will appear as a table in the "table" tab in Configuration Manager.
    One caveat in 11g is that the user created by RCU does not have any privileges to read/create views in its own schema. You may need to grant privileges to views for the WCC schema user before this will work.

  • HTML Editor Table border colors, JavaScript Integration

    Hi,
    i have two questions regarding the HTML Editor in KM:
    1) How can I change the border color from tables?
    I have tried to change it with the adjustment from Tables
    in Theme Editor, but nothing happens.
    2) Can I add JavaScript Coding in HTML-Editor?
    For example to create icons with navigation (back, home)
    or print function.
    Thanks in advance
    Sascha

    Hi Sascha,
    You might be using the HTML Editor in KM for a particular KM Document right?
    Anyways, regarding question 1 you can change the border color of a html table using the bordercolor attribute e.g. bordercolor = "red"
    Regarding question 2, Yes you can add javascript code to your html; but please use the Text editor; its reliable in these matters.
    Regards,
    Prem.
    SAP GDC.

  • Table Border Colors Not Corresponding to CSS

    Having an issue with tables not displaying their designated border colors. I think something is over-riding in CSS, but don't know how. Here is the page. I've assigned it a new class w/background-color, but it's not showing up - - just transparent borders. Thoughts?
    .table{
    display:inline;
    border-color:#000000}

    seanmc81 wrote:
    That worked for the border, thanks. Although I'm trying to get each cell outlined in #000000 as well. Would i assign something like
    border-right-color: 1px solid #000000;
    border-left-color: 1px solid #000000}
    as well?
    .table {
    border-collapse: collapse;
    .table td {
    border: 1px solid #000;

  • Table border colors & Firefox/Safari

    I've noticed that when I set a table border color (using the
    Property Inspector), the color displays only in IE. Firefox and
    Safari do not display the border color like IE does. Why is this?
    How do I work around this--CSS?

    "csbridges" <[email protected]> wrote in
    message
    news:eushlq$5q7$[email protected]..
    > Yeah, that's what I thought. Thanks.
    >
    > Any idea, though, why FF doesn't recognize the HTML
    table border-color?
    > Seems odd that it wouldn't recognize this.
    Firefox recognises:
    .table {border: 1px solid #black}
    black being the border color.... so not sure why you say that
    it doesn't
    recognise it :)
    Nadia
    Adobe® Community Expert : Dreamweaver
    CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    ~ Customisation Service Available ~
    http://www.csstemplates.com.au
    ~ Forum Posting Guidelines ~
    http://www.adobe.com/support/forums/guidelines.html
    CSS Tutorials for Dreamweaver:
    http://www.adobe.com/devnet/dreamweaver/css.html

  • Table border color?

    In GoLive CS, my GoLive Help no longer works with Snow Leopard. So I'm posting here to ask how to make a table border a color, or is it black only? I've checked the Color box next to the Border field and selected a color, but the border stays black. Thanks.

    The color in the Inspector is for the table background, not the border.
    You may want to explore CSS table borders.
    If you are set on a non-CSS approach, nest one table within another with one row, one column. Color the outside table's background and set the inside table to have some cell spacing.

  • Is anyone else having table border rendering problems in Firefox 3.6.7 for Mac?

    I recently applied a Mac Firefox update (not sure which one, but I'm currently on 3.6.7) that introduced some strange table border rendering behaviors. Long story short, on certain pages that I visit regularly, the right-most table borders are now rendering erratically. The problem does not occur in Safari or Chrome on Mac, nor does it occur in IE or Firefox on Windows. Seems specific to Mac Firefox.
    To reproduce, using Firefox 3.6.7 on Mac, browse to the following URL:
    http://www.relativityreport.com/?page_id=963
    ...and note the erratic rendering of the right-most table cells on the page (you may need to scroll down to the bottom-most table to see the problem...but not always). They should be gray, but often appear blank (not necessarily all at once). Refresh the page a few times and note how the missing borders randomly appear and disappear. Now click your browser's back button. When the previous page has loaded, click the forward button to return to the affected URL. Note now how all cells render correctly.
    Thanks!

    I am also getting a similar error. When I increase the border width to 2px or more it becomes sort of eroded.I am using windows 7 firefox 4. Borders seem fine in all other major browsers including IE9.
    [http://year3.masterspokerleague.com/index.php?option=com_poker&view=overall&season_id=2 Example] http://year3.masterspokerleague.com/index.php?option=com_poker&view=overall&season_id=2
    Any ideas?

Maybe you are looking for

  • Compatibility Mode for itunes 10.3 due to error 2096

    i have uninstalled and reinstalled itunes several times and still get the "error 2096" message. followed all steps as directed for removal. does this have anything to do with the compatility mode? should it be checked or unchecked? can anyone help?

  • HT204088 Payment

    I was hoping someone could tell me how long I have to pay for my iTunes purchase?

  • Query regarding Purchase Org assignment

    Hi All , I have a understanding that PORG assignment to PLANT is ALWAYS MANDATORY to create a purchase order in that plant but assignment of PORG to Company code is not mandatory ( as in case of Company group wide PORG i.e centralized PORG). Is that

  • Can't download from the ovi store app on my 6700 c...

    When i try to download anything it gets up to about 5% and then says "Download/Install failed". I've just updated my phone software in case that is relevant, and this isn't the only problem i'm having.

  • Spectral noisereduction - where is there ANY documentation??

    It seems we live in a world where software is released and nobody documents it anymore. I can't seem to find a single piece of information on Adobe Premiere's Spectral NoiseReduction plugin for Audio. Anyone????