Problem with printing perfomance when using a fixed width font

Hello.
I'm using the java.awt.print.Printable interface for printing text.
Everything works fine when I choose a font like Serif.
When I choose a fixed width font, like Courier, the printing becomes too slow!!!
Any Idea?
My code looks like that :
private int sizeFont = 10;
private font myFont = new Font ("Courier", Font.PLAIN, sizeFont);
public int print(Graphics g, PageFormat pf, int indice)
Graphics2D g2=(Graphics2D)g;
while(myCondition){
g2.drawString(myString,0,0);
g2.translate(0,this.sizeFont);
return Printable.PAGE_EXISTS;

If it interests someone, I have found a solution :
do not use "Courier", but "Courier New" .

Similar Messages

  • PROBLEM WITH ALT-V WHEN USING CROATIAN KEYBOARD

    Hi,
    When Typing ALT GR+V (@ sign) in Croatian Keyboard, all the text from clipboard is copied into the text box (as it is pressed CTRL+V) plus the @sign.
    There were some bugs filed long back regarding a similar issue for the German keyboard where the customer was using the AltGr key for special characters, same as in our case.
    Below is the list of those bugs:
    (1)     Bug 757614: GERMAN USERS CANNOT USE ALT-GR KEY TO GET SPECIAL CHARACTERS
    (2)     666925
    (3)     767865
    (4)     768658
    I have gone through the descriptions and mail chains mentioned in these bugs, and it seems that the issue was fixed in OJDK.
    Please go through the above mentioned bugs once to get more details.
    It seems that this is not ORMS issue. It seems to be an Oracle Forms or OJDK issue.
    Can someone please advise on this as why is this happening. We are using Oracle Forms 10g.
    Thanks and Regards,
    Ashwini Swaroop Pradhan

    Tom Gewecke wrote:
    w/ all the keyboards and language settings.
    What do you mean by that? The problem being talked about here is an inability to make French accented characters on a German keyboard. What is your problem exactly?
    I've posted here because I guess it may be the same bug.
    After upgrading I wasn't able to do special characters, including some accented vocals, like "ì", very common in italian language.
    Then I've added an english keyboard, removed the italian one and added it again, so the problem with missing accented vocals was solved.
    I still have the same problem with special consonants, like "z" and "c": if I hold my thumb on such letters, I have no options like, say, "ż" (such characters are very important for my field (linguistics) and if Apple won't solve this problem I'll be forced to look elsewhere).

  • Problem with JMS migration when using Ctrl+C to stop the managed server in cluster

              Hi,
              I am having a clustered weblogic application running on Weblogic 7.0 SP5. My application
              uses JMS as a asynchrous communication. We have MDB which listens to these JMS
              messages.
              If something is being processed on Managed Server 1 and while the request is in
              process, i am stopping the the MAnaged SErver 1 using Ctrl+C.
              After this, i go to admin console and migrate teh JTA and JMS. After this, i am
              expecting other running Managed Server should restart the incomplete transaction.
              But this is not happening. The Managed Serve2 doesn't process the requst.
              But when i restart teh MAnaged SErver 1 again, it takes up the same request and
              processes it.
              Is this a known problem with Weblogic that it doesn't support Ctlr+C case?
              Please note that the same thing is working fine when i stop the server using Admin
              console(Normal shutdown OR forced shutdown).
              Any comments in this regards are apprecciated.
              Thanks,
              Naresh
              

              Hi,
              I am having a clustered weblogic application running on Weblogic 7.0 SP5. My application
              uses JMS as a asynchrous communication. We have MDB which listens to these JMS
              messages.
              If something is being processed on Managed Server 1 and while the request is in
              process, i am stopping the the MAnaged SErver 1 using Ctrl+C.
              After this, i go to admin console and migrate teh JTA and JMS. After this, i am
              expecting other running Managed Server should restart the incomplete transaction.
              But this is not happening. The Managed Serve2 doesn't process the requst.
              But when i restart teh MAnaged SErver 1 again, it takes up the same request and
              processes it.
              Is this a known problem with Weblogic that it doesn't support Ctlr+C case?
              Please note that the same thing is working fine when i stop the server using Admin
              console(Normal shutdown OR forced shutdown).
              Any comments in this regards are apprecciated.
              Thanks,
              Naresh
              

  • Ibook G4 having  problem with airport connection when using secure network

    Hi,
    I am currently using a brand new Macbook. I am connected wirelessly to a Comcast network through my Netgear Wireless-N 150 router model WNR 1000. The problem I am having is with the 4 year old ibook when I go to use the airport and connect to my existing network it says the password is incorrect. I spent time troubleshooting this with Netgear and basically we found out that the ibook does connect with the network when there is no security at all.
    I erased the hard drive on this ibook to prepare it for sale and it is back to the factory settings. Is there some kind of firmware or drivers I am missing to use the airport as described?? I want to be able to show the buyer that the internet works etc. I also may want to install a few things on the ibook before the sale.
    Thanks a mil
    Message was edited by: omshanti

    Did you reset the wireless router to see if by default, it has a different
    wireless security then, than however it presently is set up?
    The question you pose appears to be marked "answered or solved."
    When you reinstall an OS X, the setup asks if you have an existing
    wireless connection, or if you will be getting a new one; by default,
    the setup will make the existing one the automatic one for OS X.
    You should not have to add passwords or other, unless there has
    been one set in KeyChain or for the specific wireless base in question.
    Tiger 10.4.x does not require you to have a set password for wi-fi,
    but you will find several levels of secure options available in OS X.
    Not sure why your setup and configuration is problematic. Usually,
    a totally new OS X installation is without issue. Sometimes, you
    may have to administer a base station via Ethernet cable before
    some configurations can use it, but an existing network should be
    easy, unless it already has a password security in place.
    The Mac will work without a password-protected wi-fi internet source;
    often it will 'just work' even when moved to a new environment and
    a neighbor's network, if not password protected, will appear among
    other options in your vicinity and it will be automatically available.
    Not sure if any newer OS X update parts, from the Combo update
    files to take Tiger 10.4 to 10.4.11, plus others, would help the Mac
    connect better to whatever wireless source of internet available.
    I've not had that issue, as you state, except for when someone has
    a protected network or passwords in place. Mine has passwords to
    keep unauthorized neighbors from easy access; just in case.
    In remote locations where few neighbors exist who could access wi-fi
    from a lone source, no wireless security settings at all, work just fine.
    I've done that; and found a little greater range was gained in signals.
    And in the city (largest town in state) a computer I'd set up for use in
    a password protected wi-fi network - later worked fine and found the
    new owner's own wi-fi network without issues; and I had let the OSX
    setup assistant do its job. If a local network is protected by WEP or
    WPA2, etc with a password, one would be needed to access it. If not,
    then the connection should be automatic.
    Good luck & happy computing!

  • I have been having problems with YouTube functionality when using Firefox, some of them having begun with the latest Firefox update

    After a fairly recent update, I began having the option to paste text disappear, I've had backspace cause the browser to go back to the previous page while in a text box, and other issues which are apparently a matter of Firefox not recognizing the fact that I am typing in a text box.
    After the last update, suddenly YouTube video page URL links no longer translate into links containing the title of the video, and also things like the use of bookend asterisks in order to have text appear in bold typeface no longer work.

    i have the same problem with the above..firefox is running too slow with the games in facebook..but it runs good when browsing my updates, msgs, photos...firefox is totally opposite of IE..IE is faster with the games and slow while browsing..i love to use mozila but when i do games it really pisses me off...hope you could help me..

  • Problems with My Nano when using Accessories

    I bought my nano in November and haven't had any problem with it...until now. For x-mas I got an ITrip and a music station. My Nano doesn't like them. It worked once, and then stopped working. I took my nano to an Apple Store where they reset everything. It worked...for a day and now my nano won't play music through the ITrip or music station! Any ideas because I don't want to reset it and then re-load everything when I want to use my accessories. Thanks!
    Nano-4g   Windows XP  
      Windows XP  

    Hello Ashers,
    Welcome to Apple Discussions.
    I don't want to reset it and then re-load everything when I want to use my accessories.
    Resetting will not delete songs/photos from your nano. Sometimes there's a glitch in the nano, where you would have to reset:
    Resetting iPod
    The next time when you plug your nano to your iTrip and music station, you might want to try turning your nano on first. See if that helps.
    Gary

  • Problems with USB device when using WindowsNT

    Hi,
    my problem is that I want to use a simulator which can only be connected with USB to the computer.
    I used the VISA Driver Development Wizard as discribed in this link (http://zone.ni.com/devzone/conceptd.nsf/webmain/6792BAB18242082786256DD7006B6416) and it didn't work.
    I'm using Windows NT and VISA 3.1 and I read that it isn't possible to create a USB connection with VISA when using Windows NT. So my questions
    1) is this right
    2) Has someone a idea what I can do? I tried to use VISA USB Control and this also didn't work.
    I hope I discribed my problem detailed enough. It's my first post.
    Thanks for your responses
    Joerg

    As you can see in this table, USB is not supported by VISA under NT:
    http://digital.ni.com/public.nsf/websearch/EE34F21ECC2BE01286256C52005D1A1F?OpenDocument
    I would recommend to use Win2000 or XP. Using one of these OSes you could use this turorial  to create your VISA-driver:
    http://zone.ni.com/devzone/devzoneweb.nsf/Opendoc?openagent&1D0DD81FF1448CAE86256D90006EE2B4
    If it is not posssible to change the OS, you have to look for other ways of programming your usb-device. Check the web or the Microsoft site for help concerning Windows SDK and USB.
    Hope this helps a little!

  • Problem with path length when using oracle drive

    Hello!
    Does anybody else experience this problem with Oracle Drive?
    When I create a deep or nested hierarchy in which the path length is longer than 250 (the limit might be 255) characters, I cannot access the deeper subpages.
    Example:"X:\INET\START1\pfadlaengentest\das istein langer ordnername mit etwa 50 zeichen\and this is another veryveryvery long\and this is another veryveryvery lon2\and this is another veryveryvery lon3\and this is another veryveryvery lon4\and this is another veryveryvery lon5".
    I can access the page "and this is another veryveryvery lon4" but not "and this is another veryveryvery lon5"
    Is this problem due to WebDAV?
    What can I do - I think it is a critical error / bug?
    Regards Joerg.

    I opened a service request and oracle support could help me.
    The problem is the windows file system: the path length cannot be longer than 256 chars.
    There's a workaround with MS-Webfolders.
    More information is available via metalink: watch out for SR-Number 5659267.992.
    PS: Thanks to Bert
    bye :-j (joerg)

  • Problem with page size when using redirected printer

    I have a customer who connects to another customer's network via VPN, then logs into and RDS server running Server 2012.
    This customer then opens an Excel file and tries to print it out to a printer that is local to her and of course shows as redirected when looking at Devices and Printers in her login on the RDS server.
    The problem is that when going to File / Print on the Excel document, the page size is listed as Custom Size and if you try to select any other size from the list, it won't accept it and stays at custom size. If she selects another redirected local printer,
    she can choose whatever page size she wants.
    This is not selecting the paper size. She can change that on either redirected printer. So when she is trying to print an Excel file on legal size paper, the print comes out reduced as if it is trying to print on letter size paper even though legal size
    paper is selected.
    I hope my description is clear enough. If not, please let me know and I'll try to explain further. So I'm trying to find how to fix this one redirected printer (a Brother MFC-7860DW) so that she can change the page size so when the document prints it occupies
    the full sheet of legal size paper.
    Jonathan

    Is there is a difference in printer driver for working and non-working redirected printers? If yes, can you match it?
    Do you see the same behavior if you use Generic Text Only inbox driver?
    Thanks
    Hari Kumar --- Disclaimer: This posting is provided AS-IS with no warranties or guarantees and confers no rights

  • Problem with data integration when using KCLJ

    Hello,
    For a project, I had to integrate a new field using transaction KCLJ.
    For this I extented the DDIC structure of the sender structure, and after that, I updated the corresponding transfer rules.
    When I execute transaction KCLJ I have no error, and table BUT000 is updated with the data of the flat file.
    The problem is that erase also 6 BUT000's fields; they're not in the sender structure and so, have no transfer rules.
    Could you help me ?

    Hi
    Please read this.
    External Data Transfer
    These activities are not relevant if you use a CRM/EBP system.
    In the following activities you make definitions for transfer of business partner data or business partner relationship data from an external system to a SAP System.
    Data transfer takes place in several stages:
    1. Relevant data is read from the external system and placed in a sequential file by the data selection program. The data structure of the file is defined in the sender structure.
    This procedure takes place outside of the SAP environment and is not supported by SAP programs. For this reason, data changes can be made at this point by the data selection program.
    2. The sequential file is stored on an application server or a presentation server.
    3. The SAP transfer program reads data from the file and places this in the sender structure. This does not change the data. This step is carried out internally by the system and does not affect the user.
    4. Following transfer rules that have to be defined, the transfer program takes the data from the sender structure and places it in the receiver structure. During this step you can change or convert data.
    The receiver structure is firmly defined in the SAP system. Assignment of the sender structure to the transfer program, and of the transfer program to the receiver structure is made using a defined transfer category.
    5. The data records in the receiver structure are processed one after the other and, if they do not contain any errors, they are saved in the database.
    Before you transfer external data for the first time, make the following determinations:
    The structure of the data in the external system may not match the structure expected by the SAP system. You may have to supplement data.
    There are two ways in which you can adapt the structure:
    You make the required conversions and enhancements within the data selection program prior to beginning the transfer to the SAP system. This will be the most practical solution in most cases since you have the most freedom at this point.
    You do the conversion using a specially developed transfer program and transfer rules.
    You then define the fields of the sender structure. The system offers you the option of automatically generating a sender structure that is compatible with the receiver structure.
    You define transfer rules to create rules according to which the fields of the sender structure are linked with those of the receiver structure.
    You now carry out the transfer.
    SAP Enhancements for External Data Transfer
    The following SAP enhancements are offered in the following areas of External Data Transfer:
    Four Customer Exits exist for the data transfer or for the conversion from IDOC segments. The Exits are contained in the enhancement KKCD0001. As soon as the Customer Exits are activated, they are carried out for all sender structures or segments. The first two Customer Exits require minimal coding once they are activated. The sender structure concept is used when loading data into the SAP-System. The concept Segment is used in the context of the distribution of the SAP-System. It is a matter of a record of data to be transferred or converted. It is recommendable to code a CASE -instruction within the Customer Exit, where (differentiated according to sender structure (REPID) or segment) various coding is accessed. In the parameter REPID, the name of the segment for the conversion from IDOC segments. The parameter GRPID is not filled out with the conversion from IDOC segments. You should have a WHEN OTHERS branch within the CASE instruction, in which the 'SENDER_SET' is allocated to the 'SENDER_SET_NEW' or the 'RECEIVER_SET' to the 'RECEIVER_SET_NEW'. Utherwise the return code will have its initial value. You can view a possible solution in Code sample.
    The first Customer Exit is accessed before the summarizing or conversion. It is called up as follows:
    CALL CUSTOMER-FUNCTION '001'      EXPORTING            GRPID          = GRPID       "Origin            REPID          = REPID       "Sender program           SENDER_SET     = SENDER_SET  "Sender record      IMPORTING           SENDER_SET_NEW = SENDER_SET  "modified sender record            SUBRC          = SUBRC.      "Returncode
    If the variable 'SUBRC' is initial, the modified record is edited further or else passed over. The import parameter 'SENDER_SET_NEW ' must be filled out in the Customer Exit, as only this field and not the field 'SENDER_SET is further edited. This also especially means that you must allocate the import parameter 'SENDER_SET_NEW' the value of 'SENDER_SET' for records, for which no special handling will be carried out otherwise.
    The second Customer Exit is accessed after the summarization and before the update:
    CALL CUSTOMER-FUNCTION '002'   EXPORTING     REPID            = REPID           "Senderprogramm     GRPID            = GRPID           "Herkunft     RECEIVER_SET     = RECEIVER_SET    "verdichteter Satz   IMPORTING     RECEIVER_SET_NEW = RECEIVER_SET    "modifizierter verdichteter Satz     SUBRC            = SUBRC.          "Returncode
    The modified record is only updated if the variable 'SUBRC'
    is initial.
    The import parameter 'RECEIVER_SET_NEW' must be filled out in the Customer Exit, since only this field and not the field 'RECEIVER_SET _NEW' is updated.
    The third Customer Exit is used for replacing variables. It is called up when you load the transfer rules.
      CALL CUSTOMER-FUNCTION '003'     EXPORTING       REPID = REPID       GRPID = GRPID       VARIA = VARIA       RFELD = RFELD       VARTP = VARTP     CHANGING       KEYID = KEYID     EXCEPTIONS       VARIABLE_ERROR = 1.
    The parameters REPID and GRPID are supplied with the sender structure and the origin. The variable name is in the field VARIA. The name of the receiver field is in the parameterRFELD. Field VARTP contains the variable type. Valid types are fixed values of the domain KCD_VARTYP. You transfer the variable values in the parameter KEYID. If an error occurs you use the exception VARIABLE_ERROR.
    the fourth Customer Exit is required in EC-EIS only. It is called up after the summarization and before the determination of key figures. It is a necessary enhancement to the second Customer Exit. This is because changes to the keys are considered before the database is checked to see if records exist for the keys.
    The function is called up as follows:
    CALL CUSTOMER-FUNCTION '004' CHANGING    RECEIVER_SET = R    SUBRC = UE_SUBRC.
    The parameter RECEIVER_SET contains the receiver record to be changed. The parameter RECEIVER_SET is a changing parameter. No changes must be made to the function module if it is not used.
    The User-Exits can be found in the Module pool 'SAPFKCIM'. If you want to use the Customer Exits, you can create a project and activate the Customer Exits with the transaction 'CMOD'. The enhancement which you must use with it is KKCD0001.
    Note that when programming customer exits, that these will also run if corrected data records are imported into the datapool within the context of post processing for both test and real runs.
    I will provide some pointers soon. Give me some time.
    Hope this will help.
    Please reward suitable points.
    Regards
    - Atul

  • Problem with whfhost.js when using Search in WebHelp

    Running RH 10 to generate and publish WebHelp, if I open the help directly from a browser, the Search function is fine. However, the application using the help opens it in a separate tab within its window. When I try to search for a string I know is there, first I get "No results". Then I try another string and I get "Unable to get property 'split' of undefined or null reference', referring to whfhost.js, and the help freezes.
    I would gladly fix this file if it were in the root folder of my project, but RH generates it in the output only. Does the application developer have to do something to fix it because it's happening on his end?

    I’m not getting that happening at all with my WebHelp launched via the application – once I expand the CSH help window to show me the left pane, search works for the left pane and top search field in my title bar.

  • Problem with 'action' attriubte when using 'rendered'

    I have something really strange;
    I have a JSF page used to insert a record and when inserting is successful, I set a REQUEST scope parameter called 'saved' with a value of 'true' as following:
    FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put("saved",true);Now, in the JSF page I already have a <h:commandButton ...> on the SAME previous JSF page used to collect the data :
    <h:commandButton rendered="#{requestScope.saved}" action="#{insertionBean.displayNew}" value="Create another"/>As it is shown, the rendering of this button is conditional ONLY after complete inserting. Until now every thing is OK, and the button rendered only as expected, but what is not expected is that when I click on the button the page only reloads and the method in the action attribute is never fired.
    Does the attribute rendered have something to do with RestoreView at the server side? Becasue when I DELETE it, the button fires the method, the problem is only when I use it in this scope.
    How I can accomplish this goal?!
    Thanks for helpful people

    The value of the rendered attribue is re-evaluated during apply request values phase. So you need to transfer it to the next request using h:inputHidden or, better, t:saveState (so that it also survives validations).

  • Problem with string constructor when using byte array as parameter

    I am creating a string using constructor and passing byte array as parameter.This byte array i am getting from MessageDigest's digest() method,i.e. a hash value.
    The problem is when i iterate through byte array i can able to print all the values in byte array.But when i construct a string from that byte array and printing that string ,that is printing some unknown characters.
    I don't know whether i need to pass charsequence to the constructor and the type of charsequence.Can anybody help me?
    Thanks in advance

    Is there some problem today? I'm getting this sort of thing all over.
    I already told you and so did Kayaman. Don't. String is not a holder for binary data. You have to Base-64 encode it. If you don't you cannot reconstruct the original binary digest value, so putting it into a database is completely utterly and entirely pointless.
    Is that clear enough?

  • Problem with EL evalulation when used to assign component ID in ui:repeat

    Hello everyone,
    I've a problem when I try to assign the ID of a component with an EL within an ui:repeat component, e.g.:
    0 <ui:repeat value="#{dm.categories}" var="category">
    1      <rich:panel id="catPanel#{category.id}">
    2         ....
    3       </rich:panel>
    4       <someohtertag someatt="catPanel#{category.id}" />
    5  </ui:repeat>The above page renders correctly but the id in line 1 evaluates to ...catPanel in HTML. The other tag evaluates of course correctly to catPanel123.
    When I use an EL variable from outside of the repeat tag it evaluates.
    Am I doing something wrong here or are the ID attributes evaluated in a different rendering pass?
    Does anyone have another idea how to assign the IDs in such a manner?
    ciao,
    Elmar

    Hi,
    Check in t.code CMOD whether project is active or not (Activate the Project)
    BR,
    Vijay

  • Problem with Database Initialization when using Configuration Manager (ubuntu-jboss-mysql)

    Hello,
    When I try to initialize the database using Configuration Manager, the following error occurs:
    ALC-TTN-002-001: JDBC datasource lookup failed for resource reference [java:comp/env/jdbc/
    IdpDs]. The most likely cause is that a datasource having a JNDI
    name of [IDP_DS] does not exist or is misconfigured. Check the application
    server's configuration.
    I DO have an IDP_DS datasource configured in jboss. I carefully followed the Jboss configuration instructions, so I don't really understand which is the issue here.
    Anyone encountered a similar problem? Any help?
    Many thanks in advance,
    Artur

    Data source files have to end with ds.xml and should be copied to the /deploy folder of your JBoss configuration (all) for them to be picked up by JBoss.
    If the file was edited in Windows, make sure it does not contain DOS characters. Ubuntu Linux is not a supported LiveCycle OS platform currently. Only Red Hat Enterprise and SUSE Enterprise are.

Maybe you are looking for

  • 3 Source directories in Sender File. How to set 3 Archive Directories?

    Hi guy's, I have scenario File to IDOC where from 3 source directories the XML has to be taken and processed. I used Advanced Selection for Source File in one communication channel. For each source directory, there is an archive directory but in the

  • What happed to the iPad video tutorials on Apple's website?

    I can't locate any of the extensive video tutorials on iPad (or for much else for that matter) on Apple's website - did they remove them or put them in some incredibly secret place?  They used to have them for most all of their products -- now it see

  • How do I create a split track audio recording (2 outputs)?

    I am trying to create a two-output track for use with IEM and house sound (right channel with some instrument tracks to house; left channel with click & choral voices to IEM only). I don't know how to assign the output to L or R in Express. I've seen

  • LMS 4.2.2 Fault Discovery - Network Adapters Limit Exceeded

    Running fault device discovery after adding approx 50 new devices to LMS DCR. It seems I have reached a limit in DFM with regards to how many device components it can manage. The devices are put into questioned mode and the following error is seen in

  • How to open navigation item in new tab?

    Hello Is it possible to open a navigation item in a new tab? for example, when a user enters in MII and in the menu has several links, is it possible, when clicking in a link, to open it  in a new tab? i know it is possible to open in a new window or