Java - subpixel AA text (at last!)

Hi all,
Some good news from the current JDK 1.6 builds (aka Mustang) is that sub-pixel anti-aliasing has been committed. So, nice looking fonts on many platforms So now, Java apps on w2k and earlier will look better than native widgets from a subp-AA perspective!
A good example of the difference can be seen on this blog

dust wrote:Took them long enough..
So they always say.
According to Java.net, there's a whole pile of cool features coming in Mustang.... little things like this that will make a huge impact. Lots of bugfixes in swing, stuff like that. And its supposed to load faster too.
Too bad its not open source.
Dusty

Similar Messages

  • How to display text on last but one page in SAPSCRIPTS

    how to display text on last but one page in SAPSCRIPTS

    u have create one Foooter window , this has to be called in  only One Page.So hardcode /assign this window to only one PAGE number.
    regards
    Prabhu

  • How to know they is space or carrier return when java read a text file.

    Hi,
    Please help.
    How to know they is space or carrier return when java read a text file.
    The reason is that. I want to use java for loop to read each part of value. for example: first part is the items name. After the space (I need to tell java when this is a space here and its need to skip) , following by the items prices in double value and space again (need to skip also) and etc.
    item name1
    item name2
    item name3
    item name4
    item name5
    <--- here is the space to skip and another loop to read following items prices
    item price1
    item price2
    item price3
    item price4
    item price5
    <--- here is another spcae again. and so on
    thank in advance!

    You can check to see if the sting you read in is just nothing, depending on how you're reading it in:
    if((str = inStream.readLine().trim().equals("")))
    // skip and get ready for the next section
    else
    // handle the next item
    The trim() method gets rid of all leading and trailing spaces and I'm assuming you're using a stream that can use the readLine() method that returns a String.
    I hope this is clear. Let me know if it isn't, I'll try and word it different, or post how you're reading the values in if you need more help.

  • When you will release a new java update ? With the last it doesn't work correctly ( java 3d )

    I use java 3d, but with the last update it doesn't works with any browser

    "When you will release a new java update ?"
    "We" don't release anything; we're not Apple, we're just users like you.
    Use the feedback form to send queries to Apple.
    http://www.apple.com/feedback/macosx.html

  • Condition text on last page of Main window of a SAPSCRIPT

    Hi,
         I want to print some condition text in last page of a Main window of my custom sapscript, we can't use &NEXTPAGE& in Main window. Is there any other method to identify the last page.

    Hi Venu gopal,
    In the print program use the control break statement.
    Refer this code
    *AT LAST*
    call function 'WRITE_FORM'
           exporting
           element                          = 'GRAND_TOTAL'
    *   FUNCTION                            = 'SET'
    *   TYPE                                = 'BODY'
             window                         = 'MAIN'
    Regards,
    Sravanthi

  • How to display text on last but one page

    how to display text on last but one page

    Hi Preeti,
      If u r working on a smartform then click on th window go to the condition tab there
      at the end u will find events click on the the event on which u want to trigger the 
      print.
      If u r working on a script then create a text element and call this text elemtn at
    the end of processing of the main window, this will make sure that thetext element
    is triggered only at the end.
    I hope that helps u , if not pls let me know.
    Regards,
    Vaibhav B Gawali.

  • How to write the java program to retrieve the last 7 days dates

    Hi,
    I am having requirement that how to write the java program to retrieve the last 7 days dates. Please help me.
    Regards,
    Ahamad

    It needs any jar file.Of course!
    I did using jscape.My program is running fine.But it
    requires jar file.Which is licensed version.Maybe you should follow the link the the 'license' on the site I posted!
    >
    I have the doubt is apache provides jar file free
    versionMaybe you should follow the link the the 'license' on the site I posted!

  • PLEASE HELP!!!  Problem with Java and SQLServer Text data type

    Hi there,
    I have a java app. that reads from an MS SQLServer database. Originally, all long text fields were declared as NVARCHAR(200). The program worked fine.
    Someone then advised that I change all long text fields to the TEXT data type. The program now crashes out with the following Exception:
    "java.sql.SQLException: [JRun][SQLServer JDBC Driver]This ResultSet can not re-read row data for column 25."
    Basically, I have a method that retrieves a resulset and iterates through it. The resultset is passed to another method during each iteration. In the example below, the 'specialNote' field used to be NVARCHAR(200). The code worked fine. Then when it was changed to TEXT, the program no longer works with the above Exception thrown.
    Anyone know any special way SQLServer TEXT data types need to be handled?
    Thanks for any advice!
    The code looks something like this in functionality:
    <CODE>
    public void method1 (Connection conn)
    Resultset rs = conn.createStatement().executeQuery("SELECT * FROM ProductBB");
    while (rs.next())
    method2(rs);
    public void method2 (ResultSet rs)
    String str = rs.getString("specialNote");
    </CODE>

    Hi JWoods,
    Thanks for the suggestion. I originally had the code do what you suggested, ie, get the resultset then retrieve the data all within the same method. The data is then used to set properties in an object.
    When I had to create another method that also retrieved a resultset but using a different primary key, then also use the returned data to set the properties in the same type of object, I didn't want to repeat the setter code. That's why I decided to pass the resultsets to the same method that did the property setting.
    Unfortunately, it stopped working with the data type change.
    Any other thoughts?

  • Can no longer see text on last 10 pages of screenplay. It was visible before.

    I have a screenplay that is about 125 pages in length. I originally wrote it in story.adobe.com free edition. I noticed that the last 10 pages of text are invisible, but the headings are intact so it appears that the text is somewhere inside.
    I upgraded to the subscription server Story Plus and I'm wondering if there might be a way to make that text visible again.
    Thank you in advance

    You have some sort of issue with the external drive, I would use a powered USB hub first if it's not self powered.
    Next I would be looking at purchasing software to direct recover your files from the 1's and 0's of the bits themselves on the external drive as it appears your directory or something is hosed.
    Software that comes to mind is DataRescue $99 which you can download and test first before buying, then send the recovered files to another blank external drive.
    Once you've got your files recovered, then your all set to mess around and experiment.
    Try to access the files with the program version that originally created them, I'm not all that up to speed on iMovie, but I do know there are issues with using older Apple software versions with newer version altered files.

  • How can I open in java file a text file?

    Hi !
    For example I have a java file name Pencil.java and I have a text fie name Box.txt
    I want like that if ( a == b ) {open Box.txt}
    How can I do that ?
    Thanks.

    Yes I want to see what this text file contains. Like clicking to a text file with mouse and opens. Then I can see what it contains.
    I have a Java document Pencil.java and I have a text file Box.txt
    I will write a java code in pencil.java ( that I dont know ). Then when I enter a number from keyboard with
    Scanner write = new Scanner(System.in);
    int a = write.nextInt()
    if (a == b) {                } opens Box.txt
    For example
    I write to command prompt
    java pencil
    It wants from me a number : I will enter 3.
    It is same as b .
    Then Box.txt file opens.
    Edited by: zue on Jun 3, 2008 11:04 AM

  • PDF created using Java iText package - Text not editable and not displaying font properties on Acrobat

    Hi,
    I have an issue in editing the text and viewing the font properties of a text region on a PDF created using Java iText package.
    I use Adobe Acrobat 9 Pro Extended and the option Tools -> Advanced Editing -> TouchUp Text Tool.
    The strange behaviour is that, I have 2 PDFs created out of the same base PDF and text added via Java iText package with the same Text, Font and other properties.
    One of the PDF has the text region editable on Acrobat but the other one has the text region which is not editable.
    But both the PDFs are editable via Adobe Illustrator.
    I have attached both the PDFs for your reference
    PDF_Editable.pdf - Editable on Acrobat
    PDF_Not Editable.pdf - Not Editable on Acrobat
    Any help or insight to find out the difference/issue with the PDF which is not editable via Acrobat would be appreciated.
    Thanks in advance.
    Regards,
    Madhusoodhan Henryraman

    You don't have direct control of the leading of a multiline text field. A common approach is to control the background color of the field with JavaScript since the lines are not really needed when the field is used in Reader/Acrobat. They may be useful when using the form by hand. For more information, see the posts by Max in this topic: http://acrobatusers.com/forum/forms-acrobat/how-do-i-use-multi-lined-text-fields-over-prin ted-line-area-existing-form

  • Printing text in last page main window of a script

    Hi All,
           I want to print some text at the bottom of last page main window.But how can we find that it is last page.I mean which condition we have to put for that.
    I think the below condition like
    If last-page NE ' 0'.
    write : '----
    '..........   will be used for printing at last page footer window.
    what about main window........how to find that it is the main window of last page............
    Thanks in advance ....
    Regards,
    Rakesh.

    Hi,
    you can use this
    IF NEXT_PAGE EQ ' 0 '.
    write the text here.
    ENDIF.
    in the main window itself. Once all the records got printed, it will check that there is no next page. at that time, that was the end of the internal table in the mainwindow and the text will be printed.
    If you want a seperate window, then also the same logic will work.
    If you want a seperate window, then the output look and feel will not be so good.
    I mean where ever the last record got completed, it will print the text if you put it in Main window. other wise statically it will print at a particular position where your window was placed.
    Regards,
    Venkatesh

  • Is JMS the right java technology for text message management

    I hope to get some feedback on the following:
    We get text weather forecast messages sent to our server (or we grab them), after we get these messages we parse them to xml, then archive and redistribute them to other servers using (wget). All this
    is done using perl scripts.
    I'd like to choose a java-based technology that ttracks message flow (e.g., messages arrive, messages late, etc), then
    parse to xml and redistribute these text messages.
    Can any users tell me if JMS might be appropriate for this task?
    Thank you beforehand.
    C

    From your brief description it looks to me like JMS is a technology for you.

  • How to get text of Last SQL Query

    Sorry if this has been covered, but the search page keeps erring on me.
    I am trying to figure out how to get the text of the last SQL statement executed (succesfully or unsuccesfully) by my current login.
    What it is, is i want in the exception handler of my procedure to be able to dump the text of the Query which was last run into the log file.
    Any help with this will be greatly appreciated!
    Thanks in advance,
    Aaron.
    [email protected]

    Well, ive been trying V$SQLTEXT in conjunction with V$SESSION and USERENV('SESSIONID'). This gets me my SQL statements, but the SQL_HASH_VALUE and PREV_HASH_VALUE, which are supposed to be the current and previous statements respectively always are the same and always point to the current statement..... is there some sort of flag you have to set to get PREV_HASH_VALUE (and PREV_SQL_ADDR) to actually point to the **PREVIOUS** statement??

  • Java Dictionary and Text

    Hello,
      I'm creating an application that requires me to store a large amount of text (around 5000 characters).  The first part of the dilema is how I should persist the data in the java dictionary.  Should I just create one large field?  Or do I need to do something complex and split up each text into smaller lines and have some retrieval method?  The next part of the question has to do with searching this text.  What is the best way to make this text searchable?  Any ideas are much appreciated.
    Thanks,
    Dustin Gronso

    Hi Dustin,
    if you want to have the text searchable, you have to split it up. For columns of type 'string' there are two possibilities in the Data Dictonary:
    1. varchar: the length is limited to 1000 characters, but you can search with a WHERE condition
    2. CLOB allows longer length, but no index or WHERE condition for this column is possible.
    Hope this helps,
    Juergen

Maybe you are looking for