I have no bullets with HTMLEditorKit

I am using JEditorPane, StyleSheet and HTMLEditorKit for simple HTML viewer with css support.
It works fine, but my list does not have bullets !!!! Here is my code:
style = new StyleSheet();
style.addRule("H1{ color: red;font-family: arial, helvetica, sans-serif;font-size: 12 pt;font-weight: bold;text-align: center;}");
style.addRule("H2{color: blue;ont-family: arial, helvetica, sans-serif;font-size: 16 pt;font-weight: bolds;text-align: center;}");
style.addRule("body{line-height : 22px;}");
style.addRule("li {list-style-type: disc;font-size: 12 pt;font-weight: bold;}");
style.addRule("P{font-size: 12 pt;font-weight: normal;margin: 0.5 em;margin-left: 1 em;}");
objHTMLKit = new HTMLEditorKit();
objHTMLKit.setStyleSheet(style);
jep.setEditorKit(objHTMLKit);
jep.setText(strSource);
scroll = new JScrollPane(jep);
when i just set the HTML source right to the JEditorPane, without HTMLEditorKit and CSS it is fine.
Do i have to work on the HTMLEditorKit or it has to do it by default ?????
Everything else is ok and the <li> element is getting bigger or smaller but without bullets.
thanks for any help :)

This phone uses a Sim Card but as I found it's a 3G only phone but if the Sim handles all the phones information Like on a 4G phone the Sim might need to be replaced)  If the card is used for something totally different simply *228 send 1 phone refresh is all that is needed)  but it's best to call customer Service and ask as they can walk you through the steps and it may be you just need to update your PRL  preferred roaming list..
Here is Customer Service's Number:  they open in just a few Hours.. 1-800-922-0204 use Option 3 when ask what you like to do Say you would like to talk to a Representative.. If this is your only phone available to talk on then I recommend a stop by a Local Verizon Comm store for further assistance..
Good Luck Welcome to the Forum.. b33  

Similar Messages

  • Same Image every time in JTextField with HTMLEditorKit and HTMLDocument

    Hi all
    I have a JTextPane with HTMLEditorKit as editorkit and HTMLDocument as document. I am trying to load an html file into the text pane. the html file contains image. When loading first time it is shown perfectly. After I change the image file with other file with the same name(overwrite it) and trying to load the html file again,the image is the first time loaded image. As i think the image is kept somewhere in "cash" or kind of that. But I need to refresh the html every time it is loaded and not to read from "cash".
    And code which i use:
    package client.temp;
    import java.awt.BorderLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.net.MalformedURLException;
    import java.net.URL;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTextPane;
    import javax.swing.text.BadLocationException;
    import javax.swing.text.html.HTMLDocument;
    import javax.swing.text.html.HTMLEditorKit;
    public class TestPanel extends JPanel {
    public TestPanel(File htmlFile) {
    JTextPane textPane = new JTextPane();
    JScrollPane scrollPane = new JScrollPane();
    HTMLEditorKit htmlEditorKit = new HTMLEditorKit();
    HTMLDocument htmlDocument = new HTMLDocument();
    setLayout(new BorderLayout());
    scrollPane.getViewport().add(textPane, null);
    add(scrollPane, BorderLayout.CENTER);
    URL baseUrl = null;
    try {
    baseUrl = htmlFile.getParentFile().toURL();
    } catch (MalformedURLException e) {
    e.printStackTrace();
    htmlDocument.setBase(baseUrl);
    textPane.setEditorKit(htmlEditorKit);
    try {
    FileInputStream fi = new FileInputStream(htmlFile);
    InputStreamReader isr = new InputStreamReader(fi, "UTF8");
    BufferedReader r = new BufferedReader(isr);
    htmlEditorKit.read(r, htmlDocument, 0);
    r.close();
    isr.close();
    fi.close();
    } catch (FileNotFoundException e) {
    e.printStackTrace();
    } catch (IOException e) {
    e.printStackTrace();
    } catch (BadLocationException e) {
    e.printStackTrace();
    textPane.setDocument(htmlDocument);
    public static void main(String[] args) {
    JFrame frame = new JFrame();
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    JButton b = new JButton();
    b.setText("push");
    b.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    TestPanel panel = new TestPanel(new File("c:\\temp\\temp.html"));
    JFrame fShow = new JFrame();
    fShow.getContentPane().setLayout(new BorderLayout());
    fShow.getContentPane().add(panel, BorderLayout.CENTER);
    fShow.setSize(800, 600);
    fShow.setVisible(true);
    frame.getContentPane().add(b);
    frame.pack();
    frame.setVisible(true);
    and here is the html file structure of my temp.html file
    <html>
    <body>
    <p>
    <img src='image01.jpg'>
    </p>
    </body>
    </html>
    the folder in which the temp.html located (in my case c:\\temp\\) contains image01.jpg file too.
    The piece above works correctly when clicking on the button first time.i.e. shows the image01.jpg correctly. After closing the showing frame fShow(not exiting application) and replacement of the image01.jpg by other file named image01.jpg, but with other content and clicking button again shows the first image again.If I exit the application and start again the picture is shown correctly.
    I need this because I am getting images from database while the template is same always.
    Thanks in advance.

    URL baseUrl = null;
    try {
    baseUrl = htmlFile.getParentFile().toURL();
    } catch (MalformedURLException e) {
    e.printStackTrace();
    htmlDocument.setBase(baseUrl);All you want is to defeat the cache. You could do it using random number generation.
    String newURL = htmlFile.getParentFile().toURL().toString();
    String rand = "rand="+new java.utl.Random().nextLong();
    if ( newURL.indexOf("?")>=0)
    newURL +="&"+rand;
    else
    newURL +="?"+rand;
    baseURL = new URL(newURL);
    htmlDocument.setBase(baseURL);
    This will ensure that u are using different url everytime.(well mostly!)

  • I have iWork 09 with a family license. I am unable to install the software on my new Macbook Pro (the message is simply "Installation failed"). I wonder if I need to remove an old computer from the family license, and if so, how?

    I have iWork 09 with a family license. I am unable to install the software on my new Macbook Pro (the message is simply "Installation failed"). I wonder if I need to remove an old computer from the family license, and if so, how?

    Yes, gladly. I am trying to install on a 13" MacBook Pro with OS X 10.8.3. I insert the disk into the SuperDrive. The I work '09 window pops up with two icons: one Tim install and one that says "Read before you install iWork." I double-click on the "Install iWork '09" icon, and a window appears that says, "This package will run a program to determine if the software can be installed." I click "continue" and see "Welcome to the iWork '09 installer." I click on "Continue." The "read me" bullet on the left lights up, and I see "Read before you install. . . ." I click "Continue," then see the software license agreement. When I click on "Continue" again, I am asked to agree, and I do. The window then says, "Standard Install on 'Mackintosh HD" and indicates how much space the program will take.
    I click "Install," enter my password, and the installation begins. It goes through a validating phase and begins "writing files." It indicates that installation will take about 30 minutes (although that number fluctuates). After about four minutes it goes to "cleaning up." Then after just a few seconds, the "Summary" bullet on the left lights up and this message appears: "There were errors with the installation. You may want to try installing again." There is a large yellow triangle with an exclamation point in it, and a bold "The installation failed." Below that appears "The installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance."
    At that point, a "Close" button is pulsating blue at the bottom of the window.
    Sorry for the tedious detail. Anything revealing there?
    Thanks!

  • Can I set it to have no bullet/blue icon for first line on Outline view?

    Goodgrief... After finally figuring out (kind-of) how to place my bullet points with hotkeys, 6 hours later I have iWork 09 with a great outline view! HA!
    Outline will be great if it is customizable. I need the first line to be set at a "normal" margin, and then from there on the tab is increased indents and bullets.
    How can I set it so that when I "shift-tab" enough it returns to the left margin and remains, with procedeing "enter" clicks, and the outline/bullets begin with the FIRST TAB indent?
    THanks!!!!!!!
    Also: can we change the default blue bullets to the same options with bullets in general?

    Hi, we're mixing two different ideas I had. The first idea was to hide certain columns automatically in the same table when I entered print view. The second idea was to create a second table on a separate sheet that automatically replicated the values in the columns from the first table, I just wouldn't make columns for the things I wanted to hide.
    Problem was, with the second idea, I only want to use as many rows as is needed for each quote. I'd like to start each table with just one row, and each time I add a row in the first table, I'd like the second table to automatically add a row.
    This isn't really a crisis (I could just make the second table with 100 rows and delete the unused ones), but my technically-challenged boss is using it, and it would be nice if it worked exactly the way our FileMaker system works.

  • I have a problem with wifi in my iphone 4s, i already try everything and download latest version 7.1(11D167) but wifi switch is not working, its my humble request to Apple support team that pls resolve this problem as soon as possible because

    I have a problem with wifi in my iphone 4s, i already try everything and download latest version 7.1(11D167) but wifi switch is not working, its my humble request to Apple support team that pls resolve this problem as soon as possible because its a prestiage of Apple Company.
    Pls inform me how can i resolve the problem of wifi.

    You have to go to autherized iPhone agent.

  • I "upgraded" to FF4, now it doesnt work properly, wont open pages, will open blank tabs when i click on a link, tried to go back to the older one but that doesnt work now either, have tested it with Safari and it opens everything fine. Any ideas?

    After upgrading to firefox 4 im now having a lot of problems using the browser.
    if i try an open a link in a new tab it will just open up a blank tab, if i click on links or even type in the google search bar at the top it doesnt do anything, it just says "done" and the circle thing stops as if im on the page already, have tested it with Safari doing the same things and Safari works fine. I'd swap but all my bookmarks and passwords are in Firefox so id rather stay with that.
    I tried going back to the older version of firefox (3.5 or something) but seems the bugs are here to stay now.......so.......any ideas? because its really annoying, shouldn't have "upgraded".
    Is there a new patch coming out anytime soon or should i start getting used to Safari?
    Thanks for your help.
    Mark Lavery (Melbourne)

    I would copy over the entire thing if you have room.  With iTunes 10.4 though, you can download any previous iTunes purchases you have made in the past with your current iTunes account.  While in iTunes, look at the left hand side of your screen and select "Purchases" and look at the bottom right corner of the screen and select "Download Previous Purchases".  If you have an iPhone, iPod and/or iPad...you can do the same thing from each device.  Nice new feature...just remember that those ripped CDs need a back-up!!!  Enjoy...

  • Have a  problem with Lightroom 5.4.  Since the program crashed yesterday it won't launch, it comes up with the message "Lightroom encountered an error when reading its preview cache and needs to quit".  "  Lightroom will attempt to fix this problem net ti

    Have a  problem with Lightroom 5.4.  Since the program crashed yesterday it won't launch, it comes up with the message "Lightroom encountered an error when reading its preview cache and needs to quit".  "  Lightroom will attempt to fix this problem next time it launches".  Except that it doesn't, I keep getting the same message and the program closes.  Does anyone know what I  can do to repair it?  Can't back up, can't do anything.

    There are dozens of threads in this forum that describe the fix

  • HT4910 Have two phones with same apple id as I got one for my hubbie .he tried to back up his numbers in I cloud . Our contacts have now merged and neither can delete from our phone without it coming off the other . Any ideas how we can stop this

    Have two iPhones with the same id as I got hubbie one in week and when I got it they asked for email address so I gave the one we use, so when my husband started phone up he just put my password in. When he tried to back his numbers on iCloud they all appeared on my phone and now I can't delete his numbers without them deleting on his phone as well . Any help would be appreciated.

    You'll have to migrate one of the phones to a different account, then delete the other person's data from each account (you can continue to share the same Apple ID for purchasing from the iTunes and app stores). 
    Decide which iPhone will be keeping the current iCloud account.  On the one that will be changing accounts, if you have any photos in photo stream that are not in your camera roll or backed up somewhere else save these to your camera roll by opening the photo stream album in the thumbnail view, tapping Edit, then tap all the photos you want to save, tap Share and tap Save to Camera Roll. 
    Once this is done, go to Settings>iCloud, scroll to the bottom and tap Delete Account.  (This will only delete the account from this phone, not from iCloud.  The phone that will be keeping the account will not be effected by this.)  When prompted about what to do with the iCloud data, be sure to select Keep On My iPhone.  Next, set up a new iCloud account using a different Apple ID (if you don't have one, tap Get a Free Apple ID at the bottom).  Then turn iCloud data syncing for contacts, etc. back to On, and when prompted about merging with iCloud, choose Merge.  This will upload the data to the new account.
    Finally, go to icloud.com on your computer and sign into each iCloud account separately and manually delete the data you don't from each account.

  • I have a family with multiple device (9) can I use same account to sync them without sharing contacts I dont want children to have?

    I have a family with 9 devices (4 iPhones, 2 iPads, and 3 iPods) can I put these on one account, so I can easily manage their devices.  But I do not want to share all information, such as contacts with children or calendars.  Is this possible??? 

    Yes.
    They all need an ID of their own to log into settings > iCloud but they can use the same ID to log into settings > iTunes & App Stores.

  • Have family plan with 250 data which I almost use each month.  Going on vacation and will be on the road for two weeks.  Should I up my data for a month then change back.  Is it worth it or should I just run over and pay the extra 15 per gig?

    have family plan with 250 data which I almost use each month.  Going on vacation and will be on the road for two weeks.  Should I up my data for a month then change back.  Is it worth it or should I just run over and pay the extra 15 per gig?

    Hello mlazaretti. Vacation time is awesome. (Especially a road trip!) Since you will be going out for two weeks, you never know if having extra data may come in handy. I highly recommend switching to the next tier up so this way you have more data. This way it is only $10.00 more versus $15.00, and you dont have to worry about overages. Then change back at the start of the next billing cycle.
    If you need help making this change let us know! Have a safe trip!
    NicandroN_VZW
    Follow us on twitter @VZWSupport

  • I have a problem with the sync between iTunes and ipad2. I can not see the files in iPad. Help me please.

    I have a problem with the sync between iTunes and ipad2. I can not see the files in iPad. Help me please.

    Cannot see what files ? Music (synced music should appear in the iPod app), films/TV shows (Videos app), documents ... ?

  • I have three issues with Creative Cloud

    I have three issues with CC:
    1. I want to be able to EDIT my work when I don't have income. The desktop model supported this. The cloud model does not, and that is unacceptable.
    2. Adobe can keep raising the price, because they will be holding us all hostage. Sure at some point a percentage of CC users would drop off, but all that means is that Adobe can milk the absolute most from us using this model. It's not a vehicle for innovation, it's a vehicle for exploitation.
    3. F--- the cloud. I'll be keeping my work on my laptop, thank you very much.

    what's your home version (click help>about) and was that just a warning so you were able to open the file?

  • I have a problem with JDBC Realm in Tomcat/Oracle/Win XP

    I have a problem with JDBC Realm in Tomcat.
    I have attached my server.xml file located in the
    C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\server.xml
    The Problem is that when I login I get the user name and password prompt but it does not resolve.
    When I enter in the tomcat-users.xml password with memory realm uncommented it works fine.
    C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\tomcat-users.xml
    Is there a cache or something I need to reset for the JDBC Realm to work?
    I have attached my tables and contents as well...
    Did I miss something????
    Thanks
    Phil
    server.xml
    <Server port="8005" shutdown="SHUTDOWN">
    <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
    <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
    <Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
    <!-- Global JNDI resources -->
    <GlobalNamingResources>
    <!-- Test entry for demonstration purposes -->
    <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
    </GlobalNamingResources>
    <!-- Define the Tomcat Stand-Alone Service -->
    <Service name="Catalina">
    <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
    <Connector
    port="8080" maxHttpHeaderSize="8192"
    maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
    enableLookups="false" redirectPort="8443" acceptCount="100"
    connectionTimeout="20000" disableUploadTimeout="true" />
    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009"
    enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
    <!-- Define the top level container in our container hierarchy -->
    <Engine name="Catalina" defaultHost="localhost">
    <!--
    <Realm className="org.apache.catalina.realm.MemoryRealm" />
    -->
    <Realm className="org.apache.catalina.realm.JDBCRealm"
    driverName="oracle.jdbc.driver.OracleDriver"
    connectionURL="jdbc:oracle:thin:@localhost:1521:orcl"
    connectionName="testName" connectionPassword="testPass"
    userTable="users"
    userNameCol="user_name"
    userCredCol="user_pass"
    userRoleTable="user_roles"
    roleNameCol="role_name" />
    <!-- Define the default virtual host
    Note: XML Schema validation will not work with Xerces 2.2.
    -->
    <Host name="localhost" appBase="webapps"
    unpackWARs="true" autoDeploy="true"
    xmlValidation="false" xmlNamespaceAware="false">
    </Host>
    </Engine>
    </Service>
    </Server>
    Tables
    create table users
    user_name varchar(15) not null primary key,
    user_pass varchar(15) not null
    create table roles
    role_name varchar(15) not null primary key
    create table user_roles
    user_name varchar(15) not null,
    role_name varchar(15) not null,
    primary key( user_name, role_name )
    select * from users;
    ----------------------+
    | user_name | user_pass |
    ----------------------+
    | tomcat | tomcat |
    | user1 | tomcat |
    | user2 | tomcat |
    | user3 | tomcat |
    ----------------------+
    select * from roles;
    | role_name |
    | tomcat |
    | role1 |
    select * from user_roles;
    -----------------------+
    | role_name | user_name |
    -----------------------+
    | tomcat | user1 |
    | role1 | user2 |
    | tomcat | tomcat |
    | role1 | tomcat |
    -----------------------+

    Jan 2, 2008 11:49:35 AM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Jan 2, 2008 11:49:35 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 734 ms
    Jan 2, 2008 11:49:35 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Jan 2, 2008 11:49:35 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.9
    Jan 2, 2008 11:49:35 AM org.apache.catalina.realm.JDBCRealm start
    SEVERE: Exception opening database connection
    java.sql.SQLException: oracle.jdbc.driver.OracleDriver
         at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:684)
         at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:758)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1004)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
         at org.apache.catalina.core.StandardService.start(StandardService.java:450)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
    Jan 2, 2008 11:49:35 AM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    Jan 2, 2008 11:49:36 AM org.apache.catalina.core.StandardContext resourcesStart

  • Hi how do i delete voice memos from my iPhone 4 after I have synched them with iTunes?

    Hi how do i delete voice memos from my iPhone 4 after I have synched them with iTunes?

    Hi James thanks so much for your reply
    What I was trying to do though was to mass delete the voice memos from the phone, and I was told that one can do that via iTunes. Problem is that when I do open iTunes, I am not able to locate a TAB thats says ON THIS IPHONE
    I was told that one could click on this and then select multiple Voice Memos and delete this way.
    Thanks again for your assistance

  • I replaced my iPhone with a Galaxy 5 and am not receiving all of my text messages. The sales person told me to remove my phone number from iTunes to stop this from happening. Is that true? What does iTunes have to do with text messages?

    I replaced my iPhone with a Samsung Galaxy5 and I am not receiving all of my text messages now. The rep at the store told me to go to iTunes and take my phone # off of the account and that would fix the problem. Is that true? What does iTunes have to do with text messages anyway?

    You need to remove your phone number from the iMessage system.
    Read here: http://support.apple.com/kb/ts5185
    ~Lyssa

Maybe you are looking for