Bigger labels?

Is there a way to make the new tags look like the old style labels? Those dots are just too small. I preferred when the entire file name was colored, or even the old OS9 colored icons. Much easier to spot.

Hi photjon,
I finally got my colorful Labels back using this little App from Tran Ky Nam Software (I’m not affiliated). It’s called XtraFinder and I’ve used it in previous iterations of OS X to get tabs in Finder. When Mavericks came along with Finder tabs, I stopped using it, even though it had a great feature for double clicking on a tab and have it display two tabs worth of Finder in the same window. Anyways, the whole Tags instead of Labels thing was infuriating and I revisited XtraFinder and the 3/25/2014 release has Legacy Labels! I now have XtraFinder as a Login Item and once I set my preferences (colorful sidebar icons!) and restarted Finder I had all of my colorful stripes again. It seems to color the filename with the last Tag that it’s given, meaning I still have multiple Tags, too.
Here’s the link to the download
http://www.trankynam.com/xtrafinder/
Good luck everyone, you can now we can all get back to work (grin).
M

Similar Messages

  • 2nd Gen iPod Touch keyboard problem after 2.2

    So I updated to 2.2 soon as it came out and after a little while chatting back and forth with friends some letters of the on screen keyboard stopped showing the letter you just pressed. I am not sure if I am making myself clear however when you press a key on the keyboard a bigger label appears above your finger and if you press the key for a little while longer the label expands to show a few more options. Well the more you use the keyboard the more keys lose that bigger kind of label so pressing the key does not display the little icon above it.
    If I switch off and back on then they come back for a brief amount of time less than 10 mins or so and then they start disappearing again a few at a time till no letter has a label any more. Reverting to 2.1.1 fixed the problem but I'd rather be using 2.2 .
    Does anyone else have noticed that or am I the only with that issue?

    I know exactly what your talking about and have experienced the same thing, all I can say is the last two upgrades have messed with the performance of my touch, in fact two touches are in my home, both having same issues and connecting to wifi ***** now. Good luck, I'll stay posted to see if anyone offers help.

  • Lc-ATM question

    Hi Guys,
    i am just trying to get mt head around this technology. i am trying to configure a LC-ATM interface on a 3640 router. which is connected to a LS1010 switch. MPLS is running in the network.
    here is the configuration.
    interface ATM3/0.1 tag-switching
    ip address 150.1.101.6 255.255.255.0
    mpls label protocol tdp
    tag-switching atm control-vc 1 64
    tag-switching ip
    .. i just want to know when do we use MPLS atm vpi 101-103 command
    Please note:- 101 and 103 and random numbers . for an example.
    and can we use mpls atm control-vci and mpls atm vpi x-y command at the same time . or only 1 command at a time.
    Regards
    amit

    Hello Amit,
    each ATM cell 53 bytes size has a 5 byte header that contains the fields
    vpi
    vci
    a pvc or svc is identified by vpi/vci that can change at each ATM switch hop (just as MPLS labels for LSPs)
    So the difference is that with the first command the SVCs built by MPLS signalling plane can have
    vpi = 101 or 102 or 103
    vci= any possible value
    in the second case:
    vpi= 101
    vci = 33 to 65000
    both commands provides forwarding resources but the first one should provide a bigger label (vpi/vci) space
    Hope to help
    Giuseppe

  • Adobe Premiere 9 now for MAC (?)

    AP9 is now available for MAC users too. I hoped for that for long because I am disappointed in FCE... and AP9 seems to be a serious option.
    A nice professional and beauty looking interface with bigger labels, colors and text you can easily read and with a lot of very nice options like various tittles, DVD menu's integrated and so on! (and not costly 3 party!)
    You can download a trial version or watch the demos. But the demos are most of all to short and not very attractive or informative. Better is to download the "help" and read the topics there.
    Unfortunately... a lot of filters and others are still "windows only"... I hope a matter of time. Than I shall buy AP9 unless... FCE make me (us?) soon very happy with an update or new program witch has more filters, transitions, extra's and a user-friendly approach and readable interface.
    Does anyone know a new of update FCE is coming soon? Than I will wait and see before I make my choice.

    Bruce27 wrote:
    AP9 is now available for MAC users too. ..
    read my review
    http://discussions.apple.com/message.jspa?messageID=12324524#12324524
    and wait a little ..

  • Label bounds bigger than they really are

    I have a question regarding the calculation of the bounds of labels and how they are used to take up space in a parent.
    In my example, i have an application where the top element is a border pane. In the left part of the borderpane i have a VBox with a specified maxWidth (in this case, 250). The last element of the VBox is another VBox to display a label (a headline) and a GridPane. In this GridPane i have several other labels. Consider this picture:
    pic1
    This is how it should look like (i enabled gridLinesVisible for sake of demonstration).
    When i use a Text instead of a label in the right column, i get this:
    pic2
    Since the Text in the second row exceeds the maxWidth of the top VBox but cannot be made smaller, the VBox grows in width. Everything ok here.
    But when i use a label, i expect the label to respect the maxWidth of the top VBox. Altough it seems that it does this, see the result:
    pic3
    The label cuts the text at the correct place and the grid column is not larger than the needed space, but still the VBox width grew.
    Is this a bug or am i doing something wrong? When i set the ColumnConstraints of the GridPane to a value, i get the result of the first picture. But this workaround isn't practicable since it's a hazzle to find out the right amount of pixels and what i really want is the label to fill the remaining space it has available from the top VBox.

    jsmith wrote:
    Should i write a minimal example for reproducing this issueYes.Main.java:
    package labelboundsissue;
    import javafx.application.Application;
    import javafx.fxml.FXMLLoader;
    import javafx.geometry.Pos;
    import javafx.scene.Parent;
    import javafx.scene.Scene;
    import javafx.scene.control.Label;
    import javafx.scene.layout.BorderPane;
    import javafx.scene.layout.StackPane;
    import javafx.scene.shape.Line;
    import javafx.stage.Stage;
    import java.net.URL;
    public class Main extends Application {
      public static void main(String[] args) {
        launch(args);
      @Override
      public void start(Stage primaryStage) throws Exception {
        BorderPane pane = new BorderPane();
        StackPane center = new StackPane();
        center.setAlignment(Pos.CENTER_LEFT);
        Label someLabel = new Label("  Label Bounds Issue Test");
        Line line = new Line(0,0,0,500);
        center.getChildren().addAll(line, someLabel);
        pane.setCenter(center);
        FXMLLoader loader = new FXMLLoader();
        URL resource = getClass().getResource("left.fxml");
        loader.setLocation(resource);
        Parent  left = (Parent) loader.load();
        pane.setLeft(left);
        Scene scene = new Scene(pane, 800, 500);
        primaryStage.setScene(scene);
        primaryStage.show();
    }left.fxml:
    <?xml version="1.0" encoding="utf-8"?>
    <?import java.lang.*?>
    <?import java.net.URL?>
    <?import javafx.scene.shape.*?>
    <?import javafx.scene.control.*?>
    <?import javafx.scene.paint.*?>
    <?import javafx.scene.layout.*?>
    <?import javafx.scene.image.*?>
    <?import javafx.geometry.Insets?>
    <?import javafx.scene.text.*?>
    <?import javafx.scene.web.*?>
    <?import javafx.scene.*?>
    <VBox maxWidth="200">
      <GridPane gridLinesVisible="true" hgap="5">
        <columnConstraints>
          <ColumnConstraints hgrow="NEVER"/>
          <ColumnConstraints hgrow="NEVER"/> <!-- comment this -->
          <!--<ColumnConstraints hgrow="NEVER" maxWidth="155"/>--> <!-- uncomment this -->
        </columnConstraints>
        <Text GridPane.columnIndex="0" GridPane.rowIndex="0" text="Name:"/>
        <Label GridPane.columnIndex="1" GridPane.rowIndex="0" text="Karl Theodor Maria Nikolaus Johann Jacob Philipp Franz Joseph Sylvester Freiherr von und zu Guttenberg" />
      </GridPane>
    </VBox>When starting the application you can see vast amount of space between the end of the label and the left border of the border pane, altough it should be limited by the VBox' maxWidth.
    Adjusting the maxWidth of the Column solves it.

  • Can I make the font bigger or darker on the app folder labels?

    It's small and white and hard for me to read.  I like having the apps in folders for organization, but if I can barely read the labels what is the point?

    I don't think you can but I'm not really sure. You can name these folders in caps lock. If that helps at all.

  • How do you increase the font size to bigger than 24, using the typewriter tool in Adobe Acrobat Pro 9 for Mac?

    How do you increase the font size to bigger than 24, using the typewriter tool in Adobe Acrobat Pro 9 for Mac?   Often I just want to label an item on a map that is in PDF and want to use a simple label rather than a Text Box for labeling, but have yet to find a way to increase the font size beyond 24.   Can someone help me with this? - JML

    Read this:
    https://forums.adobe.com/thread/1468782?sr=stream&ru=2382437

  • Using text labels in Swing

    Dear all,
    I would like to mention that I am new to Java and Swing. I have been looking for hours in the forums, but cannot find a solution for my problem.
    When using Swing as GUI, my labels get ugly when trying to get a bigger or different font than the standard one.
    Does anyone know how to resolve this issue?
    Thank you in advance,
    Dimitri Depaepe

    Never noticed a problem.
    If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program (SSCCE) that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
    And don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags so the code retains its original formatting.

  • [AS] Script Label Items in a Group

    Hi all,
    I have a group of shapes that, when grouped together in Indesign, form an object.  This grouped object is script labeled "special".  I am trying to script label each of the individual parts of this grouped object "special" so that if users ever mistakenly ungroup the object, I can still manipulate all items with the "special" label...which is effectively my original grouped object.
    The catch is that I need to do this labeling with a script because I have thousands and thousands of files I'm working with.  I'd love it if something like this worked (but it doesn't):
    tell application "Adobe InDesign CS3"
    set theObject to page item "special" of document 1
    set theShapes to every page item of all page items of theObject
    set label of theShapes to "special"
    end tell
    The problem I keep running into is that it seems when an object is grouped, all the objects inside that group become, for all practical purposes, invisible.  The line "set theshapes to every page item of all page items of theObject" returns an empty list "{ }" as though there ARE no items making up the group.
    So then I thought I'd take a more tactile approach.  Select it, ungroup it, label it, group it back:
    tell application "Adobe InDesign CS3"
    set theObject to page item "special" of document 1
    select theObject
    ungroup selection
    set label of selection to "special"
    group selection
    end tell
    The problem with this approach is that after ungrouping the object with a script, there is no longer a selection as there is when doing the same by hand, so trying to set the label of a selection that does not exist produces an error.  Grrrrr.
    Friends, I know this can be done, but I need a little outside perspective on this to help me figure this one out.  As always, thanks in advance for your help!

    OK. Got it working but I'm not sure why. I went back to the bigger script of which the below is a part. And it works fine. I just don't understand why.
    tell application "Adobe InDesign CS4"
         activate
         set myDocument to active document
         set myPage to page pageNum of myDocument
         set active page of layout window 1 to myPage
         if not (exists library "Logowear_Lib.indl") then
              set theFile to open tagsLib
         end if
         set assetPlacer to item 1 of (place asset asset "3_12:13" of library "Logowear_Lib.indl" on myDocument)
         move assetPlacer to myPage
         move assetPlacer to myCoordinates
         set color_code_counter to 5
         set color_box_counter to 1
         tell myDocument
              repeat color_counter times
                   set theColorCode to item color_code_counter of Style_List
                   set oldLabelName to ("CW" & color_box_counter)
                   set newLabelName to my makeImageName(theSap, theColorCode)
                   set label of (object reference of every item of all page items of page pageNum of myDocument whose label = oldLabelName) to newLabelName
                   set color_code_counter to (color_code_counter + 2)
                   set color_box_counter to (color_box_counter + 1)
              end repeat
         end tell
    end tell

  • How to change labels in pivot tabls

    I have created a report combining two cubes. From one cube I select the total room nights and total revenue, and from the other cube I filter on room nights and room revenue for a certain company.
    The goal is two compare how much revenue and room nights from the total is coming from this company.
    I used there the combine with similar request functionalities and added one column in each cube for the purpose to create the labels "Tot room nights", "Company room nights". This works as well, however under Room Revenue in pivot tables it shows "Tot room nights", "Company room nights" as well, which is wrong.
    Attached screens shots for better understing.
    I have tried to create the label for the revenue as well, but it doesn't work.
    Any suggestions?
    http://imageshack.us/photo/my-images/809/company1z.jpg/
    http://imageshack.us/photo/my-images/99/companyq.jpg/
    Thanks

    Hi,
    to handle GuiXT central in SAP: use transaction SHD0. There is also an online help for further information.
    in SHD0 transaction variants are defined: alternative tcodes, where normally fields are hidden and default values are assigned.
    Enter standard tcode in field TCODE, enter z-tcode in field TCVARIANT and create just something for playing...
    In upper part you will find flag GiuXT-Script and in upper part is 'i'-button for help in using this transaction (this blue-i-help-button is also in starting screen, docu is implemented like SPRO-docu).
    Approach with SHD0 ensures transportation of scripts and automated download to local Guis - so some help to handle bigger installations.
    Regards,
    Omkar.

  • How to change labels in maintenance view

    Hi,
    i have created a maintenance view on a table.
    i attached this view to a transaction.
    when i run that transaction the table is appearing for display of values
    and new entries. but i want to change labels of the appearing view.
    is there any way?
    please suggest me.
    raju

    Hi,
    to handle GuiXT central in SAP: use transaction SHD0. There is also an online help for further information.
    in SHD0 transaction variants are defined: alternative tcodes, where normally fields are hidden and default values are assigned.
    Enter standard tcode in field TCODE, enter z-tcode in field TCVARIANT and create just something for playing...
    In upper part you will find flag GiuXT-Script and in upper part is 'i'-button for help in using this transaction (this blue-i-help-button is also in starting screen, docu is implemented like SPRO-docu).
    Approach with SHD0 ensures transportation of scripts and automated download to local Guis - so some help to handle bigger installations.
    Regards,
    Omkar.

  • Chart labels are not shown in the exported analysis

    Hi All,
    I have a requirment where client wants data lable should come in the chart when they export the charts to PDF/Excel/PPT.
    In 10g when we export the analysis in PPT it displays the data but in 11g we don't get that. I can not put the data label to display always as they charts are very complex where lines and bars are very close to each other.
    If anyone has any solution please help me on this.
    Thanx.

    increate the chart size 1000X1000 or even bigger and make label display always.

  • Tree Label - verticalAlign??

    I've gone round and round with this tree component trying to
    get the labelField to verticalAlign to the middle and still I can't
    get it to stop aligning to the top.
    I would like help in figuring this out so that I may use
    bigger icons with my Tree component.
    If someone would be so kind to share the css code or the
    direct style declaration for the tree label it would be greatly
    appreciated.
    Thank you in advance to the kind soul who chooses to help out

    Found the solution...
    Of course an item renderer has be incorporated into the
    solution.
    You make a class that extends the TreeItemRenderer and then
    override
    the protected function createChildren()
    then you put in that function the following:
    super.createChildren();
    super.label.multiline = true;
    super.label.autoSize = TextFieldAutoSize.LEFT;
    and that's all you need to get the label to render correctly
    with the vertical align property on the tree component. Don't
    forget to set your new component class as the tree's
    itemRenderer.

  • Change the popup window size in the "optional label with help" template?

    G'Day Apex/javascript gurus,
    I am using Apex 4.0 where I coded an HTML table for help text in one item. Now, when an user click for help in this item then the HTML table is bigger than the size of the pop up window so the client has to re size it a bit to see it fully. To fix this, I tried to create a new "optional level with help" template where I can control the size of the pop up window and make it bigger to fit my HTML table so the client does not have to resize but I could not find any parameter in the original template:
    <label for="#CURRENT_ITEM_NAME#"><span class="t9optionalwithhelp"> "javascript:popupFieldHelp('#CURRENT_ITEM_ID#','&SESSION.')" tabindex="999" that help me to achieve that
    I am not an expert in javascript but I appreciate greatly if somebody here could help me to create a new label (with help) template where I can control the size of the popup window.
    Kind regards
    Carlos
    Edited by: creyes on Aug 1, 2011 1:22 AM

    Hello Carlos,
    You can overload the APEX javascript with your own, on the page you want it to happen. You can do that in the Page Definition - Function and Global Variable Declaration.
    Copy the below code into there and change the width and height of the popup.
    function popupFieldHelp(pItemId, pSessionId){
        // Show jQuery div based dialog if not running in screen reader mode, if not fall back to old popup
        if (!$x('pScreenReaderMode')) {
            apex.jQuery.getJSON(
            'wwv_flow_item_help.show_help?p_item_id=' + pItemId + '&p_session=' + pSessionId + '&p_output_format=JSON',
            function(pData){
              var lDialog = apex.jQuery("#apex_popup_field_help");
              if (lDialog.length===0) {
                // add a new div with the retrieved page
                lDialog = apex.jQuery('<div id="apex_popup_field_help">'+pData.helpText+'</div>');
                // open created div as a dialog
                lDialog
                  .dialog({
                    title: pData.title,
                    bgiframe: true,
                    width: 500,
                    height: 350,
                    show: 'drop',
                    hide: 'drop' });
              } else {
                // replace the existing dialog and open it again
                lDialog
                  .html(pData.helpText)
                  .dialog('option', 'title', pData.title)
                  .dialog('open');
        } else {
            popupFieldHelpClassic(pItemId, pSessionId);
        return;
    }; // popupFieldHelpHope that makes sense,
    Dimitri
    http://dgielis.blogspot.com
    http://www.apex-evangelists.com

  • Make JFrame bigger than screen size

    I have a JFrame which has several components. I need to print all the contents of this JFrame, but to do that I need to be able to make the JFrame bigger than the screen's resolution.
    When I change the size of my JFrame to anything bigger than the screens resolution it will just resize to the maximum resolution of my screen
    I tried with jFrame.getToolkit().setDynamicLayout(false); but it didn't seem have any effect
    This is the code I'm using for this:
    Some help would be appreciated!
    private void printFIButtonActionPerformed(java.awt.event.ActionEvent evt) {                                             
            // prints pay slip cards
            JFrame FIFrame2 = new JFrame();
            FIFrame2.setLayout(null);
            FIFrame2.setResizable(false);
            FIFrame2.getToolkit().setDynamicLayout(false);
            FIFrame2.setSize(594, 280*numPrintFI);
            this.incrementWeeks(cal, 2);
            int FIcount = 0;
            String line ="";
            String str ="";
            //sets up arrays to store swing components
            JPanel[] fip = new JPanel[numPrintFI];
            JTextArea[] fit = new JTextArea[numPrintFI];
            JLabel[] filbl1 = new JLabel[numPrintFI];
            JLabel[] filbl2 = new JLabel[numPrintFI];
            JLabel[] filbl3 = new JLabel[numPrintFI];
            //creates a font
            Font font = new Font("Pik", 0, 26);
            //loop creates the components needed for the pay slip cards
            for(int i = 0;i<numPrintFI;i++){
                BufferedReader in = null;
                try {
                    in = new BufferedReader(new FileReader("c:\\misc.txt"));
                line = in.readLine();
                FIcount = Integer.parseInt(line);
                } catch (FileNotFoundException ex) {
                    Logger.getLogger(CustomerIndexGUI.class.getName()).log(Level.SEVERE, null, ex);
                }catch(IOException e){
                    System.out.println("Something went wrong");
                str="";
                fip[i] = new BackgroundPanel();
                fip.setLayout( null );
    Insets insets = FIFrame2.getInsets();
    fip[i].setSize(594, 272);
    fip[i].setLocation(0 + insets.left, i*272 + insets.top);
    insets = fip[i].getInsets();
    //address field
    fit[i] = new JTextArea();
    fip[i].add(fit[i]);
    fit[i].setSize(230,80);
    fit[i].setLocation(10+insets.left,67+insets.top);
    fit[i].setText(customers[(int)printFI[i].getCustnumber()-1].getAddressee().getName().getFirstName() +
    " " + customers[(int)printFI[i].getCustnumber()-1].getAddressee().getName().getSecondName() +
    "\n" + customers[(int)printFI[i].getCustnumber()-1].getAddressee().getAddress() +
    "\n" + customers[(int)printFI[i].getCustnumber()-1].getAddressee().getPostCode());
    //left price label
    filbl1[i] = new JLabel();
    fip[i].add(filbl1[i]);
    filbl1[i].setLocation(103+insets.left,203+insets.top);
    filbl1[i].setSize(115,20);
    filbl1[i].setFont(font);
    filbl1[i].setText(Integer.toString(printFI[i].getPrice())+" 00");
    //date and price label
    filbl2[i] = new JLabel();
    fip[i].add(filbl2[i]);
    filbl2[i].setSize(370,20);
    filbl2[i].setFont(font);
    filbl2[i].setLocation(233+insets.left,203+insets.top);
    filbl2[i].setText(format.format(cal.getTime())+" "+
    Integer.toString(printFI[i].getPrice())+" 00");
    //botom line on pay slip label
    filbl3[i] = new JLabel();
    fip[i].add(filbl3[i]);
    filbl3[i].setSize(540,20);
    filbl3[i].setLocation(10+insets.left,240+insets.top);
    for(int q=0;;q++){
    if((str.length()+line.length())==15){
    break;
    str+="0";
    str+=line;
    String str2 = "+71<"+str+" +87830861< "+
    str;
    filbl3[i].setText(str2);
    FIcount++;
    String str3 = Integer.toString(FIcount);
    try {
    BufferedWriter bw = new BufferedWriter(new FileWriter("c:\\misc.txt", false));
    bw.write(str3);
    bw.flush();
    bw.close();
    } catch (IOException ex) {
    Logger.getLogger(CustomerIndexGUI.class.getName()).log(Level.SEVERE, null, ex);
    FIFrame2.getContentPane().add(fip[i]);
    FIFrame2.validate();
    FIFrame2.setVisible(true);
    System.out.println("height fiframe2: " + FIFrame2.getHeight());
    PrintUtilities pu = new PrintUtilities(FIFrame2);
    pu.printComponent(FIFrame2);
    this.incrementWeeks(cal, -2);

    Okay I just tried what you said and it doesn't work unfortunately. It will print the whole JScrollPane (e.g. the the scroll bars), but whatever components are on the JScrollPane outside of the screen will not be printed.
    This is the code I used to test it:
    package javaapplication3;
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.Graphics;
    import javax.swing.*;
    * @author Mick
    public class Main {
         * @param args the command line arguments
        public static void main(String[] args) {
            // TODO code application logic here
           JFrame frame= new JFrame("test frame");
            JPanel panel= new JPanel();
            JLabel label= new JLabel("test");
            JLabel label2= new JLabel("test2");
            panel.add(label);
            panel.add(label2);
            label.setBounds(400, 1400, 60, 20);
            label2.setBounds(10, 10, 100, 100);
            panel.setPreferredSize(new Dimension(500, 1500));
            panel.setLayout(null);
            JScrollPane sp= new JScrollPane(panel);
            frame.getContentPane().add(sp, BorderLayout.CENTER);
            frame.pack();
            frame.setVisible(true);
            PrintUtilities pu = new PrintUtilities(sp);
            pu.printComponent(sp);
    import java.awt.*;
    import javax.swing.*;
    import java.awt.print.*;
    import javax.print.attribute.*;
    public class PrintUtilities implements Printable {
      private Component componentToBePrinted;
      private Paper paper = new Paper ();
      private PageFormat pageFormat = new PageFormat();
      public static void printComponent(Component c) {
        new PrintUtilities(c).print();
      public PrintUtilities(Component componentToBePrinted) {
        this.componentToBePrinted = componentToBePrinted;
        paper.setSize(594.936, 841.536);
        paper.setImageableArea(0, 0, 594.936, 841.536);
        this.pageFormat.setPaper(paper);
      public void print() {
        PrinterJob printJob = PrinterJob.getPrinterJob();
        printJob.setPrintable(this, this.pageFormat);
        if (printJob.printDialog())
          try {
            System.out.println("Calling PrintJob.print()");
            printJob.print();
            System.out.println("End PrintJob.print()");
          catch (PrinterException pe) {
            System.out.println("Error printing: " + pe);
      public int print(Graphics g, PageFormat pf, int pageIndex) {
        int response = NO_SUCH_PAGE;
        pf = this.pageFormat;
        Graphics2D g2 = (Graphics2D) g;
        //  for faster printing, turn off double buffering
        disableDoubleBuffering(componentToBePrinted);
        Dimension d = componentToBePrinted.getSize(); //get size of document
        double panelWidth = d.width; //width in pixels
        double panelHeight = d.height; //height in pixels
        double pageHeight = pageFormat.getImageableHeight(); //height of printer page
        double pageWidth = pageFormat.getImageableWidth(); //width of printer page
        double scale = pageWidth / panelWidth;
        int totalNumPages = (int) Math.ceil(scale * panelHeight / pageHeight);
        //  make sure not print empty pages
        if (pageIndex >= totalNumPages) {
          response = NO_SUCH_PAGE;
        else {
          //  shift Graphic to line up with beginning of print-imageable region
          g2.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
          //  shift Graphic to line up with beginning of next page to print
          g2.translate(0f, -pageIndex * pageHeight);
          //  scale the page so the width fits...
          g2.scale(scale, scale);
          componentToBePrinted.paint(g2); //repaint the page for printing
          enableDoubleBuffering(componentToBePrinted);
          response = Printable.PAGE_EXISTS;
        return response;
      public static void disableDoubleBuffering(Component c) {
        RepaintManager currentManager = RepaintManager.currentManager(c);
        currentManager.setDoubleBufferingEnabled(false);
      public static void enableDoubleBuffering(Component c) {
        RepaintManager currentManager = RepaintManager.currentManager(c);
        currentManager.setDoubleBufferingEnabled(true);
    }

Maybe you are looking for

  • URGENT HELP NEEDED!!! ONMOUSEDOWN

    hey guys...i need help like..right away I need to be able to do this code: property pPOPServer property pPort property pUsername property pPassword property pDeleteFlag property pHeaderOnly property pCallbackHandler on mouseUp me -- new me, server, p

  • Lexmark Marknet unable to connect to Netware 5.1 server with IPX

    Hi, Im having some problems with Lexmark Marknet print servers. We are using Netware 5.1 servers with ipx print queues. The print servers are MarkNet X2000 series and MarkNet Pro3 Series from Lexmark. The print servers are being serviced by a Netware

  • Preview and Grayscale wierdness

    When I view a PDF comprised of grayscale images, all of the grayscale pages are displayed in reversed white letters on black! What gives? The non-grayscale pages are perfect.

  • Data storage in Live Cache

    Hi,      Can some1 explain me how the SNP data is stored in the live cache. I know it's by series of order. But tell me is there any mapping involved in it? Thanks, Siva.

  • Zones hung

    Hiya Chaps, I've a T5120 with 4 shared IP zones running for a few months without issue, however the other night all four non-globals hung, couldn't connect to them via zlogin, or ssh directly to them. zoneadm list form the global showed all four as r