Access off screen data

Does anyone know if it is possible to do the following in Java (It is step 2 that I need help with):
1) Load any third party application e.g Firefox
This will display part of a web page and the rest will only be made visible by using the scrollbar.
2) I want to access the text/images in the whole of the web page without using the scroll bar. e.g access off screen data and save it to something like a BufferedImage.(I guess it is similar to a screenshot but of data that is not currently visible on the screen).
I need this to be generic enough to work for any application that uses scroll bars.
Thanks

1. Use Runtime.getRuntime().exec( <command> ) to run another program.
2. You can use ImageIO.read( <url> ) to read images and return a BufferedImage from the internet.
You can give this program I made a test drive as it shows how to run a separate process and load an image from the internet:
/* DynamicClasses.java
* @author scphan
* created: 12, May 2009
* tested successfully with jdk1.6.0_11
import java.lang.ref.*;
import java.util.*;
import javax.tools.*;
import java.io.*;
public class DynamicClasses
     public static void main( String args[] )
          DynamicClasses obj = new DynamicClasses();
          obj.compileAndRun( new File( "CompileTest.java" ) );
     public void compileAndRun( final File file )
          JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
          StandardJavaFileManager filemanager = compiler.getStandardFileManager( null, null, null );
          System.out.println( "Default Compiler: " + compiler.getClass().getName() + "  toString(): " + compiler );
          try
               deleteClassFile( file );
               try
                    Thread.sleep( 5000 );
               catch ( InterruptedException e )
                    e.printStackTrace();
               Iterable compilationUnits = filemanager.getJavaFileObjects( file );
               compiler.getTask( null, filemanager, null, null, null, compilationUnits ).call();
               filemanager.close();
               run( file.getName().replaceAll(".java","") );
          catch ( IOException e )
               e.printStackTrace();
     public void run( final String filenameNoExt )
          throws IOException
          Process proc = Runtime.getRuntime().exec( String.format( "java %s", filenameNoExt ) );
     private void deleteClassFile( File file )
          String fNameNoExt = file.getName().replaceAll( ".java", "" );
          File xFile = new File( fNameNoExt+".class" );
               if ( xFile.exists() )
                    xFile.delete();
/* CompileTest.java
* @author scphan
* created: 12, May 2009
* tested successfully with jdk1.6.0_11
import java.awt.*;
import java.awt.image.BufferedImage;
import javax.swing.*;
import java.net.URL;
import java.io.IOException;
import javax.imageio.ImageIO;
public class CompileTest
     private static final String IMAGE_URL = "http://konohaleaf.info/images/stories/cherry_tree.png";
     public static void main( String args[] )
          final JOptionPane pane = new JOptionPane();
          pane.showMessageDialog( null, "Greetings, compiling test successful!", "Compile Test Successful", JOptionPane.INFORMATION_MESSAGE );
          final JFrame f = new JFrame( "Compile Test Successful" );
          f.setDefaultCloseOperation( f.EXIT_ON_CLOSE );
          final JLabel label = new JLabel();
          final BufferedImage image = grabImage( CompileTest.IMAGE_URL );
          if ( image != null )
               label.setIcon( new ImageIcon(image) );
          else
               label.setText( "Image could not load, displaying alternative text instead..." );
          f.getContentPane().add( label );
          f.pack();
          f.setVisible( true );
     private static BufferedImage grabImage( String url )
          BufferedImage image = null;
          try
               image = ImageIO.read( new URL( url ) );
          catch ( IOException e )
               e.printStackTrace();
               return null;
          return image;
}[http://konohaleaf.info/index.php?option=com_content&view=article&id=71:programmatically-compile-and-execute-in-java&catid=50:misc-example-programs&Itemid=64]
Just parse through the html code for any <img src... ".jpg", ".png", etc. and store the paths which will then be used to read the images with javax.imageio.ImageIO.
Edited by: scphan on May 13, 2009 1:09 PM

Similar Messages

  • I lost my iPhone 4 in Brussels last week. It was in airplane mode when lost. I also use a code to unlock the phone. The phone was off when lost. My question is: Can a person access my personal data on the phone?

    I lost my iPhone 4 in Brussels last week. It was in airplane mode when lost. I also had a code to unlock the phone. The phone was off when lost. My question is: Can a person access my personal data on the phone? Can they take the chip out and place it into another iPhone and access the personal info on the chip or is the personal data on the phone itself and could they put a new chip in and access the data?

    I have Find my iPhone App, but it says that it is offine.
    I've checked all week and it is offline.
    I clicked on erase iphone when phone accesses the internet on the Find my iPhone App.
    I just want to know how safe is my personal information that I have on that iPhone?

  • I can access resize screen bar in the lower right. It extends off screen. Please help?

    I can access resize screen bar in the lower right. It extends off screen. Please help?
    Irene

    Have you tried the resize button in the window corner upper right.  There are 3 buttons one closes the window one minimizes it without closes it and the other one toggles between full screen and a smaller screen.  Click the last one and see what happens.

  • My iPad 2 with iOS 7 touchscreen is no longer responsive, although date/time is current as are off screen buttons. Tapping the screen merely produces a rectangular border around the tapped log in digit. No 'black to white' registers on the upper 4 dots

    My iPad 2 with iOS 7 touchscreen is no longer responsive, although date/time is current as are off screen buttons. Tapping the screen merely produces a rectangular border around the tapped log in digit. No 'black to white' registers on the upper 4 dots.
    Excuse brief text to above due to input limitations in original input field. I'd be grateful if anybody can give me any help to recover the situation. Thanks.

    Triple tap the home button

  • NOkia N79 - Turning all web/data access off

    I have just got my nee Nokia N79 work mobile - Impressed by the phone.
    Our work plan does not have any allowance for data/web access therefore does anyone know how if you can lock the phone out of accessing the web/data?
    Thanks

    Hi kinada1970
    First thing that springs to mind is to define Web "Access point" as WLAN, but there may be other solutions here. 
    Happy to have helped forum in a small way with a Support Ratio = 37.0

  • How do I use serial port read and show text, but not have it scroll off screen?

    I am new-ish/returning amateur user of Labview and I am trying to edit the example VI "Advanced serial write and read VI" that is part of dev suite 2012.  I need to use the string box to show ALL text received from serial port, always appending and only rolls off screen when more real data arrives at serial port. 
    What is actually happening is as more bytes (or no bytes AT ALL!) arrive during read time, current text rolls off the string box.  Even when 0 bytes are received, screen is blanked out.  I am not very familiar with functions locations and even worse at understanding obscure references to functions, so please keep replies very basic so I can follow.
    Just to be clear, I need the string window to behave like hyperterm does-always shows data and it is not pushed out of window arbitrarily.
    Thanks,
    Steve  
    Solved!
    Go to Solution.

    OK- lets start back at the beginning.  I have a few questions...
    WHy does incoming txt get placed at top of txt box and then scroll up?  why would it make more sense to input at the bottom and scroll toward the top.  I have created this huge txt box that appears to be impossible to use.
    I have attached example of txt boxes I have tried, and pic of VI I have edited.  Bad marks for uglyness....
    Attachments:
    Capture_VI.JPG ‏117 KB
    Capture_VI2.JPG ‏133 KB

  • Application off screen - Mac OS X 10.7

    Application is off screen. Happens after using 27inch display. Clearly a resolution issue. Tried everything including playing with the resolution, etc. After looking at several discussions and forums the one that works on my Macbook Air https://discussions.apple.com/message/8012940?messageID=8012940#8012940 does not work on my recently purchased (2 weeks) Macbook Pro 15inch.
    After running applescript editor I get this error: error "System Events got an error: Access for assistive devices is disabled." number -25211
    Anyone else getting this too?
    This is the script Im running.
    -- Example list of processes to ignore: {"xGestures"} or {"xGestures", "OtherApp", ...}
    property processesToIgnore : {}
    -- Get the size of the Display(s), only useful if there is one display
    -- otherwise it will grab the total size of both displays
    tell application "Finder"
              set _b to bounds of window of desktop
              set screen_width to item 3 of _b
              set screen_height to item 4 of _b
    end tell
    tell application "System Events"
              set allProcesses to application processes
              set _results to ""
              repeat with i from 1 to count allProcesses
                        set doIt to 1
                        repeat with z from 1 to count processesToIgnore
                                  if process i = process (item z of processesToIgnore) then
                                            set doIt to 0
                                  end if
                        end repeat
                        if doIt = 1 then
                                  tell process i
                                            repeat with x from 1 to (count windows)
                                                      set winPos to position of window x
                                                      set _x to item 1 of winPos
                                                      set _y to item 2 of winPos
                                                      if (_x < 0 or _y < 0 or _x > screen_width or _y > screen_height) then
                                                                set position of window x to {0, 22}
                                                      end if
                                            end repeat
                                  end tell
                        end if
              end repeat
    end tell

    It sounds like you were running a second display in extended desktop mode.
    If the adapter and/or cable for the second monitor is still attached, it can fool the Mac into believing the second monitor is still present. Detaching that cable/adaptr and then restarting should fix it.
    You can also try going to System Preferences > Monitors and change the setup from extended mode to mirror mode.

  • How to switch off screen blocking if I forget password and couldn't use iTunes?

    How to switch off screen blocking if I forget password and couldn't use iTunes?

    If you are saying that you've forgotten the passcode to unlock the iPad then you will need to connect the iPad to the computer that you normally sync to and you should then be able to reset the iPad and restore/re-sync your content to it (http://support.apple.com/kb/HT1212) - you may need to put the iPad into recovery mode for your iTunes to be able to reset it : http://support.apple.com/kb/ht1808
    If you do it via a different computer then :
    If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present.

  • I have to turn off mobile data to connect to public wifi!?

    I have found with my phone that to connect to public wifi in places such as my local bar or where I work, that I have to turn off mobile data in settings to connect to the wifi.
    These are wifi hotspots where you have to create a free account to use them, and when you try to connect to them in wifi settings in iOS, when they connect, a little browser screen appears. If mobile data is turned off, then the broswer window will show a welcome screen or message saying connected (dpending on which spot Im connecting to), however if Data isn't turned off, the browser screen just does nothing or I get the apple.com screen with a small text message saying success, then disconnects me from the wifi!
    It wasn't so much an issue before because, in wifi settings for each hotspot I had options for auto-login and auto-join which allowed me not to have to keep reconnecting, however since updating to iOS6, these have changed and its been a nightmare since. This is because these spots tend to kick you off after 20-30mins and then you have to reconnect (which you can understand having to turn off mobile data everytime to do so is annoying).
    Ive noticed that my friends with other iphones, regardless of network, don't have to do this - so why is it an issue for me, or I was wondering if anybody else had the same problem or a fix/solution? And where did the auto-login option from the wifi settings go?

    After much googling for the past few hours, I think I finally found the answer to my problem. Apparently if you have the Onavo app along with the profile it installs, that interferes with connecting to Cisco based wifi hotspots, and the only way around it is the method I used above by turning off mobile data!
    https://getsatisfaction.com/onavo/topics/cant_connect_to_hotspot
    https://getsatisfaction.com/onavo/topics/onavo_prevents_from_being_able_to_conne ct_to_public_wifi_hotspots_that_have_terms_of_use_agreements
    I have uninstalled the app and profile, and will see if that fixes the issue tomorrow when Im at work

  • How to access the Custom Data type variable given in Expression edit control To and From LabVIEW

    Hello, I would like to know how to access the custom data type variable given in the Espression Edit Control from LabVIEW and vice-versa
    Say, the FileGlobals.Reference_Handle (Custom Data Type Variable) contains the
    VISA I/O session (Which in turn contains VISA_DeviceName: String, Session: Number),
    Channel1: Number and
    Channel2: Number
    I am expecting the user to give FileGlobals.Reference_Handle as the input at the ExpressionEdit Control in the edit screen of the VI Call.
    I would like to know how to get the values of this custom data type to LabVIEW?
    Say, if I have the Cluster in LabVIEW like VISA I/O session (Deive Name and Session Number), Channel1 and Channel2
    how do i need to set this cluster to the Custom Data type variable in TestStand?
    Thanks and Regards
    Prakash 

    Hi,
    TestStand to LabVIEW: i didnt understand what you r trying to achieve. But if you are using references, Use Property nodes and Invoke nodes to achieve what you want in LabVIEW.
     LabVIEW to TestStand: check the image below: You need to click the button next to 'container'. I have used a cluster output in the VI.
    Hope this helps
    .......^___________________^
    ....../ '---_BOT ____________ ]
    ...../_==O;;;;;;;;_______.:/
    Attachments:
    1.JPG ‏187 KB

  • Answers: Export to Excel: Charts being pushed off screen...

    Hi all, first time posting, been searching on this for hours and I just can't find anything...
    I have an Oracle Answers report that has a header, 2 basic charts side by side, and a data table underneath (awful pictorial #1 in bold). The entire width of the report is consistent.
    The problem I am having is that when I export the report to Excel, the second chart gets pushed off screen (awful pictorial #2). It seems like there is some sort of cell merge thing going on. Is there anyway to get Excel to display the charts side by side the same width as the data table as intended?
    Thanks.
    Example #1
    ________Header_________
    __Chart1__  |   __Chart2___
    ______Data_Table________
    column1 column2 etc...
    row1
    row2
    etc...
    Example #2
    ________Header_________
    __Chart1__  | >>>>>>>>>>> ___Chart2____
    ______Data_Table________
    column1 column2 etc...
    row1
    row2
    etc...

    Hi,
    I hope it's bug..just make SR with My Oracle Support team get confermation, i have also faced this kind of some format,cell merging issue.
    Thanks
    Deva

  • Is it possible to add pushbuttons to the SAP Easy Access Front Screen ?

    Dear gurus.
    Is it possible to add pushbuttons to the SAP Easy Access Front Screen when a person logs in?
    if so how can we achieve it ?
    Regards
    Saad Nisar.

    SAP Standard Menu
    SAP Standard Menu helps you in including your own menu within the Sap menu bar .It helps us in making own function related to the program, sub routines or any transaction. The main advantage of this standard menu is that u can even modify this menu according to your client or project needs.
    The main advantage of the SAP Menu bar is that it can find specific transaction without knowing the transaction code.           SAP Menu is determined by the task you are doing in the SAP R/3 system.
    Menu are like Drop down list ,as when you click on any particular menu item, further options will be displayed.
    You can have as many as standard menu bar in the SAP Standard menu.
    The SAP Menu Bar contains the menus for the functional and administrative areas of the system.
    Features of the Sap Menu Bar are as Follows
    Menu     Description
    System     It contains all the function that affect the system as a whole such as Create session, User profile and Log off
    Help     This menu provide various types of online help that are available in R/3 system
    Following are the Steps how to modify the SAP Standard Menu Bar
    Transaction code SE41 is used for displaying the Menu Painter Menu. 
    Now in the Program field ,Type the MENUSYST  as the Program Name.
    Now in the Status field choose the option MEN by using the F4 help .
    After choosing the MEN option for the Status field, click on the Change then the Following Screen will be displayed
    Click OK and move Forward , it is just Alerting that Menusyst is a user interface .
    After that the Following screen will appear with Modify Status Men in Program MENUSYST
    Double click on the Menu bar shown in the Left side of the Screen .Such as the Menu bar will open .
    Double click on the System such that list of menu will be displayed .
    Now you can See there  are two columns  present in the system menu ,One is Code column and other is Text column. Right Click on your desired location of these two column such that it will show the option.
    From the option menu choose the option Insert Entry . By choosing this option a new row is inserted in the System menu . when the New row is inserted then type Menu  in the code field and My Option in the Text Field as follows. Both the code field and the Text Field name depends on your requirments.
    Now Double click on the Menu of the Code field such that Function attributes window will open.
    In the fuction type choose the function type as T (Call a transaction).and then Click Ok.
    After Selecting the Function type . Click on the Ok button of the fucntion Attruibute Screen .
    After that activate the Function by selecting the Menu in the code field and click on the Fucntion Code button Present on the top of the Sap Screen .
    Now Save (Ctrl +S ) interface of the program MENUSYST  .
    Now Activate (Ctrl + F3) interface MENUSYST as follows .
    Now Come to the Initial screen of the Menu Painter i.e . SE 41 ,so as to test the modified SAP Statndard Menu ( by Pressing F3 )  and Type the Program As MENUSYST and status as MEN and then Click Test Button .
    After clicking the Test Button the Status Simulation Screen will appear , just click Excute button on that popup screen.
    Now the Menu Painter Intial Screen will appear such that you can test your function code there. Now Click on the System menu in the Menu Bar
    After clicking to the System Menu , the list of the option will open and our Customized /Modified SAP Menu will appear into it as follows .
    Now you can See that the My Option Menu appears on the Standard System Menu. There are various Advantages of the modification of the Standard Menu which are discussed as follows .
         Code Flexibility, As We can choose our own predefined Standard Menu fucntion in the Program as required by the client.
         Independency . Sap program is independent of various other supporting program that are supporting to the defined function.
         Ease of Code . More Uniformity is established between the Standard Menu function.We can include our own predefined fucntion module within this standard function module
    Deactivating of the SAP Standard Menu
    You can just move to the MENUSYST Prgram through SE41 Transaction Code . then Select the MENU option which you had customized and then click the Function Code again in the SAP screen.
    Then Message will be Displayed that Function MENU is Deactivated as follows .
    Now Save and Activate the interface MENUSYST. Test the Program using the Initial Screen SE41
    And check the System menu in the Menu bar ,then the My Option Menu is deactivated .

  • Off-screen title bar and menu

    I have a dual monitor setup, where the monitors have different resolution. I usually open documents on the larger screen, but if I open a second document it opens on the smaller screen with title bar and main menu off-screen. Is it any way I can anchor new windows to the top of the screen instead of the bottom?

    parish_chap wrote:
    V.K. wrote:
    parish_chap wrote:
    Unfortunately, as with Expose, the Prefs window disappears when I activate Spaces.
    I don't quite understand what you mean. do you mean that the system preferences window moves off screen when you enable spaces? when you enter spaces view (F8 is the default shortcut) you should see all windows in all spaces on all monitors. is this not working?
    It isn't displayed, i.e. it disappears. Remember this is a MS app and appears to follow the semantics of modal dialogues in Windows, i.e. they aren't "real" windows. They are a PITA in Windows as it's possible to hide them with another window and they are a pain to find - they don't appear in window lists and you can't Alt-TAB to them.
    oh, yes, I forgot about that. I know that MS office Spaces integration was supposed to be fixed in Snow Leopard but I guess that didn't happen with MSN messenger. that's probably also the reason those apple scripts you tried didn't work.
    Looking at this from a different angle, where are window positions likely to be saved as the position is retained across reboots. Is it the OS that handles this, or the app itself?
    the window positions of an application are stored in the preference file of that application in /users/username/library/preferences. if you quit an application, delete its preference file and relaunch it then it should display on the default screen with default values. however, some apps (like Mail) keep important data in their preference files and deleting them will wipe that data.
    Thanks. As you said about Mail, MSN Messenger stores all its data in their, e.g. account details, and the plist file is binary, but a quick Google revealed plutil so I converted it to XML, edited it in vi, and converted back to binary +et voilà+ it worked!!
    The window position was 0, -56 so I just changed it to 0, 56
    that will of course, do it.
    Thanks for your help!
    you are welcome.

  • [svn:fx-4.0.0] 13423: Fixing an OSMF bug where if it was off-screen, it wouldn't load up until the video was onScreen.

    Revision: 13423
    Revision: 13423
    Author:   [email protected]
    Date:     2010-01-11 13:19:43 -0800 (Mon, 11 Jan 2010)
    Log Message:
    Fixing an OSMF bug where if it was off-screen, it wouldn't load up until the video was onScreen.  This was affecting effects, and we should load up the video as long as either autoPlay=true or autoDisplayFirstFrame=true, even if we're not on-screen.
    QE notes: -
    Doc notes: -
    Bugs: SDK-24933
    Reviewer: Kevin
    Tests run: checkintests, Peter ran cyclone
    Is noteworthy for integration: no
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24933
    Modified Paths:
        flex/sdk/branches/4.0.0/frameworks/projects/spark/src/spark/components/VideoDisplay.as

    Does the ext directory have the php_oci8.dll? In the original steps the PHP dir is renamed. In the given php.in the extension_dir looks like it has been updated correctly. Since PHP distributes php_oci8.dll by default I reckon there would be a very good chance that the problem was somewhere else. Since this is an old thread I don't think we'll get much value from speculation.
    -- cj

  • Saving an off screen Swing JPanel to a BufferedImage

    First, thanks for reading this. I have read through almost the whole forum and tried countless deviations of examples given here, but to no success.
    The situation is that from an Java 1.3 Applet, I am creating the ability for a user to create a simple graphic using standard Swing JTextArea components. This gives him/her the ability to place text arbitrarily on an JPanel. This works fine. The problem comes when the user wants to preview the image with the parametes replaced in the JTextAreas.
    We are generating GIF files after the user puts in the data. The problem occurs when we create an off screen JPanel with new JTextAreas with the parameters replaced with the test data filled in. We seem unable to create a BufferedImage from the un-shown JPanel.
    I have tried putting the JPanel in a JFrame and showing it before I call paint/print, etc. The only thing that seems to happen is that the JPanel background color is rendered to the GIF file, but not the JTextAreas on the JPanel. I have sucessfully written directly to the Graphics of the JPanel using drawString and generated a GIF, but that does not accomplish our goal.
    Any help would be appreciated. A test routine is included to give you the code. TIA.
    Kurt
    void test() {
    int height = 400;
    int width = 400;
    JFrame jf = new JFrame();
    jf.setBounds(0, 0, width, height);
    JPanel p = new JPanel();
    p.setBackground(Color.blue);
    p.setSize(width,height);
    JTextArea ta = new JTextArea();
    ta.setBackground(Color.black);
    ta.setForeground(Color.red);
    ta.setText("This is the text to set");
    ta.setColumns(10);
    ta.setRows(3);
    ta.setEditable(true);
    ta.setEnabled(true);
    ta.setVisible(true);
    p.add(ta);
    p.validate();
    jf.getContentPane().add(p);
    jf.validate();
    saveToFile(p);
    // This was taken and slightly modified for the AnimagedGifEncoder
    void saveToFile(JComponent source) {
    int w = source.getWidth();
    int h = source.getHeight();
    int type = BufferedImage.TYPE_INT_RGB;
    BufferedImage image = new BufferedImage(w, h, type);
    Graphics2D g2 = image.createGraphics();
    source.paint(g2);
    g2.dispose();
    AnimatedGifEncoder gif = new AnimatedGifEncoder();
    gif.start("D:/tmp/gifs/mygif.gif");
    gif.setDelay(1000);
    gif.addFrame(image);
    gif.finish();

    Your approach "putting the JPanel in a JFrame and showing it before I call paint/print" was ok, but it must be done in another thread, this sample is doing a similar job.
    You will see that when the print dialog is shown, the frame is fully visible with the button,
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.awt.print.*;
    public class PrintF extends JFrame
         JPanel  pan = new JPanel();
         JButton pri = new JButton("Print");
         JButton b1 = new JButton("The Click");
    public PrintF()
         super("This is a full frame print test");
         setBounds(1,1,500,350);     
         addWindowListener(new WindowAdapter()
        {     public void windowClosing(WindowEvent ev)
                   dispose();     
                   System.exit(0);
         getContentPane().add("Center",pan);
         pan.setBackground(Color.white);
         pan.add(new JLabel("Label 1"));
         pan.add(pri);
         pri.addActionListener(new ActionListener()
         {     public void actionPerformed( ActionEvent e )
                   TheT t = new TheT(b1);
    //               printIt(); 
         setVisible(true);
    public class TheT extends Thread  implements Printable
         JFrame  frame = new JFrame("The printed frame");  
    public TheT(JButton b)
         frame.setBounds(50,50,400,350);     
         frame.getContentPane().setLayout(null);     
         frame.getContentPane().add(b);
         b.setBounds(20,80,150,30);     
         start();
    public void run()
         frame.setVisible(true);
         printIt(); 
         frame.dispose();
    private void printIt()
         PrinterJob pj = PrinterJob.getPrinterJob();  
         PageFormat pf = pj.defaultPage();
         pf.setOrientation(pf.LANDSCAPE);
         pj.setPrintable(this,pf);
         if (pj.printDialog())
              try
                   pj.print();
              catch (Exception e){}    
    public int print(Graphics g, PageFormat pf, int pi)
                                                throws PrinterException
         if (pi > 0)
              setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
              return Printable.NO_SUCH_PAGE;
         setCursor(new Cursor(Cursor.WAIT_CURSOR));
         g.translate((int)pf.getImageableX()+2,(int)pf.getImageableY()+2);
         try
              Robot     r     = new Robot();
              Rectangle rect  = frame.getBounds();
              Image     image = r.createScreenCapture(rect);
              g.drawImage(image,2,2,null);
         catch(AWTException awe)
              System.out.println("robot excepton occurred");
         return(Printable.PAGE_EXISTS);
    public static void main (String[] args)
         new PrintF();  
    }       Noah

Maybe you are looking for

  • IMac (15in flat panel) won't stay on

    Hi, I have an 15in flat panel iMac that will shut off almost immediately after you turn it on. The computer and the screen both turn on for a few seconds and shut down. It seems as if the computer just loses power after you turn it on. I have replace

  • I  new to macbook air where is the eject button

    i am new to the macbook air, where is the eject button?

  • Displaying header and line items

    Hi, i) i have a fieldname i.e text and its value to display in the bodypage  (body).. i want to display the text and its value only if the value is there.. otherwise it should not be displayed and a blank line also should not appear in smartforms we

  • Subtotal

    Hi, i need to get subtotal title in ALV report. for eg: N1               100 N1                200 N2                300 N2                400 N1         SUBTOTAL                 300 N2 SUBTOTAL                700 TOTAL                        1000

  • Interaction between Edge Animate and RaphaelJS (or any svg library)

    Hello. Edge Animate's possibilities are really nice as long as i'm working with anything rectangular. The overall UI is very practical and so, but when you want to work with more complex shapes overlapping it gets very limitated. I've looked around w