Plz help me with the font problem T_T

Could you help me with this problem ?
Here's my code :
Font font = new Font("Arial", Font.BOLD, 12);
Map fontAttributes = new HashMap();
fontAttributes.put(TextAttribute.WEIGHT, TextAttribute.WEIGHT_ULTRABOLD);
font = font.deriveFont(fontAttributes);I use this font in the graphics.drawString() method, but it seems like the text is drawn with PLAIN style, no effect of bold at all.
If i change the WEIGHT_ULTRABOLD to WEIGHT_BOLD, it works, the text is drawn with BOLD style.
I wonder what is wrong ? I really want the BOLD to be 'bolder', thicker ^.^
Or is there any other approaches to this ?
Helppp meeeee plzzzz

I see the same thing.
The API for TextAttribute describes WEIGHT_ULTRAWEIGHT as
specifying "The heaviest predefined weight", but as you point out
you get plain rather than bold.
This bug (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4920831)
describes the problem:
"Fonts can be created using TextAttributes in a Map. Unlike the standard
Font constructor, which just uses a boolean 'bold' bit in the style mask,
the Map can provide a range of values for WEIGHT. In JDK 1.4.2 and 1.5,
only the weight coresponding to WEIGHT_BOLD creates a bold font-- the
rest are plain. At a minimum, all values for TextAttribute.WEIGHT that are
greater than the value for WEIGHT_BOLD should also create a bold font.
"Furthermore, different weights should (to a point) result in fonts that
appear to be of different weights, even if there are no corresponding
underlying fonts. Fonts of increasing weight should display with a
corresponding increase in boldness.
"Changes in weight should not necessarily cause a change in advance.
Synthesized weight changes should impact advance minimally, if at all."
The evaluation claims that "WEIGHT >= WEIGHT_BOLD will cause a
Bold font", but I don't see it (compiled and ran basically your code
with 1.5.0_04).

Similar Messages

  • HI ,We would like to ask you to help us with the following problem

    We would like to ask you to help us with the following problem. As usual we tried to post unmatched received advance payment which is subject to output VAT via transaction SM35. Normally we post the payment to account 501020 (Advances Received from Operating Activities), we generate output VAT by clicking on u201CSimulate Taxu201D. Then we simulate the document and four lines are automatically generated (please see the attached scan of such document posted recently):
    40           510000 (Trade Receivables - Receive from Bank)
    19           501020 (Advances Received from Operating Activities)
    50           400000 (Output Tax (Sales Tax Payable))
    40           405033 (Customer Advances VAT)
    However when we tried to post it today it is not possible and an error message u201CTax clearing account 405033 may not have open item managementu201D appears u2013 please see the scanned printscreen. This did not happen in the past.
    We would appreciate if you could solve it as soon as possible as we still need to post it to period 12.

    Hello
    You execute the t/code FS00 for G/l 405033 and go the control tab select tick in open item mgt under act mgt in co.code.
    Regards
    Avijit

  • Plz help me with the workflow.........

    I'm trying my level best to mould my expectations according to the software but till now no success,can you plz explain
    to make the timeline less cluttered and organized we make secondary storylines and compound clips
    since you can't keep too many things in order in a big project you take a portion ,compound it , work in it and come back,
    within the compound clip you put transitions and some secondary storylines get created automatically within the compound clip due to applying transitions.
    When you come back to the main timeline there are several times you have to break apart that compound clip,to now add more shots before and after those individual arrangement of clips ......
    but since it has a secondary storyline in it, it break aparts undoing all the transitions
    if instead of compound clip it is a secondary storyline it creates problem if we have to retime clips the clip again and again leaves its assigned position,nor does it eat on or overlapp the slug it has created with a P tool , when dragged,retiming it increases that clip in both directions thus leaving the assigned place......,or with opacity overlapping or for split screen have to be controlled individually from within the secondary clip in association with another clip below it...........at that moment you definately want to break it apart......
    (I'm assuming that you are understanding I have to work in several layers sometimes six or seven due to complex overlapping ,split screen, keying and titles etc which you can't keep in a linear order)
    Now plz suggest how should I work,
    in my music videos there are more than 300 bits of clips in a 5 minute song......in several layers because of mulitilayer opacity effect and split screens
    it is not possible to cut all the clips first and then put transitions in the end because you have to try arrangement of clips with transitions to see if you get the proper feel of the music else you change the order.......plz suggest me a better work flow.....
    I cannot keyword things in the event browser because keywording such huge number of moments including 2-3 second shots is simply impossible because the process of trying various combinations can only be done when you have them all on the timeline in various layers..........how should I begin and what process should I stick to so that I edit portions finish them come back to main timeline and everything remains unaltered.........Thank you plz help.

    So does this mean......If you can't drag your final work directly from the event browser from the beginning , you are in trouble ?
    Thanks Tom ......................I know you cannot make this software work the way you want the only workflow I see possible is making event browser , the source of your footage at the very start of your project....as if you have planned the editing of all those 300 bits of a music video on the paper before hand......be it organizing clips or using split screen generators the source has to be from the event browser ,once clips are on the timeline the possibilities are too limited.......
    The only way of categorizing clips on timeline are roles which only unhighlight other clips ....it again cannot be used like a selected list of source to make the place less messy.....I think even smart collection works from the event browser not from the timeline because I tried that also.Is it so....?
    A FANTASY ....I wish there was a way where you could select selective clips from the timeline and refer them in a place from where they would all show up like original clips from the event browser so that you could just drag those exact pieces and place one after the other trying combinations and boom........ like you do parts from clips ......but once everything is on timeline I have still not figured out a way that you can have a bank where all those selected bits can be seen even as reference thumbnails and a then they can be placed sequentially on a timeline........dragging , move and pasting , flipping between timelines is the only way of doing it neatly,and that is very tiring and time consuming .....when two timelines can also not be placed in two windows.......I hope you are understanding what I want.......if you can't drag your final work directly from the event browser from the beginning , you are in trouble.
    In earlier versions you could atleast keep all your selected 2-3 second bits or shots on various tracks and just drag them in the final track.....Is there anyway you think can be done in fcpx......I use it because it has some outstanding features other than layers .....else still have to figure out a way....plz help Tom.

  • Can u plz help me with the code to add BWART field to the DS:2LIS_04_P_COMP

    I want to add BWART field from AUFM table to the DS:2LIS_04_P_COMP.
    The AUFM table has key fields as :MBLNR,MJAHR and ZEILE.Can someone plz help with the code to put in the existing function module.I see that both 2LIS_04_P_COMP and AUFM have common field AUFNR process order.
    Plz help ASAP.

    I want to add BWART field from AUFM table to the DS:2LIS_04_P_COMP.
    The AUFM table has key fields as :MBLNR,MJAHR and ZEILE.Can someone plz help with the code to put in the existing function module.I see that both 2LIS_04_P_COMP and AUFM have common field AUFNR process order.
    Plz help ASAP.

  • Help (again) with the payroll problems

    I have seen some posts about the payroll program that we students are trying to figure out. I am having some of the same problems which I have been able to sort through, but I am having a problem that I can't make go away!
    My error is this:
    cannot find symbol
    symbol: variable input
    Here is the work-in-progress code:
    public class PayrollProgram {
    /** Creates a new instance of PayrollProgram */
    public PayrollProgram() {
    //main method begins execution of Payroll Program java application
    public static void main(String[]args)
    double number1; // rate
    double number2; // hours
    double product; // total pay
    System.out.println("Please enter your name:");//prompt
    String nameOfEmployee=input.nextLine();
    System.out.print("Enter rate:$");//prompt
    number1 = input.nextDouble(); // read first number
    System.out.print( "Enter hours: " ); // prompt
    number2 = input.nextDouble(); // read second number
    product = number1 * number2; // multiply numbers
    System.out.printf("%s makes $%.2f%n",nameOfEmployee,product);
    } //end method main
    } //end class PayrollProgram
    I am stuck and don't know where the opening of the paper bag is!
    Thanks!

    String nameOfEmployee=input.nextLine();Do you have a variable called input that you have declared somewhere? I can't find it and neither can the compiler, hence the error.

  • Plz help me with the compaitble ram module

    hey
    i have a problem getting the RIGHT ram module. i got a MacBook Pro 15.4-inch 2.16GHz Core 2
    Duo (MA609LL/A)
    i wanna 2g ram. the one i bought (2GB SODIMM LOW DDR2 PC5300 667MHZ)worked for 40 days and then died. so i dunno what it is id need to buy.
    here's what the vendor had to say in reponse,
    +At first glance , I thought that memory was just bad and regular exchange+
    +would work . But after reading one post online, I contacted manufacturer+
    support.
    +This is unique scenario for you. You do need LOW density memory module for+
    +Apple MacBook Pro 2.16GHz Intel Core 2 Duo (15.4-inch) Laptop, but your System+
    +manufacturer is picky. What they need is not same spec as we have advertised.+
    +Their requirement is slightly different and there is cost difference.+
    +These are two Options for you+
    +Option 1 : Refund
    +Option 2 : Upgrade+
    +Option 2A : Memory upgrade from OEM manufacture. We have purchased from them+
    +and they are reliable. Price difference is low and it is what you need without+
    +spending bunch with major manufacturer. Cost difference is $ 17.50+
    +Option 2B : Memory upgrade from Major manufacturer as specifically recommended+
    +by Manufacturer.. Price difference is high but then you know it is what you+
    +have been asked by manufacturer to have . Cost difference is $ 18.50+
    +Thank you+

    Crucial is 1000x better and more reliable than some random seller on Ebay. I wouldn't buy RAM from Ebay, especially when you can get the same thing for $1.00 more from a much more reputable seller.
    If you have 1GB of RAM now, an upgrade to 2GB will make a big difference. I've enclosed links below to single 2GB chips that will be compatible with your MBP from both Crucial and OWC.
    CRUCIAL
    OWC
    You can decide which you like better, they are both $48.99 I believe.
    same thing to me, except for the brand name, i guess.
    The brand name is relatively important with RAM. Macs are selective about good quality RAM; dodgy RAM from just any random seller on Ebay may not work, as you found out. With either of these resellers, you also get a lifetime warranty. Anyone on these forums will tell you that they will stand firmly behind their product if it ever fails. Ever. You can't get any better than that.
    doesn't apple make one one of these? an apple brand?
    No. Apple uses third-party RAM in all of its machines. Apple does not make its own brand of RAM.
    --Travis

  • Plz help me with the internal frames

    hi,.
    i have design mainframe of my application contain some jinternalframes
    .but these internal frames are not properly working since my mainframe contain borderlayout , mainframe also contain some menubar ,toolbar,jtable .so whenever i call my internalframes these frames just get behind my jtable . whenever i shift the border layout to
    east or west or north the internalframes just get shift inthe given space .actually by default i have border layout as center.when shift my layout to flow layout menubar,toolbar, every thing get shifted , so another problems occur. if iam using flow layout the size of the internalframes remain the same as setted in the code. else in the borderlayout it acqurie the whole of the desktopPane.and no resize code works on it. setsize,setbound,sestpreffredsize,dimension non of these method work.
    thanx for now hope u will slove my problems .

    Read the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/components/internalframe.html]How to Use Internal Frames. You add a JDesktopPane to the contentPane and then add the JInternalFrames to the desktop pane.
    If you want to add other components to the GUI then you add them to some other part of the content pane. You don't mix other Swing components and internal frame on the desktop pane.

  • Please help me with the debugger problem

    I got some error information from ST22 shows below.
    Information on where terminated 
    Termination occurred in the ABAP program "CL_GUI_FRONTEND_SERVICES======CP" - 
    in "CONSTRUCTOR". 
    The main program was "SAPMSSY1 ". 
    In the source code you have the termination point in line 28 
    of the (Include) program "CL_GUI_FRONTEND_SERVICES======CM002". 
    I want to locate the codes where the error happens, so I think I can set a breakpoint at source codes as below, but the SAP system gives me the error: the breakpoints could not be created due to incorrect entry.
    program: SAPMSSY1
    include: CL_GUI_FRONTEND_SERVICES======CM002
    row: 28
    Could you please give me some ideas how to set the breakpoint? Thanks a lot.
    Best,
    Bing

    Hi
    Execute the program in the Debuggin mode.
    In the Debugger Window
    Select Breakpoint -> Break point at -> Breakpoint at source code Menu Item and enter the details of the program/include/line no..
    Activate the System Debugger On from the Settings Menu.
    Hope this would help you.
    Murthy
    Edited by: Kalyanam Seetha Rama Murthy on Jul 18, 2008 7:20 AM

  • Please help me with the debug problem

    Hi all,
    I meet an error when I am trying to modify a ABAP program got from my previous coworker. From the dump, I can know which program (say programERROR) the error occurs in, but I don't know which program calls this programERROR. Since there are so many programs call other ones, I cannot manually look up the codes and find the caller.
    Does anyone have some ideas about how to find the calling order, like  programStart calls programA, and then programA calls programERROR?
    Thank you very much,
    Bing

    May be try to use program RS_ABAP_SOURCE_SCAN to scan

  • Please help me with the forward problem

    Hi,
    I have a jsp page which has a submit button. When the submit button is invoked control transfers to a servlet. I do some processing in the post method of servlet and then control gets transfer back to the same jsp page. Following is the code of post method of servlet:
    protected void doPost(HttpServletRequest aRequest, HttpServletResponse aResponse)
    throws ServletException, IOException {
    processRequest(aRequest, aResponse);
    aRequest.setAttribute("result", "every thing is ok");
    RequestDispatcher aDispatcher = aRequest.getRequestDispatcher("growth/promotion.jsp");
    aDispatcher.forward(aRequest, aResponse);
    First when I start the application my url is: http://localhost:8084/salesgroup/growth/promotion.jsp
    After code returns from servlet I was expecting to see the same url instead the url I see is the following:
    http://localhost:8084/salesgroup/Controller
    Controller is the servlet class. What I am doing worng. Because of this my page does not get render the way it suppose to be. Lot of things are missing from the page.
    Any idea why this is happening?
    Thank you in advance.

    the code should work.
    try using sendRedirect as a temporary solution.
    Have you done any Exception handling in the code?
    Make sure that there is no exception in the controller servlet.
    Lastly, also make sure that your code reaches the forward method by putting some debug statements.
    Rohan

  • There is a problem with the font size of the itouch 4.

    I was given a new ipod touch gen4th (ios 4.3.5) by the Apple authorized repair centre in Hong Kong three days ago. However. i found that there is a problem with the font size of it. It is different from my original one. Either the playlist or the words in the webpages , the font size is not uniform. Most of the words are boldfaced. Sometimes, there are some words are smaller in size. I don't know whether I can or cannot figure out the problem and tackle it, so, should I take it back to the repair centre? Or does anybody help me to fix it or give me some suggestions? Millions of thank.

    What language is set in Setting>General>International?
    Have you tried the standard fixes:
    - Reset:
    Reset iPod touch:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    - Restore from backup
    - Restore to factoery defaults/new iPod

  • Can someone help me with an iCloud problem when I take a picture with my iPhone 4s it some of the times go to my ipad2 but mostly it doesn't can anyone help me out

    Can someone help me with an iCloud problem when I take a picture with my iPhone 4s it some of the times go to my ipad2 but mostly it doesn't can anyone help me out

    I'm assuming you have Photo Stream set up of both devices.  However, it seems many users are experiencing the same as you - my take is that streaming photos is not foolproof yet.

  • Please help me with the digital signature validation problem?

    Please help me with the digital signature validation problem?

    Hi
    Execute the program in the Debuggin mode.
    In the Debugger Window
    Select Breakpoint -> Break point at -> Breakpoint at source code Menu Item and enter the details of the program/include/line no..
    Activate the System Debugger On from the Settings Menu.
    Hope this would help you.
    Murthy
    Edited by: Kalyanam Seetha Rama Murthy on Jul 18, 2008 7:20 AM

  • HT1338 Could you please help me with the problem. I have mac os 10.7.4 on my macbook pro retina and want to update it to 10.7.5. I had been waiting for 2 hours to do it, but then it appeared that it was impossible. What should I do?

    Could you please help me with the problem. I have macbook with retina with mac os 10.7.4 ann want to update it to mac os 10.7.5. I had been waiting for 2 hours to do it and had tried 3 times but it appeared that it was impossible. What should I do?

    You can download the standalone updates:
    OS X Lion Update 10.7.5 (Client Combo)
    OS X Lion 10.7.5 Supplemental Update

  • HT201210 Hey,I've got a problem on my iPad mini for a few days now?My iPad is in recovery mode at the moment and I Cannot restore my Ipad with iTunes...Can anyone help me with the solution?Each of your helps will be appreciate

    Hey,I've got a problem on my iPad mini for a few days now?My iPad is in recovery mode at the moment and I Cannot restore my Ipad with iTunes...Can anyone help me with the solution?Each of your helps will be appreciate...Thanks for all the helps...

    Follow step 1 to 6 closely to recover your iPad.
    http://support.apple.com/kb/HT1808
    Note: You may have to repeat the above a few times

Maybe you are looking for

  • Error while invoking a EBS

    Hi, I created an BPEL process process and tried to invoke an ESB process. ESB process is created using EBS. while i am trying to initiate the process with out any input in BPELconsole it is giving error that 'Could not initiate the BPEL process becau

  • To run GUI_DOWNLOAD in Background

    hi, i lokesh, i am trying to run GUI_DOWNLOAD in background, i am not able to get file in legacy. bcs the reason is in Background that is not unable to find File Type what we are given in file path, so is there any solution for this. if any body know

  • HT3472 does apple iphone 5 earphone will support apple ipod 3 generation? my 3 gen ipod is not supporting

    does apple iphone 5 earphone will support apple ipod shuffle 3 generation? my 3 gen ipod is not supporting. please help me out to solve the issue.if any third party earphones support please let me know

  • Translating titles

    I am having problems editing my titles. I am using the included Typewriter text effect and had a happy accident where I was able to translate the text on the Z-axis and rotate it along the central X-axis, making it look like it's coming out of the sc

  • Doesn't load or open any website pages; only remains on a blank new tab

    Hey I am having problems with my firefox. When it opens it displays the defult mozilla page like usual. However when I try to open a site such as google.com or facebook.com, it just remains on the default page. Even when I try doing it on a blank new