JEditorPane acting incorrectly

OK, I posted this previously but no answers. My code used to work with the 1.3 JDK but now it doesn't.
I set a Jframe with a JEditor Pane inside it. Then I load a html page. If you select output page from the file menu the JEditorPane dumps the html code it has displayed to stdout.
However the page I load is completely different when outputted from the JEditor Pane. All the html between the form tags is moved outside them. I'm wondereing why this happens.
Please help...
Here's the code I'm running, it's very simple (viewer is my JEditorPane):
import java.io.*;
import java.util.*;
import java.awt.event.*;
import java.awt.Toolkit;
import java.net.URL;
import javax.swing.*;
import javax.swing.text.html.HTMLDocument;
public class Main extends JFrame implements ActionListener
   public Main() throws Exception
   {  super();
      setSize(Toolkit.getDefaultToolkit().getScreenSize());
      this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      // menu bar
      JMenuBar menubar = new JMenuBar();
      JMenu fileMenu = new JMenu("File");
      JMenuItem nItem = (JMenuItem)fileMenu.add("Output Page");
      nItem.addActionListener(this);
      JMenuItem eItem = (JMenuItem)fileMenu.add("Exit");
      eItem.addActionListener(this);
      menubar.add(fileMenu);
      setJMenuBar(menubar);
      // main component
      viewer = new JEditorPane();
      viewer.setContentType("text/html");
      viewer.setEditable(false);
      scroll = new JScrollPane(viewer);
      getContentPane().add(scroll);
      setVisible(true);
      URL url = new URL( "file:///C:/Documents%20and%20Settings/ross/Desktop/Phd%20Backup/test/test.html");
      viewer.setPage(url);
   public void actionPerformed(ActionEvent ae)
   {  if (ae.getActionCommand().equals("Exit"))
      {   System.exit(0);
      else if (ae.getActionCommand().equals("Output Page"))
         System.out.println(viewer.getText());
   private JScrollPane scroll;
   private JEditorPane viewer;
   public static void main(String[] args)
   {  Main madness = null;
      try
      {  madness = new Main();
      catch (Exception e)
      {  System.err.println(e);
         System.exit(1);
Here's the content of "test.html":
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Holiday Search</title>
<style type="text/css">
      .header { background-color: #9bbadd; font-weight: bold; color: #000040;}
      .odd { background-color: #ffffc0; height:10mm}
      .even { background-color: #ffaf88; height:10mm }
   </style>
</head>
<body bgcolor="white" text="darkblue">
<table bgcolor="#9bbadd">
<tr>
<td><font face="helvetica,verdana,geneva,arial" color="#ee0000" size="+2">
<center>Holiday Search</center>
</font></td>
</tr>
</table>
<br>
<table cellspacing="0" cellpadding="3" border="0" width="100%" class="odd">
<tr class="header">
   <td width="5%">Id</td>
   <td width="15%">Destination</td>
   <td width="15%">Month</td>
   <td width="5%">Persons</td>
   <td width="5%">Nights</td>
   <td width="20%">Hotel</td>
   <td width="10%">Rating</td>
   <td width="10%">Type</td>
   <td width="5%">Price</td>
   <td width="10%"> </td>
</tr>
<tr>
<form action="/obr-holidays/Refine" name="627" method="get">
   <td width="5%">627</td>
   <td width="15%">Fuerteventura<input name="attr" type="hidden" value="Region"><input name="op" type="hidden" value="like"><input name="val" type="hidden" value="Fuerteventura"></td>
   <td width="15%">June<input name="attr" type="hidden" value="Month"><input name="op" type="hidden" value="like"><input name="val" type="hidden" value="June"></td>
   <td width="5%">3<input name="attr" type="hidden" value="NumberOfPersons"><input name="op" type="hidden" value="like"><input name="val" type="hidden" value="3"></td>
   <td width="5%">21<input name="attr" type="hidden" value="Duration"><input name="op" type="hidden" value="like"><input name="val" type="hidden" value="21"></td>
   <td width="20%">Hotel Rio Ventura, Fuerteventura</td>
   <td width="10%">FourStars<input name="attr" type="hidden" value="Accommodation"><input name="op" type="hidden" value="like"><input name="val" type="hidden" value="FourStars"></td>
   <td width="10%">Bathing<input name="attr" type="hidden" value="HolidayType"><input name="op" type="hidden" value="like"><input name="val" type="hidden" value="Bathing"></td>
   <td width="5%">7161<input name="attr" type="hidden" value="Price"><input name="op" type="hidden" value="like"><input name="val" type="hidden" value="7161"></td>
   <td width="10%"> <input type="Submit" value="refine..."></td>
</form>
</tr>
</table>
<table cellspacing="0" cellpadding="3" border="0" width="100%" class="even">
<tr>
<form action="/obr-holidays/Refine" name="1149" method="get">
   <td width="5%">1149</td>
   <td width="15%">Salzkammergut<input name="attr" type="hidden" value="Region"><input name="op" type="hidden" value="like"><input name="val" type="hidden" value="Salzkammergut"></td>
   <td width="15%">February<input name="attr" type="hidden" value="Month"><input name="op" type="hidden" value="like"><input name="val" type="hidden" value="February"></td>
   <td width="5%">3<input name="attr" type="hidden" value="NumberOfPersons"><input name="op" type="hidden" value="like"><input name="val" type="hidden" value="3"></td>
   <td width="5%">14<input name="attr" type="hidden" value="Duration"><input name="op" type="hidden" value="like"><input name="val" type="hidden" value="14"></td>
   <td width="20%">Dorfhotel Heiligenblut, Salzkammergut</td>
   <td width="10%">FourStars<input name="attr" type="hidden" value="Accommodation"><input name="op" type="hidden" value="like"><input name="val" type="hidden" value="FourStars"></td>
   <td width="10%">Recreation<input name="attr" type="hidden" value="HolidayType"><input name="op" type="hidden" value="like"><input name="val" type="hidden" value="Recreation"></td>
   <td width="5%">8007<input name="attr" type="hidden" value="Price"><input name="op" type="hidden" value="like"><input name="val" type="hidden" value="8007"></td>
   <td width="10%"> <input type="Submit" value="refine..."></td>
</form>
</tr>
</table>
</body>
</html>
What getText() returns from JEditorPane:
<html>
  <head>
    <style type="text/css">
      <!--
        .odd { height: 10mm; background-color: #ffffc0 }
        .even { height: 10mm; background-color: #ffaf88 }
        .header { background-color: #9bbadd; color: #000040; font-weight: bold }
      -->
    </style>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Holiday Search    </title>
  </head>
  <body text="darkblue" bgcolor="white">
    <table bgcolor="#9bbadd">
      <tr>
        <td>
          <center>
            <font face="helvetica,verdana,geneva,arial" color="#ee0000" size="+2">Holiday
            Search X
</font>          </center>
        </td>
      </tr>
    </table>
    <br>
    <table cellpadding="3" cellspacing="0" class="odd" border="0" width="100%">
      <tr class="header">
        <td width="5%">
          Id
        </td>
        <td width="15%">
          Destination
        </td>
        <td width="15%">
          Month
        </td>
        <td width="5%">
          Persons
        </td>
        <td width="5%">
          Nights
        </td>
        <td width="20%">
          Hotel
        </td>
        <td width="10%">
          Rating
        </td>
        <td width="10%">
          Type
        </td>
        <td width="5%">
          Price
        </td>
        <td width="10%">
        </td>
      </tr>
      <tr>
        <td>
          <form method="get" name="627" action="/obr-holidays/Refine">
          </form>
        </td>
        <td width="5%">
          627
        </td>
        <td width="15%">
          Fuerteventura<input type="hidden" value="Region" name="attr"><input type="hidden" value="like" name="op"><input type="hidden" value="Fuerteventura" name="val">
        </td>
        <td width="15%">
          June<input type="hidden" value="Month" name="attr"><input type="hidden" value="like" name="op"><input type="hidden" value="June" name="val">
        </td>
        <td width="5%">
          3<input type="hidden" value="NumberOfPersons" name="attr"><input type="hidden" value="like" name="op"><input type="hidden" value="3" name="val">
        </td>
        <td width="5%">
          21<input type="hidden" value="Duration" name="attr"><input type="hidden" value="like" name="op"><input type="hidden" value="21" name="val">
        </td>
        <td width="20%">
          Hotel Rio Ventura, Fuerteventura
        </td>
        <td width="10%">
          FourStars<input type="hidden" value="Accommodation" name="attr"><input type="hidden" value="like" name="op"><input type="hidden" value="FourStars" name="val">
        </td>
        <td width="10%">
          Bathing<input type="hidden" value="HolidayType" name="attr"><input type="hidden" value="like" name="op"><input type="hidden" value="Bathing" name="val">
        </td>
        <td width="5%">
          7161<input type="hidden" value="Price" name="attr"><input type="hidden" value="like" name="op"><input type="hidden" value="7161" name="val">
        </td>
        <td width="10%">
           <input type="submit" value="refine...">
        </td>
      </tr>
    </table>
    <table cellpadding="3" class="even" cellspacing="0" border="0" width="100%">
      <tr>
        <td>
          <form method="get" name="1149" action="/obr-holidays/Refine">
          </form>
        </td>
        <td width="5%">
          1149
        </td>
        <td width="15%">
          Salzkammergut<input type="hidden" value="Region" name="attr"><input type="hidden" value="like" name="op"><input type="hidden" value="Salzkammergut" name="val">
        </td>
        <td width="15%">
          February<input type="hidden" value="Month" name="attr"><input type="hidden" value="like" name="op"><input type="hidden" value="February" name="val">
        </td>
        <td width="5%">
          3<input type="hidden" value="NumberOfPersons" name="attr"><input type="hidden" value="like" name="op"><input type="hidden" value="3" name="val">
        </td>
        <td width="5%">
          14<input type="hidden" value="Duration" name="attr"><input type="hidden" value="like" name="op"><input type="hidden" value="14" name="val">
        </td>
        <td width="20%">
          Dorfhotel Heiligenblut, Salzkammergut
        </td>
        <td width="10%">
          FourStars<input type="hidden" value="Accommodation" name="attr"><input type="hidden" value="like" name="op"><input type="hidden" value="FourStars" name="val">
        </td>
        <td width="10%">
          Recreation<input type="hidden" value="HolidayType" name="attr"><inputtype="hidden" value="like" name="op"><input type="hidden" value="Recreation" name="val">
        </td>
        <td width="5%">
          8007<input type="hidden" value="Price" name="attr"><input type="hidden" value="like" name="op"><input type="hidden" value="8007" name="val">
        </td>
        <td width="10%">
           <input type="submit" value="refine...">
        </td>
      </tr>
    </table>
  </body>
</html>Why does this happen, please, please help...

JEditorPane's HTMLEditorKit primarily supports HTML 3.2. Beyond these basic tags, it handles few tags from later versions of HTML.
Add "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">" at the beginning of your html file and try to validate it at http://validator.w3.org/ .
The inconsistent behavior you're experiencing might be solved if you modify your file to make it strictly html 3.2 valid. This is of course just a wild guess.

Similar Messages

  • How to make JEditorPane acting like Windows on-line Help ?

    Hello all!
    The JEditorPane is able to show html inside it. Is there the possibility to be able to click on links in it? (e.g. <a href=")?
    Thanks in advance for the help
    Cdlang

    Sounds like you haven't bothered to look at the javadoc:
    [http://java.sun.com/javase/6/docs/api/javax/swing/JEditorPane.html]

  • When one window containing 1 tab is closed, the other window with several tabs closes also

    I have a set of web pages that reproducibly causes Firefox to act incorrectly. When Firefox is first started I click the "Restore previous desktop" button. Then I have 2 Firefox windows. The first to open has 6 tabs; the second has 1 tab. When I close the 2nd window (with 1 tab), it also closes Firefox completely with no error message. When I run Firefox again, "Restore" creates both windows exactly as they were before.
    I don't know yet if the actual URLs make a difference, but here they are anyway:
    '''''Window 1:'''''
    https://www.google.com/accounts/ServiceLogin?service=mail&passive=true&rm=false&continue=https%3A%2F%2Fmail.google.com%2Fmail%2Fu%2F0%2F%3Fshva%3D1%26ui%3Dhtml%26zy%3Dl&bsv=llya694le36z&ss=1&scc=1&authuser=0&ltmpl=default&ltmplcache=2&from=login#inbox
    http://branamsmile.com/gum/?gclid=CLepiIaAhqkCFVJ25QodSyk1nw
    http://www.google.com/search?hl=&q=root+viewsonic+g+tablet&sourceid=navclient-ff&rlz=1B3GGLL_enUS412US412&ie=UTF-8&aq=0&oq=root+viewsoni
    ***** NOTE THIS TAB IS PROBLEMATIC *****
    When I press Alt+D, Ctrl+C, and Ctrl+V it into this comment box, I get
    '''woot'''
    When I look at the actual contents of the web page being displayed, it is the verizon wireless rebate page:
    '''www.verizonwireless.com/rebates'''
    The page has definitely finished being rendered (the refresh icon is displayed after the url "woot"), but the URL does not match the page. The URL displayed is not even in its proper form (i.e., www.woot.com).
    Remember that this page was RESTORED by Firefox from a previous session. It is as if I was on that tab at verizon, tried to go to woot.com by typing "woot" (which would of course bring up a search rather than the web page), DIDN'T PRESS ENTER, and Firefox is duplicating that entire sequence.
    ********* END PROBLEMATIC *************
    chrome://foxtab/content/newTabMessage.html
    https://www.bankofamerica.com/Control.do?page_msg=signoff&body=signoff
    '''''Window 2:'''''
    http://www.freewaregenius.com/2011/06/01/the-best-freeware-file-manager-a-comparative-analysis/
    With this exact set of windows and tabs, as restored by Firefox in a brand new instance of it, double-clicking the red Firefox in the top left corner of the 2nd window causes both windows to close.
    I wish I could save this configuration so I could always reproduce the error, but I need my computer :)

    You can check for problems with the sessionstore.js and sessionstore.bak files in the Firefox Profile Folder that store session data.
    Delete the sessionstore.js file and possible sessionstore-##.js files with a number and sessionstore.bak in the Firefox Profile Folder.
    *Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).
    *http://kb.mozillazine.org/Multiple_profile_files_created

  • How to setup grow/shrink behavior on a moving group?

    SD project. Group consists of 18 evenly spaced SD video clips each individually sized to 40%. The group is positioned near the top of the screen at 100% size.
    The group then marches smoothly across the screen by transforming position X over 36 seconds using linear interpolation.
    I am trying to cause the group (10 seconds into the timeline) to smoothly increase in size by applying a grow/shrink behavior over 3 seconds while continuing the X transform.
    Position Y is changed to keep the location of the top of the group the same while the group grows.
    Starts OK and ends OK. Works fine all the way to the end once the behavior finishes. Using the same X transform.
    The problem is that during the grow behavior the apparent X and Y axis motion behaves incorrectly. The motion appears to change speed and even briefly reverses direction.
    I understand why this is happening but I don't know how to fix it.
    I have tried every combination of interpolation for the transforms along with every variation of the grow behavior parameters I can think of.
    Everything I have tried makes things worse and/or introduces unwanted side effects.
    Any thoughts?

    I tried to implement what you were talking about. Just to make it easier on myself, I did use a 18 piece replicator instead of 18 individual files...so hopefully that doesn't change things. I did not get any reverse or weird X,Y behaviors acting incorrectly. It started at timeline 10:00 and ended at timeline 13:00, grew 120%, and the group had an anchor point set to the top of the group so it would only grow bottom and to the sides. Stuck with the same interpolation and everything. The only thing that looked weird was that the boxes pop back in place after the grow/shrink is done. Which is just because the behavior ends. Now! something that was odd was that I couldn't keyframe any parameters in the behavior?

  • BLOB insert behavior with thin driver using standard JDBC2.0 and ORACLE-JDBC2.0API

    We have a problem with a BLOB insert to an oracle 8.1.7 DB using Oracle 8.1.7 JDBC thin driver.We get socket read/write error after inserting 32k of data using the standard JDBC2.0 API but using the Oracle JDBC2.0API (using OracleResultSet) it goes fine. We have a requirement to use the standard JDBC2.0 so that our code works with multiple database vendors. Is there another way to get in the blob data with standard JDBC API & using thin driver...?
    thanks,
    Madhu
    Here is my sample test program that does both standard & oracle specific JDBC Blob test insert.
    import java.sql.*;
    import java.io.*;
    import oracle.sql.BLOB;
    import oracle.jdbc.driver.OracleResultSet;
    public class testBLOB {
    //trying to insert a huge file to a BLOB
    static String fileName = "/kernel/genunix";
    public static void main(String[] args) {
    String driverName = "oracle.jdbc.driver.OracleDriver";
    String dbURL = "jdbc:oracle:thin:@localhost:1521:test"; //thin driver
    String user = "BlobTest";
    String passwd = "BlobTest";
    Connection con=null;
    try {
    Class.forName(driverName);
    con=DriverManager.getConnection(dbURL, user,passwd);
    catch (Exception e) {
    e.printStackTrace();
    close(con);
    int i = 0;
    while (i < args.length) {
    if (args.equals("-f"))
    fileName = args[++i];
    i++;
    System.out.println("The file being Stored is: "+fileName);
    createTable(con);
    insertUsingOracleAPI(con);
    insertUsingJDBC20API(con);
    //readDB(con);
    static String getFileName() {
    return fileName;
    public static void close(Connection con) {
    try {
    if (con != null) {
    con.close();
    catch (Exception e) {
    System.exit(-1);
    public static void createTable(Connection con) {
    Statement stmt ;
    try {
    stmt = con.createStatement();
    stmt.execute("DROP TABLE basic_blob_table");
    stmt.close();
    catch (SQLException sqlEx) {
    System.out.println("Dropped the Table");
    try {
    stmt = con.createStatement();
    stmt.execute("CREATE TABLE basic_blob_table ( x varchar2(30), b blob)");
    stmt.close();
    catch (SQLException sqlEx) {
    sqlEx.printStackTrace();
    close(con);
    System.out.println("Created the Table");
    public static void insertUsingOracleAPI(Connection con) {
    OutputStream os = null;
    Statement stmt = null;
    ResultSet rs = null;
    FileInputStream is = null;
    try {
    con.setAutoCommit(false);
    stmt = con.createStatement();
    stmt.execute("INSERT INTO basic_blob_table VALUES( 'OracleAPI', empty_blob())");
    System.out.println("Inserted the dummy Row");
    rs = stmt.executeQuery("Select * from basic_blob_table where x='OracleAPI'");
    if (rs != null && rs.next()) {
    BLOB blob = ((OracleResultSet)rs).getBLOB(2);
    File file = new File(getFileName());
    is = new FileInputStream(file);
    os = blob.getBinaryOutputStream();
    byte[] chunk = new byte[1024];
    int length = -1;
    while((length = is.read(chunk)) != -1)
    os.write(chunk, 0,length);
    System.out.println("Inserted the File " + getFileName() );
    catch (Exception e) {
    e.printStackTrace();
    finally {
    try {
    if (os != null) {
    os.flush();
    os.close();
    if (is != null)
    is.close();
    stmt.close();
    con.commit();
    con.setAutoCommit(true);
    catch (Exception e) {}
    public static void insertUsingJDBC20API(Connection con) {
    PreparedStatement stmt = null;
    FileInputStream is = null;
    try {
    stmt = con.prepareStatement("INSERT INTO basic_blob_table VALUES(?,?)");
    File file = new File(getFileName());
    is = new FileInputStream(file);
    stmt.setString(1,"JDBC20API");
    stmt.setBinaryStream(2,is,(int)file.length());
    stmt.executeUpdate();
    catch (Exception e) {
    e.printStackTrace();
    finally {
    try {
    if (is != null)
    is.close();
    stmt.close();
    catch (Exception e) {}
    null

    Thanks for the response.
    I understand what you are saying...
    that readers don't block writers in Oracle (the same is true in SQL Server 2000).
    However, I don't see how my test case is working correctly with Oracle (the exact same code acting as I'm thinking it should with SQL Server, but I still think it is acting incorrectly with Oracle).
    I have transaction A do this:
    update <table> set <column2>=<value> where <column1>='1'
    then I use Thread.sleep() to make that program hang around for a few minutes.
    Meanwhile I sneak off and start another program which begins transaction B. I have transaction B do this:
    select * from <table> where <column1>='1'
    and the read works immediately (no blocking... just as you have said) however, transaction A is still sleeping, it has not called commit() or rollback() yet.
    So what if transaction A were to call rollback(), the value read by transaction B would be incorrect wouldn't it ?
    Both A and B use setAutoCommit(false) to start their transactions, and then call setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED).
    Isn't that supposed to guarantee that a reader can only read what is committed ?
    And if a row is in "flux"... in the process of having one or more values changed, then the database cannot say what the value will be ?
    I can almost see what you are saying.
    In letting the reader have what it wants without making it wait, I suppose it could be said that Oracle is holding true to the "only let committed data be read"
    So if that's it, then what if I want the blocking ?
    I want an entire row to be locked until whoever it in the middle of updating, adding, or removing it has finished.
    Do you know if that can be done with Oracle ? And how ?
    Thanks again for helping me.

  • Just a technical question

    Hi,
    I'm not a developer but I wanted to ask here since I presume there're a lot more tech savvy people that could possibly give me a proper answer to just one small question regarding behavior of Mac OS X using the following example: at some moment I suddenly discovered that the Trackpad option which allows for search through the English Dictionary (Thesaurus, etc) tapping a highlighted word with three fingers no longer worked as before: when I tapped nothing happened or other word was "processed" in what seemed to me to be a chaotic order. I reset PRAM and its normal functioning returned. What exactly happened with the system that it started act incorrectly until the PRAM reset? I remember though that some days ago (before I discovered the issue) I did one more SMC and PRAM reset and performing the latter I released the combination of keys after the third chime. I then thought that it was too much so I repeated the operation exactly as recommended. Could the repetitive reset of PRAM be the reason and kind of shock to the OS?
    Would be happy to hear your opinions
    Have a nice day   

    Are you sure you haven;t turn it off in System Preferences->TrackPad;Point & Click?
    There it is called Lookup

  • While loop and for loop condition terminal

    Hello friends,
    I am using labview 8.6. The condition terminal of the while loop and conditional for loop is behaving in just the opposite way.
    When i wire a true to the condition terminal of my loop, the while loop continues to run when I click on run. when I wire a FALSE, it stops.
    Is there any setting change that I have to make it to get it work properly.
    Please suggest on this.
    Thanks and regards,
    Herok

    Please do NOT attach .bmp images with the extension changed to .jpg to circumvent the forum filters!
    Herok wrote:
    I am sending you the VI. I am not sure if this would help you because only in 2 computers this behaviour is seen. In others, it works as it is supposed to work.
    Whatever you are seeing must be due to some corruption or folding error. It all works fine here.
    To make sure there are no hidden objects, simply press the cleanup button which would reveal any extra stuff (which is obviously not there). Does it fix itself if you click the termination terminal an even number of times? What if you remove the bad loop and create a new one?
    Could it be you have some problems with the graphics card and the icon of the conditional terminal does not update correctly?
    Whay happens if you connect a control instead of a diagram constant?
    What is different on the computers where it acts incorrectly (different CPU (brand, model), #of cores, etc.) 
    LabVIEW Champion . Do more with less code and in less time .

  • Problems shutting down a 6534

    Hi,
    I have searched the forums and couldn't find this sorry if its a rehash.
    I reciently built a box with a 6534 and a celery 1.7.
    Everything is fine it runs fine, doesn't heat up, actually very stable.
    Except...
    I can't shut it down.
    It will shut down/hbrn8,suspend fine, but the power supply fan continues to spin and after a few seconds it will boot back up on its own. I can shut it down and then turn off the powersupply switch, turn it back on and it will stay off. But after I hit the power button, it will again act incorrectly when shutting down. I have replaced the power supply with a know good and it reacts the same.
    any help would be appreciated.
    bios to 1.4
    1.7 celeron
    6534 msi board
    window 2k
    320 megs ram (2 sticks could be problem?)
    crappy pci video card sis 6326 (its a business machine not a gamer)
    realtec nic
    onboard sound
    thanks
    dex

    For STR-1 mode: Standby mode in normal state where the system is "actively suspend". To re-activate system in this mode can be through keypress or mouse press buttons.
    For STR-3 mode: Standby mode in power saving state where all active activities are being virtually saved into system memory. When this mode is activated, the system will direct go into a "fake shutdown" state to consume the least amount of power. To re-activate system in this mode is only through the power switch, once activated, the system will fall back to it's last active stage.
    STR-3 mode is a recommend suspend mode for quiet and power saving step for a system.
    For your case, what are the errors that occurred after a shutdown and a cold bootup?

  • Strange characters encoding with CS3

    I have just installed Web premium CS3 and am working on my
    first new project
    with Dreamweaver. All good so far except - it is not encoding
    some special
    characters properly. For instance if I type £50 in the
    design window, it
    appears as £50 in code view - rather than &pound50:
    Same thing with quotes - it does not always put the
    &quot; into code view.
    Same deal with dashes.
    Must be a default setting I guess but I've been using
    Dreamweaver since
    Version 3 and never had to deal with this before.
    Thanks
    James Loudon
    www.fatgraphics.com
    websites::photography::video

    Thanks very much David. I think it may well be a server
    problem.
    James Loudon
    www.fatgraphics.com
    websites::photography::video
    "David Powers" <[email protected]> wrote in message
    news:f8f840$gad$[email protected]..
    > James Loudon wrote:
    >> I see, okay how do get it to act "incorrectly" and
    actually render these
    >> things properly in browsers?
    >
    > All modern browsers should render UTF-8 encoding
    correctly. UTF-8 is
    > Unicode, which supports just about every written
    language on the planet.
    >
    > However, if pages aren't displaying correctly with UTF-8
    encoding, go to
    > Preferences > New Document, and set the default
    encoding to Western
    > European. Dreamweaver will then insert HTML entities for
    special
    > characters.
    >
    > Either way, Dreamweaver will be acting correctly. If
    special characters
    > don't display correctly when using UTF-8 encoding, it
    suggests there's
    > something wrong with the browser or that your remote
    server is
    > automatically sending HTTP headers that set the encoding
    to iso-8859-1
    > (Western European). Headers sent by the web server
    override the encoding
    > set in the meta tag of a web page.
    >
    > --
    > David Powers, Adobe Community Expert
    > Author, "The Essential Guide to Dreamweaver CS3"
    (friends of ED)
    > Author, "PHP Solutions" (friends of ED)
    >
    http://foundationphp.com/

  • App store in 10.6.8 beach ball when trying to install Mountain Lion

    Hi I'm trying to upgrade from 10.6.8, on my Mac book pro (early 2010) to Mountain lion.
    Problem is whenever I try, via App store, the beach ball appears and the App store becomes non responsive.
    Any suggestions?
    Thanks

    Thanks baltwo. I've been on that sight before. It doesn't help.
    App Store does not crash so no logs. In task view it is marked as non responsive. No other services apps etc are acting incorrectly.
    I've repaired permissions and played with the password chains.
    Any other suggestions?

  • Using JDBC thin drivers against 9.2 DB ?

    Is anyone doing this? How? Which JDK? Which drivers?
    I would really like to uses JDBC 2.0 (classes12.zip) - but this hangs on the very first getConnect() or Driver.connect()
    Mike

    Thanks for the response.
    I understand what you are saying...
    that readers don't block writers in Oracle (the same is true in SQL Server 2000).
    However, I don't see how my test case is working correctly with Oracle (the exact same code acting as I'm thinking it should with SQL Server, but I still think it is acting incorrectly with Oracle).
    I have transaction A do this:
    update <table> set <column2>=<value> where <column1>='1'
    then I use Thread.sleep() to make that program hang around for a few minutes.
    Meanwhile I sneak off and start another program which begins transaction B. I have transaction B do this:
    select * from <table> where <column1>='1'
    and the read works immediately (no blocking... just as you have said) however, transaction A is still sleeping, it has not called commit() or rollback() yet.
    So what if transaction A were to call rollback(), the value read by transaction B would be incorrect wouldn't it ?
    Both A and B use setAutoCommit(false) to start their transactions, and then call setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED).
    Isn't that supposed to guarantee that a reader can only read what is committed ?
    And if a row is in "flux"... in the process of having one or more values changed, then the database cannot say what the value will be ?
    I can almost see what you are saying.
    In letting the reader have what it wants without making it wait, I suppose it could be said that Oracle is holding true to the "only let committed data be read"
    So if that's it, then what if I want the blocking ?
    I want an entire row to be locked until whoever it in the middle of updating, adding, or removing it has finished.
    Do you know if that can be done with Oracle ? And how ?
    Thanks again for helping me.

  • Write hyperlink to JTextArea

    Hi, I am new in Swing.
    I am using JTabbedPane with some buttons and JTextArea to write a link names there.
    Is it possible to write this links to JTextArea as hyperlinks and add action listener there to start browser when user click on it ?
    Thank's.
    andrews

    No - you'll need a JEditorPane. The API documentation (http://java.sun.com/javase/6/docs/api/javax/swing/JEditorPane.html) gives an example of link click handling. Sun's tutorial discusses editor panes here: http://java.sun.com/docs/books/tutorial/uiswing/components/text.html and later here: http://java.sun.com/docs/books/tutorial/uiswing/components/editorpane.html
    You should be aware that JEditorPane acts a pretty minimal browser - but you could adapt the example in the API documentation to launch a browser.

  • Importing images from iPhoto

    I created an event in iPhoto containing 761 images and imported those images from my iPhoto library into Aperture.
    After importing only 700 images where present in Aperture.
    Where are the remaining 61 images?
    What I found out so far:
    In the iPhoto Library file there are really 761 imagefiles in the eventfolder.
    When I select the event during import (shown as a folder in the import dialog) I can only see (and import) 700 images instead of 761.
    I use iPhoto 08 and Aperture 2.1

    I am also having similar problems. I have several events in iPhoto that I tried to import into Aperture 2.1. When using the function presented upon starting Aperture (Import Your iPhoto Library) several photos under various events were not imported. I then tried to use the "Import" function to browse to the events under my iPhoto Library. This time several of the events did not show any photos at all under them for being able to import. I also tried to "drag-and-drop" events from iPhoto to Aperture, which resulted in files being copied over, but not in the "raw" format (.DNG) of the original master files (came over as .JPG instead). Any assistance in being able to trouble shoot this problem would be greatly appreciated.
    Other notes: iPhoto Library has not been acting incorrectly (no corruption to the library is apparent).
    Aperture imported the sample projects with the install correctly as well.
    Hardware: MacBook (OS X 10.5.4) 2.16 GHz Core 2 Duo
    Software: Aperture 2.1, iPhoto '08 (version 7.1.4)

  • Able to make dirty read using Oracle 9i and JDBC thin driver v 9.2.0

    I've searched this forum and did not see anything to directly answer my question.
    I checked the Oracle JDBC Frequently Asked Questions...
    ditto (perhaps due to the fact that it was last updated: 22 June 2001).
    So here is my question, and thank you in advance for any insight (apologies if I have missed finding an already answered question):
    Section 19-15 of:
    "JDBC Developer’s Guide and Reference"
    (which is for Oracle 9i database)
    downloadable from:
    http://download-east.oracle.com/docs/cd/B10501_01/java.920/a96654.pdf
    is entitled:
    "Transaction Isolation Levels and Access Modes"
    The section seems to indicate that
    if JDBC connection A is setup with:
    setAutoCommit(false)
    setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED)
    and then used to perform an update on a row (no commit(), rollback(), or close() yet) ...
    then JDBC connection B (setup in the same way) will be prevented from
    making a dirty read of that same row.
    While this behavior (row-level locking) occurs correctly when using MS SQL Server 2000,
    it is not occuring correctly with Oracle 9i and the Oracle Thin JDBC driver version 9.2.0.
    The test case I have shows that with Oracle, connection B is able to make a dirty read
    successfully in this case.
    Am I doing something wrong here ?
    Again, MS SQL Server correctly blocks connection B from making the Read until Connection A
    has been either committed, rolled back, or closed, at which time connection B is able to
    complete the read because the row is now unlocked.
    Is there a switch I must throw here ?
    Again, any help is greatly appreciated.

    Thanks for the response.
    I understand what you are saying...
    that readers don't block writers in Oracle (the same is true in SQL Server 2000).
    However, I don't see how my test case is working correctly with Oracle (the exact same code acting as I'm thinking it should with SQL Server, but I still think it is acting incorrectly with Oracle).
    I have transaction A do this:
    update <table> set <column2>=<value> where <column1>='1'
    then I use Thread.sleep() to make that program hang around for a few minutes.
    Meanwhile I sneak off and start another program which begins transaction B. I have transaction B do this:
    select * from <table> where <column1>='1'
    and the read works immediately (no blocking... just as you have said) however, transaction A is still sleeping, it has not called commit() or rollback() yet.
    So what if transaction A were to call rollback(), the value read by transaction B would be incorrect wouldn't it ?
    Both A and B use setAutoCommit(false) to start their transactions, and then call setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED).
    Isn't that supposed to guarantee that a reader can only read what is committed ?
    And if a row is in "flux"... in the process of having one or more values changed, then the database cannot say what the value will be ?
    I can almost see what you are saying.
    In letting the reader have what it wants without making it wait, I suppose it could be said that Oracle is holding true to the "only let committed data be read"
    So if that's it, then what if I want the blocking ?
    I want an entire row to be locked until whoever it in the middle of updating, adding, or removing it has finished.
    Do you know if that can be done with Oracle ? And how ?
    Thanks again for helping me.

  • Merge pathfinder working differently now?

    It appears that the Merge function of the pathfinder is acting incorrectly. This may be a bug from a recent update, I don't know. But I am trying to use Merge to join shapes together, and it is acting like Divide or Trim. The shapes are not combining, but rather splitting up into sections based on the paths of the shapes below. That is not how Merge worked the last time I used it. See my example below. That is after I hit Merge--and you can still see the underlying paths.
    Am I mistaken here, or has the Merge function changed somehow? I'm curious to know if it's the program or me that's the crazy one. Thanks!

    I applied it from the Pathfinder Window. It's how I've always done it.
    Another thing to add to this is that in my sample provided above, the bottom shapes still remain layered below the top shapes. That big green box has slices that remain under the red and blue boxes. Merge didn't used to do that.
    Thanks

Maybe you are looking for

  • Virtual hosting in Weblogic 6.0

    hi, I have created a virtual host with the name MyVirtualHost and VirtualHost names as mysite , in wl6.0 using the admin console. I have cofigured DefaultWebApp_myserver as the default web application.I checked the config.xml file and an entry has be

  • Ipad 4 with retina display originality check?

    How to check a new ipad 4 with retina display for its originality without unpacking the pack seal?

  • Error in trigger: PLS-00049: bad bind variable

    Hi, I am trying one of the XML/XDK samples from technet (http://otn.oracle.com/tech/xml/htdocs/XDBDemo2.html) and get this error while compiling the trigger: here's the code snippet create or replace trigger PURCHASEORDEREXPLOSION instead of insert o

  • Uploading of Journal Entries to GL

    Hi guys,    I am a new user of SAP, Right now, we are re-encoding our journal entries coming from different excel files to GL. Is there an easy way that we can do away with manual encoding to the SAP?    I'm seeking your help with regards to this mat

  • What drivers to load?

    I will be re-installing Windows XP on my system that has an MSI-7125-010 Neo4 platinum mb. Can you verify for me which drivers I will need or not need? It's been a few years since I've done this. I will not be using RAID. Thanks.