RotateTransition ImageView Error

hi i have a problem with the Rotation in JavaFX i have install JavaFX 2.0.1. When i try the following Code example i only see the half picture but i dont know why. Without the Rotate i see the complete picture(its a "png" Image). When i Rotate the picture on the Z.AXIS the picture is also complete but on X.AXIS and Y.AXIS i have the Problem with the picture
ImageView  imagePos = (ImageView) levelItems.getChildren().get(0);
RotateTransition rotateTransition = new RotateTransition(Duration.seconds(2), imagePos);
rotateTransition.setAxis(Rotate.Y_AXIS);
rotateTransition.setFromAngle(0);
rotateTransition.setToAngle(360);
rotateTransition.setCycleCount(Timeline.INDEFINITE);
rotateTransition.play();     

The standard parallel camera is unkind to animations on the rotations around the y axis.
For the parallel camera, the user's eye is at z axis point 0, so any -ve z axis values will be clipped. When you rotate your image, half of it immediately goes negative and is clipped. You can somewhat get around this by setting translateZ for the node to a positive value. But, if you set translateZ too large or the node is a big node, when you do the rotation your node will still get clipped because the parallel camera does not support an infinite z clip distance, and in fact the z clip distance is really short (only a couple of hundred units). This latter issue perhaps may be bug, I'm not really sure, it certainly seems really annoying.
Place a perspective camera on the scene and you will get better results (as long as your Platform supports the ConditionalFeature.SCENE3D). The perspective camera places the viewer at a -ve co-ordinate on the z axis rather than at a zero co-ordinate and the range of z values accepted by it is far greater.
See this thread for further info: Re: How far is the eye from the z=0 plane,when using the PerspectiveCamera?
Or compile and play with the following program to get a better feel for it: http://jewelsea.wordpress.com/2011/11/16/rotation-transform-example/
Edited by: jsmith on Dec 2, 2011 4:23 PM
Fixed link to relevant thread.

Similar Messages

  • Lib/libz.so: could not read symbols: Invalid operation

    Hi,
    I am facing the following issue while compiling my code which is using gdcm lib in QT. The same source works fine in ubuntu but not here....
    lQt5PrintSupport -lQt5OpenGL -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread
    /usr/bin/ld: /usr/local/lib/libgdcmDSED.a(gdcmReader.cxx.o): undefined reference to symbol 'inflateInit2_'
    /usr/bin/ld: note: 'inflateInit2_' is defined in DSO /usr/lib/libz.so.1 so try adding it to the linker command line
    /usr/lib/libz.so.1: could not read symbols: Invalid operation
    Makefile:181: recipe for target 'imageviewer' failed
    collect2: error: ld returned 1 exit status
    make: *** [imageviewer] Error 1
    19:41:26: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project imageviewer (kit: Desktop)
    if I add -lz in the project .pro file.. I get the following error..
    usr/bin/ld: /usr/local/lib/libgdcmDSED.a(gdcmReader.cxx.o): undefined reference to symbol 'inflateInit2_'
    Makefile:181: recipe for target 'imageviewer' failed
    /usr/bin/ld: note: 'inflateInit2_' is defined in DSO /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../lib/libz.so so try adding it to the linker command line
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../lib/libz.so: could not read symbols: Invalid operation
    collect2: error: ld returned 1 exit status
    make: *** [imageviewer] Error 1
    19:02:58: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project imageviewer (kit: Desktop)
    When executing step 'Make'
    Don't know whats wrong and how it will be solved?
    Bilal

    Hi Connor,
    I solved the issue, it seems like the library path was pointing to /usr/local/lib rather than /usr/lib. Now the code is working fine.
    I assume that ubuntu and arch places gdcm libraries at different locations, it was working code moved from ubuntu to arch and i got that error.
    Bilal

  • 3d parsing error in acrobat 8.2

    Hello
    I am using Acrobat pro 8.2.0
    I have been able to create 3d pdf files in the past but now I am getting 3d parsing error.
    I get this file that I have created in the past and opened succeessfully. I don't know what has changed on my system to cause this problem
    Please help
    Kirk
    Available Physical Memory: 741532 KB
    Available Virtual Memory: 1912288 KB
    BIOS Version: A M I  - 2000503
    Default Browser: C:\Program Files\Internet Explorer\iexplore.exe
        Version: 6.00.2900.5512 (xpsp.080413-2105)
        Creation Date: 2007/09/01
        Creation Time: 6:51:18 AM
    Default Mail: Microsoft Outlook
        mapi32.dll
        Version: 1.0.2536.0 (XPClient.010817-1148)
    Graphics Card: RADEON X850 Series
        Version: 6.14.10.6925
        Check: Not Supported
    Installed Acrobat: C:\Program Files\Adobe\Acrobat 8.0\Acrobat\Acrobat.exe
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:42:43 AM
    Locale: English (United States)
    Monitor:
        Name: RADEON X850 Series
        Resolution: 1024 x 768 x 85
        Bits per pixel: 32
    Monitor:
        Name: RADEON X850 Series - Secondary
        Resolution: 1024 x 768 x 60
        Bits per pixel: 32
    OS Manufacturer: Microsoft Corporation
    OS Name: Microsoft Windows XP Professional
    OS Version: 5.1.2600  Service Pack 3
    Page File Space: 4037188 KB
    Processor: x86 Family 15 Model 3 Stepping 4  GenuineIntel  ~3211 Mhz
    System Name: AWM
    Temporary Directory: C:\DOCUME~1\Kirk\LOCALS~1\Temp\
    Time Zone: Mountain Standard Time
    Total Physical Memory: 2096364 KB
    Total Virtual Memory: 2097024 KB
    User Name: Kirk
    Windows Directory: C:\WINDOWS
    Installed plug-ins:
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\ADBC.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:08 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\Accessibility.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:11 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\AcroForm.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:08 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\Annots.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:20 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\Catalog.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:24 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\Checkers.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:19 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\DVA.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:19 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\DWFAcrobatAddIn.api
        Version:
        Creation Date: 2008/01/19
        Creation Time: 3:23:02 PM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\DigSig.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:08 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\DistillerPI.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:07 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\EScript.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:18 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\EWH32.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:19 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\Editor.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:22 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\HLS.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:18 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\HTML2PDF.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:17 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\IA32.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:17 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\ImageConversion.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:05 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\ImageViewer.API
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:25 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\InDesignPI.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:27 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\JDFProdDef.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:27 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\MakeAccessible.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:16 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\Multimedia.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:04 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\PDDom.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:16 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\PPKLite.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:14 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\PaperCapture.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:01 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\Preflight.api
        Version: 8.1.0 (241)
        Creation Date: 2008/11/06
        Creation Time: 10:41:46 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\ReadOutLoud.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:22 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\SaveAsRTF.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:13 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\SaveAsXML.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:07 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\Scan.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:21 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\Search.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:25 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\Search5.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:24 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\SendMail.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:13 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\Spelling.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:04 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\TablePicker.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:03 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\TouchUp.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:12 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\Updater.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:12 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\WebPDF.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:03 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\XPS2PDF.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:00 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\eBook.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:22 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\reflow.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:14 AM
    C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\weblink.api
        Version: 8.2.0.81
        Creation Date: 2010/01/18
        Creation Time: 10:43:12 AM

    I am getting the same error even in Acrobat version 8.1.3.
    Additionally, I noticed that if we click on menu ‘Advanced->Sign&Certify->Preview Document’, then we get a notification as “This document is not PDF/SigQ compliant and may display inconsistently”. On clicking  ‘View report’ on that notification, the below dialog pops up. It has errors listed as:-
    Code 4000 : Unrecognized PDF content. The document contains PDF content or custom content not supported by the current version of Acrobat.
    Code 4002: PDF content contains erros.
    However, if we sign the PDF using default adobe signature functionality and reopen that PDF, the error does NOT come and the notification also says ‘This document is PDF/SigQ compliant’.
    Can anybody please suggest what could be missing in the custom sign that we apply? Is it because of any of the missing fonts or any other resources?
    Awaiting reply!
    Regards.

  • Error while getting  image from database in SUP using ios?

    Hi All,
      Im developing native iOS application using sup 2.1.3 . Im getting error While retrieving  image from SUP database. Here i'm trying to get image from database and show in imageView.can any one help me how to fix this issue?
    In database image datatype is  'LONG Binary' .
    My table Schema:
    CREATE TABLE dba.ImagesTable (
    RowID INT NOT NULL,
    ImageName VARCHAR(20) NOT NULL,
    PhotoData LONG BINARY NOT NULL,
    IN SYSTEM
    ALTER TABLE dba.ImagesTable
      ADD CONSTRAINT ASA137 PRIMARY KEY CLUSTERED (RowID)
    ALTER TABLE dba.ImagesTable
      ADD CONSTRAINT ASA138 UNIQUE NONCLUSTERED (RowID)
    in Xcode:
                [SUP107SUP107DB synchronize];
                SUP107ImagesTable *imgTable =[[SUP107ImagesTable alloc]init];
                SUP107ImagesTableList *list =[SUP107ImagesTable findAll];
                SUP107ImagesTable * oneRecord =[list objectAtIndex:0];
                NSLog(@"rowId:%d---imageName:%@---photoData:%@---photoLenght:%d",oneRecord.rowID,oneRecord.imageName,oneRecord.photoData,oneRecord.photoDataLength);
                NSData *tempData =[[NSData alloc]init];
                SUPBigBinary *responseBinaryData = (SUPBigBinary *)oneRecord.photoData.value;
                @try {
                    [responseBinaryData openForWrite:[oneRecord.photoData length]];
                    [responseBinaryData write:tempData];
                @catch (NSException *exception) {
                    NSLog(@"exception: %@",[exception description]);
                UIImageView *imgView =[[UIImageView alloc] initWithFrame:CGRectMake(50,50,100,100)];
                [self.window addSubview:imgView];
                UIImage * tempImage =[UIImage imageWithData:tempData];
                imgView.image = tempImage;
                [responseBinaryData close];
    Error Log:
    2014-04-02 18:42:15.150 SUP102[2873:70b] rowId:1---imageName:Apple---photoData:SUPBigBinary: column=c pending=1 allow_pending_state=1 table=sup107_1_0_imagestable mbo=0x0 key=(null) ---photoLenght:90656
    Printing description of responseBinaryData:
    <OS_dispatch_data: data[0xc891b40] = { leaf, size = 90656, buf = 0x1213a000 }>
    2014-04-02 18:42:33.304 SUP102[2873:70b] -[OS_dispatch_data openForWrite:]: unrecognized selector sent to instance 0xc891b40
    2014-04-02 18:42:33.305 SUP102[2873:70b] exception: -[OS_dispatch_data openForWrite:]: unrecognized selector sent to instance 0xc891b40
    2014-04-02 18:42:33.305 SUP102[2873:70b] -[OS_dispatch_data close]: unrecognized selector sent to instance 0xc891b40
    2014-04-02 18:42:33.306 SUP102[2873:70b] [ERROR] [AppDelegate.m:497] NSInvalidArgumentException: -[OS_dispatch_data close]: unrecognized selector sent to instance 0xc891b40

    This thread talks about uploading image to SAP from a IOS device,Sending Image to SAP via iOS Native app (SUP 2.1.3)
    Midhun VP

  • Error with Pivot Table in 10.3.6 weblogic server

    Hi Everyone,
    I created an ADF application and in that i have a Pivot Table i developed using Jdeveloper 11.1.1.3 it was working fine when we deployed the application in Weblogic server 10.3.3.
    Now DBA's upgraded the Weblogic server to 10.3.6 so i downloaded Jdeveloper 11.1.1.6 and generated the EAR file and deployed in the new 10.3.6 server. The pivot table is not working i am getting the following error message
    Root cause of ServletException.
    java.lang.NoSuchMethodError: oracle.adfinternal.view.faces.bi.renderkit.imageView.ImageViewRendererUtils.isAttachmentMode()Z
    at oracle.adfinternal.view.faces.bi.renderkit.pivotTable.RichPivotTableRenderer.getRowBlockSize(RichPivotTableRenderer.java:1489)
    at oracle.adfinternal.view.faces.bi.renderkit.pivotTable.RichPivotTableRenderer.getPivotTableEncodeContext(RichPivotTableRenderer.java:1616)
    at oracle.adfinternal.view.faces.bi.renderkit.pivotTable.RichPivotTableRenderer.encodeAll(RichPivotTableRenderer.java:1789)
    Here is the code
    <dvt:pivotTable id="employeeDocuments_pt"
                            value="#{bindings.lum_EmployeeDocumentsReportView1.pivotTableModel}"
                            binding="#{backingBeanScope.backing_LUM_EMPLOYEE_DOCUMENTS_REPORT.employeeDocuments_pt}"
                            var="cellData" varStatus="cellStatus" sizing="auto" summary="Enrollments"
                            inlineStyle="width:1400px; height:900.0px;"
                            rowFetchSize="-1" columnFetchSize="75">
                <dvt:dataCell dataAttribute="DocumentFlag">
                <af:selectBooleanCheckbox id="idselectbooleancheckbox" label="SELECT" value="#{cellData.dataValue}"
                  readOnly="true"/>
                </dvt:dataCell>              
                </dvt:pivotTable>
    The code remains the same nothing changed from 10.3.3 to 10.3.6 and i even tried deploying the ear file generated from jdeveloper 11.1.1.3 even that did not work.
    Is this soemthing related to libraries issue?
    Can some one help me on this.
    Thanks,
    Harika.

    Timo,
    This the total code for Pivot table and to export that to Excel i think something in the below code is not supported in 11.1.1.6 and later versions. Can i use <dvt:exportPivotTableData> in commandButton ? because when i comment this code it is working fine.
    <af:commandButton text="EXPORT TO EXCEL" immediate="true"
                                binding="#{backingBeanScope.backing_LUM_EMPLOYEE_DOCUMENTS_REPORT.export_btn}"
                                id="export_btn" visible="false"
                                inlineStyle="font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; font-size: small;">
            <dvt:exportPivotTableData type="excelHTML" exportedId="employeeDocuments_pt"
               filename="Department_TrainingDocuments_Report.xls" title="PivotTable export"/>
                                </af:commandButton>
    <dvt:pivotTable id="employeeDocuments_pt"
                            value="#{bindings.lum_EmployeeDocumentsReportView1.pivotTableModel}"
                            binding="#{backingBeanScope.backing_LUM_EMPLOYEE_DOCUMENTS_REPORT.employeeDocuments_pt}"
                            var="cellData" varStatus="cellStatus" sizing="auto" summary="Enrollments"
                            inlineStyle="width:1400px; height:900.0px;"
                            rowFetchSize="-1" columnFetchSize="75">
                <dvt:dataCell dataAttribute="DocumentFlag">
                <af:selectBooleanCheckbox id="idselectbooleancheckbox" label="SELECT" value="#{cellData.dataValue}"
                  readOnly="true"/>
                </dvt:dataCell>              
                </dvt:pivotTable>
    Thanks,
    Harika.

  • Hi, odd error in my code with a draw circle method

    Hey, I am a first year computer science student who uses java in class.
    We have recently been playing with guis
    I have created code that when it runs it draws random circles with random gradiants.
    However, the code will sometimes draw a random square, any ideas.
    import java.io.*;
    import java.util.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import javax.imageio.*;
    * Class for animations, if I dont finish this lab I will have egg on my face
    public class AnimationStation {
         private JFrame frame; //the jframe
         private IView viewer; //the viewer
         * Constructor
         public AnimationStation() {
              frame = new JFrame(); //makes jframe
              viewer = new IView(); //makes iview
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //window closes
              frame.setSize(300, 500); //biggie or smallie
              frame.getContentPane().add(BorderLayout.CENTER,viewer); //place it
              frame.setVisible(true);
         * Main Method
         public static void main(String[] args) {
              AnimationStation cutie = new AnimationStation();
         * The IView inner class
         class IView extends JPanel {
              int x = 0; //x pos
              int y = 0; //w pos
              int d = 0; //diameter
              Color randomColor1; //random color     
              Color randomColor2; // random color
              private boolean imageOn = true; //do we care about the background, or are we looking for that square?
              * Default constructor
              public IView() {
              //wonders... is this neccessary.... ::thinks:: well it works so lets not mess with it
              * Builds our pretty pictures
              public void paintComponent(Graphics g) {
                         g.setColor(Color.white); //make background
                         g.fillRect(0,0,this.getWidth(),this.getHeight()); //background
                   for(int x = 0; x < 10; x++) { //no? draw ovals
                             drawOval(g);
              * Method to make ovals
              *(and apparently a random square, although I think its good luck if you do! So its a feature, not a bug)
              public void drawOval(Graphics g) {
                   d = (int)((Math.random() * 10) + (this.getWidth() / 5)); //set diameter
                   x = (int)(Math.random() * (this.getWidth() - d)); //set x dont let it off the screen
                   y = (int)(Math.random() * (this.getHeight() - d)); //set y dont let it off the screen
                   randomColor1 = randomColor(); //set random color one
                   randomColor2 = randomColor(); //set random color two
                   Graphics2D g2d = (Graphics2D) g; //make a graphics 2d object, helps with gradiants
                   GradientPaint gradient; //make gradiant
                   gradient = new GradientPaint(x, y, randomColor1, x+d, y+d, randomColor2); //set gradiant
                   g2d.setPaint(gradient); //set paint
                   g2d.fillOval(x,y,d,d); //make that oval
              * Method which makes a random color
              public Color randomColor() {
                   Color a = new Color((int)(Math.random() * 255), (int)(Math.random() * 255), (int)(Math.random() * 255));
                   return a;
              * Checks to see if a file is an image file (I REALLY hope this is not how other programs do it,
              *  becuase technically I can make this a graphic "mv ImageViewer.java fake.gif")
              public boolean isImageFile(String filename) {
                   String ending = "" + filename.charAt(filename.length() - 4) + filename.charAt(filename.length() - 3) + filename.charAt(filename.length() - 2) +
                        filename.charAt(filename.length() - 1); //make a string with the last four letters
                   if(ending.equalsIgnoreCase(".jpg") || ending.equalsIgnoreCase(".gif") || ending.equalsIgnoreCase(".bmp")) { //is it an image?
                        return true; //yes
                   } else {
                        return false; //no
    }thanks,
    Bachmann

    well, let me explain some more. Its more of an irritation, then a crippling error....
    The squares are quite clear. I mean, its not like a small circle that looks squareish, I have seen a square appear and it could be larger than the circles that I see.
    It is also very rare, so yeah, it could have something to do with the random aspects.
    It just kinda bothers me since nither me, my classmates, or my professor can figure out why this happens and no one else has mentioned this problem.

  • Inserting a Line in front(top ) of a imageview Problems. (x,y) issues

    Hi Guys, so, im making a concept of a Round-robin , i think. Its called Fila Circular in Portuguese. Anyway, the thing is, every time the user press Push, a ball(aka circle) must enter the [index] of the hexagon. But, im having issues making the path.
    When i Mess the X, the Y changes. When i Mess the Y, the X changes.
    Heres the Fully Code, and a picture so you can analyze , in that picture, the startX was very clsoe to 0 as startY was also.But when i moved the endX, it came down all the way.
    First the link :
    http://img17.imageshack.us/img17/5696/duvidajavafx.jpg
    Now the Code of the two Classes :
    Please help me.
    package filacircular;
    import java.net.MalformedURLException;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javafx.application.Application;
    import javafx.geometry.Pos;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.Label;
    import javafx.scene.control.TextField;
    import javafx.scene.effect.BlendMode;
    import javafx.scene.layout.StackPane;
    import javafx.stage.Stage;
    import javafx.scene.image.Image;
    import javafx.scene.image.ImageView;
    import javafx.scene.layout.GridPane;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.CubicCurve;
    import javafx.scene.shape.Line;
    * @author André
    public class FilaCircular extends Application {
        private int vet[] = new int[5];
        private int begin;
        private int last;
        private boolean queueFull;
        public static void main(String[] args) {
            launch(args);
        @Override
        public void start(Stage primaryStage) {
            Controle c = new Controle();
            StackPane root = new StackPane();
            Scene scene = new Scene(root, 750, 750, Color.GHOSTWHITE);
            ImageView imv = null;
            GridPane gp = new GridPane();
            gp.setHgap(5);
            gp.setVgap(5);
            Button pushBeginBt = new Button("Push From Begin");
            pushBeginBt.setPrefSize(150, 25);
            Button pushEndBt = new Button("Push From End");
            pushEndBt.setPrefSize(150,25);
            Button pullBeginBt = new Button("Pull From Begin");
            pullBeginBt.setPrefSize(150, 25);
            Button pullEndBt = new Button("Pull From End");
            pullEndBt.setPrefSize(150,25);
            Label sizeLabel = new Label("Size");
            TextField textSize = new TextField("5");
            textSize.setEditable(false);
            Label beginLabel = new Label("Begin");
            TextField textBegin = new TextField("");
            textBegin.setEditable(false);
            Label lastLabel = new Label("Last Var");
            TextField textLast = new TextField("");
            textLast.setEditable(false);
            Label queueLabel = new Label("Queue");
            TextField textqueueFull = new TextField("");
            textqueueFull.setEditable(false);
            queueLabel.setPrefSize(100,10);
            try {
                imv = c.getImage();
                gp.add(imv,8,25);
                imv.toBack();
                imv.setOpacity(0.5);
            } catch (MalformedURLException ex) {
                System.out.println("\nError While Loading Image : \n");
                System.out.println(ex.getMessage() + " Finished Transmitting Error;");
            Line l4 = c.getPathTo4();
            gp.setGridLinesVisible(true);
            gp.add(l4,8,25);
            gp.toBack();
            l4.toFront();
            l4.setVisible(true);
            System.out.println("X: " + imv.getX());
            System.out.println("Y: " + imv.getY());
            gp.add(textSize,1, 13);
            gp.add(sizeLabel, 3, 13);
            gp.add(textBegin,1, 15);
            gp.add(beginLabel, 3, 15);
            gp.add(textLast,1, 17);
            gp.add(lastLabel, 3, 17);
            gp.add(textqueueFull,1, 19);
            gp.add(queueLabel, 3, 19);
            gp.add(pushBeginBt,1, 5);
            gp.add(pushEndBt,4,5);
            gp.add(pullBeginBt,1, 10);
            gp.add(pullEndBt,4,10);
            root.getChildren().add(gp);
            primaryStage.setTitle("Minha Pilha Circular");
            primaryStage.setScene(scene);
            primaryStage.show();
         public boolean enQueue(int elem)
            if(isFull()) return false;
            else{
                vet[last++] = elem;
                if(last == vet.length) last = 0;
                if(last == begin) queueFull = true;
            return true;
        public boolean isFull()
        {return queueFull;}
        private int size()
         if (last >= begin && !queueFull)return vet.length + last - begin;
         return vet.length + last - begin;
         public boolean isEmpty()
        {return (size()==0);}
        public int front()
            return vet[begin];
        public int deQueue()
        int aux = vet [begin++];
        if(begin==vet.length) begin = 0;
        queueFull = false;
        return aux;
        public int[] getVet() {
            return vet;
        public void setVet(int[] vet) {
            this.vet = vet;
        public int getBegin() {
            return begin;
        public void setBegin(int begin) {
            this.begin = begin;
        public int getLast() {
            return last;
        public void setLast(int last) {
            this.last = last;
        public boolean isQueueFull() {
            return queueFull;
        public void setQueueFull(boolean queueFull) {
            this.queueFull = queueFull;
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package filacircular;
    import java.io.File;
    import java.net.MalformedURLException;
    import javafx.animation.PathTransition;
    import javafx.scene.Node;
    import javafx.scene.image.Image;
    import javafx.scene.image.ImageView;
    import javafx.scene.shape.CubicCurve;
    import javafx.scene.shape.CubicCurveBuilder;
    import javafx.scene.shape.Line;
    import javafx.scene.shape.LineBuilder;
    import javafx.scene.shape.Path;
    import javafx.util.Duration;
    * @author André Vinícius Lopes
    public class Controle {
        public ImageView getImage() throws MalformedURLException
            String path = "D://FilaCircular.jpg";
            String f = new File(path).toURI().toURL().toExternalForm();
            ImageView imv = new ImageView(f);
            return imv;
        public PathTransition getPathToStack(Node n, Path p)
            PathTransition pt = new PathTransition();
            pt.setNode(n);
            pt.setPath(p);
            pt.setDuration(Duration.millis(2000));
            return pt;
       public Line getPathTo4()
         Line l = LineBuilder.create()
                 .startX(100)
                 .startY(-50)
                 .endX(300)
                 .endY(50)
                 .build();
           return l;
    }Edited by: Andre Lopes on 08/09/2012 21:43

    Thanks for the answer guys. I will try to upload the image to make it runnable.
    Also, About the pref/width etc..
    I dont know where i will put the balls. Anywhere its possible.
    For instance, the ball could come from the 5,5 gripPane and enter the slot 0. When i try to insert another, it will go slot 1, and then when i push ( insert) another, it will go slot 2. , and then 3, and then 4. WHen i pull them, it will leave the last slot inserted.
    I did not make the path yet. Im trying to make a line from outside the hexagon to inside slot[0] , so i can make the ball follow the line.
    Not sure how do this : "" I find that using prefWidth and prefHeigh"" I know how to use pref wifth and pref height, but not sure what you meant.
    Also, im uploading the image to run the thing :
    http://imageshack.us/photo/my-images/253/filacircular.jpg/
    or
    http://img253.imageshack.us/img253/5770/filacircular.jpg

  • Ad Hoc provisioning - code sign error...

    I have a bit of a problem creating the ad hoc build for the app....
    Here's what I did so far:
    1. Created the AdHoc provisioning profile on the portal
    2. Downloaded and installed it in Xcode
    3. Copied the Release configuration as AdHoc
    4. As suggested by some blogs, added the Entitlement.plist file - however, the recommended entries are not to be found in the plist file! That line is "get-task-allow" in the xcode window
    The link below points to a screen capture that shows what's happening:
    http://www.mediafire.com/imageview.php?quickkey=43endcalxt7jde4
    top_left: blog that suggest the line to be present in Entitlements.plist file
    top right: xcode window that shows the code sign error and the .plist file
    bottom left: the build parameters for the Ad Hoc build
    bottom right: info about Ad Hoc profile in the organizer. Note the App Identifier.
    The code sign error mentions AppID that is different from the one shown in the Organizer window.
    Help!!
    -S-

    I had to create new profile and that fixed it. Originally, I had used the Bundle name for the current app in the store.
    I was able to make the AdHoc build and distribute it.....

  • No declaration of property 'imageview' found in the interface

    i am having trouble with these two errors i have tried many ideas but still no luck, here is how it looks
    #import "IntroViewController.h"
    @implementation IntroViewController
    @synthesize imageview; <no declaration of property 'imageview' found in the interface
    -(void)viewDidLoad {
    imageview.animationImages = [NSArray arrayWithObjects: <' undeclared (first use in this function)
    [UIImage imageNamed:@"Logo 1.jpg"],
    [UIImage imageNamed:@"Logo 2.jpg"],
    [UIImage imageNamed:@"Logo 3.jpg"],
    [UIImage imageNamed:@"Logo 4.jpg"],
    [UIImage imageNamed:@"Logo 5.jpg"],
    [UIImage imageNamed:@"Logo 6.jpg"],
    [UIImage imageNamed:@"Logo 7.jpg"],
    [UIImage imageNamed:@"Logo 6.jpg"],
    [UIImage imageNamed:@"Logo 5.jpg"],
    [UIImage imageNamed:@"Logo 4.jpg"],
    [UIImage imageNamed:@"Logo 3.jpg"],
    [UIImage imageNamed:@"Logo 2.jpg"],
    [UIImage imageNamed:@"Logo 1.jpg"], nil];
    imageview.animationduration = 6.00;
    imageview.animationRepeatCount = 1;
    [imageview startAnimating];
    [self.view addSubview:imageview];
    the < represent the errors, please help and thanks!

    thank you that was what the error was, but now i am having a new issue that i can't find an answer for. When the program runs and builds it brings up a black screen then just closes without any of the images ever showing up. any ideas?

  • Adobe Reader print error

    When I try to print some (but not all) pdf documents using Adobe Reader, my printer "stops" and it won't print. I get an error message in my Printer Status box that says "The process "pdffilter" stopped unexpectedly with status 1." I need to delete the job and then "Start Jobs" to print something else.
    I am using Reader 7.0.8 and printer is HP Photosmart 8250.
    I've tried updating my Reader software and my printer driver without avail.
    The same documents will print fine using Preview.
    Any ideas how to resolve???
    G4 Powerbook   Mac OS X (10.4.8)  

    Here are a couple of longshots to try:
    Open FontBook and look for font dupes (they have a bullet by them).
    If you find any select them and then choose resolve dupes from the edit menu.
    Close Adobe Reader and then select the application in the finder.
    Do a Get Info and:
    Disable plug-ins—just click the box to remove the checkmark.
    You can fairly safely disable every plug-in EXCEPT for the following four:
    1. WebLink.acroplugin
    2. ImageViewer.acroplugin
    3. EScript.acroplugin
    4. Search.acroplugin
    Lets hope this helps ... Ken

  • WebEngine.getEngine.Load error thrown for this one site?  Possibly cuz asp?

    so I was trying out a sample for a splash screen and it ended up having a WebView so I decided to play around with it.
    I decided to try and open up a site for a company I work with, and I get some weird error.
    The original site fxexperience works, google works, another site animecrazy.net works, and newegg works.
    import javafx.animation.FadeTransition;
    import javafx.application.Application;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.geometry.Pos;
    import javafx.geometry.Rectangle2D;
    import javafx.scene.Scene;
    import javafx.scene.control.Label;
    import javafx.scene.control.ProgressBar;
    import javafx.scene.effect.DropShadow;
    import javafx.scene.image.Image;
    import javafx.scene.image.ImageView;
    import javafx.scene.layout.Pane;
    import javafx.scene.layout.VBox;
    import javafx.scene.web.WebView;
    import javafx.stage.Screen;
    import javafx.stage.Stage;
    import javafx.stage.StageStyle;
    import javafx.util.Duration;
    import org.w3c.dom.Document;
    /** Example of displaying a splash page for a standalone JavaFX application */
    public class JavaFXApplication7 extends Application {
      private Pane splashLayout;
      private ProgressBar loadProgress;
      private Label progressText;
      private WebView webView;
      private Stage mainStage;
      private static final int SPLASH_WIDTH = 676;
      private static final int SPLASH_HEIGHT = 227;
      public static void main(String[] args) throws Exception { launch(args); }
      @Override public void init() {
        ImageView splash = new ImageView(new Image("http://shelflogic.com/Images/MainPic.jpg"));
        loadProgress = new ProgressBar();
        loadProgress.setPrefWidth(SPLASH_WIDTH - 20);
        progressText = new Label("Loading hobbits with pie . . .");
        splashLayout = new VBox();
        splashLayout.getChildren().addAll(splash, loadProgress, progressText);
        progressText.setAlignment(Pos.CENTER);
        splashLayout.setStyle("-fx-padding: 5; -fx-background-color: cornsilk; -fx-border-width:5; -fx-border-color: linear-gradient(to bottom, chocolate, derive(chocolate, 50%));");
        splashLayout.setEffect(new DropShadow());
      @Override public void start(final Stage initStage) throws Exception {
        showSplash(initStage);
        showMainStage();
        webView.getEngine().documentProperty().addListener((ObservableValue<? extends Document> observableValue, Document document, Document document1) -> {
            if (initStage.isShowing()) {
              loadProgress.progressProperty().unbind();
              loadProgress.setProgress(1);
              progressText.setText("All hobbits are full.");
              mainStage.setIconified(false);
              initStage.toFront();
              FadeTransition fadeSplash = new FadeTransition(Duration.seconds(1.2), splashLayout);
              fadeSplash.setFromValue(1.0);
              fadeSplash.setToValue(0.0);
              fadeSplash.setOnFinished((ActionEvent actionEvent) -> {
                  initStage.hide();
              fadeSplash.play();
      private void showMainStage() {
        mainStage = new Stage(StageStyle.DECORATED);
        mainStage.setTitle("FX Experience");
        mainStage.setIconified(true);
        // create a WebView.
        webView = new WebView();
        webView.getEngine().load("http://shelflogic.com");
        loadProgress.progressProperty().bind(webView.getEngine().getLoadWorker().workDoneProperty().divide(100));
        // layout the scene.
        Scene scene = new Scene(webView, 1000, 600);
        webView.prefWidthProperty().bind(scene.widthProperty());
        webView.prefHeightProperty().bind(scene.heightProperty());
        mainStage.setScene(scene);
        mainStage.show();
      private void showSplash(Stage initStage) {
        Scene splashScene = new Scene(splashLayout);
        initStage.initStyle(StageStyle.UNDECORATED);
        final Rectangle2D bounds = Screen.getPrimary().getBounds();
        initStage.setScene(splashScene);
        initStage.setX(bounds.getMinX() + bounds.getWidth() / 2 - SPLASH_WIDTH / 2);
        initStage.setY(bounds.getMinY() + bounds.getHeight() / 2 - SPLASH_HEIGHT / 2);
        initStage.show();
    }The site works, and if I click the link in the .load(.....) it will send me to the site, just fine.
    I'm curious if this might have to do with the site using ASP?
    super long error...
    ant -f C:\\Users\\Konrad\\Documents\\NetBeansProjects\\JavaFXApplication7 jfxsa-run
    init:
    Deleting: C:\Users\Konrad\Documents\NetBeansProjects\JavaFXApplication7\build\built-jar.properties
    deps-jar:
    Updating property file: C:\Users\Konrad\Documents\NetBeansProjects\JavaFXApplication7\build\built-jar.properties
    Compiling 1 source file to C:\Users\Konrad\Documents\NetBeansProjects\JavaFXApplication7\build\classes
    compile:
    Detected JavaFX Ant API version 1.3
    Launching <fx:jar> task from C:\Program Files\Java\jdk1.8.0\lib\ant-javafx.jar
    Launching <fx:deploy> task from C:\Program Files\Java\jdk1.8.0\lib\ant-javafx.jar
    jfx-deployment-script:
    jfx-deployment:
    jar:
    Copying 12 files to C:\Users\Konrad\Documents\NetBeansProjects\JavaFXApplication7\dist\run829534638
    jfx-project-run:
    Executing com.javafx.main.Main from C:\Users\Konrad\Documents\NetBeansProjects\JavaFXApplication7\dist\run829534638\JavaFXApplication7.jar using platform C:\Program Files\Java\jdk1.8.0/bin/java
    java.lang.NullPointerException
         at com.sun.prism.impl.ps.PaintHelper.setImagePattern(PaintHelper.java:741)
         at com.sun.prism.impl.ps.PaintHelper.setImagePattern(PaintHelper.java:741)
         at com.sun.prism.impl.ps.BaseShaderContext.updatePaintShader(BaseShaderContext.java:256)
         at com.sun.prism.impl.ps.BaseShaderContext.validatePaintOp(BaseShaderContext.java:457)
         at com.sun.prism.impl.ps.BaseShaderContext.validatePaintOp(BaseShaderContext.java:341)
         at com.sun.prism.impl.ps.BaseShaderGraphics.renderGeneralRoundedPgram(BaseShaderGraphics.java:838)
         at com.sun.prism.impl.ps.BaseShaderGraphics.renderGeneralRoundedRect(BaseShaderGraphics.java:539)
         at com.sun.prism.impl.ps.BaseShaderGraphics.fillRect(BaseShaderGraphics.java:1441)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$6.doPaint(WCGraphicsPrismContext.java:683)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$Composite.paint(WCGraphicsPrismContext.java:1319)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$Composite.paint(WCGraphicsPrismContext.java:1304)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext.drawPattern(WCGraphicsPrismContext.java:686)
         at com.sun.webkit.graphics.GraphicsDecoder.drawPattern(GraphicsDecoder.java:384)
         at com.sun.webkit.graphics.GraphicsDecoder.decode(GraphicsDecoder.java:185)
         at com.sun.webkit.graphics.WCRenderQueue.decode(WCRenderQueue.java:69)
         at com.sun.webkit.WebPage.paint2GC(WebPage.java:712)
         at com.sun.webkit.WebPage.paint(WebPage.java:680)
         at com.sun.javafx.sg.prism.NGWebView.renderContent(NGWebView.java:73)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:412)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
         at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1277)
         at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:117)
         at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(AbstractPainter.java:212)
         at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:95)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
         at com.sun.prism.render.RenderJob.run(RenderJob.java:56)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
         at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:129)
         at java.lang.Thread.run(Thread.java:724)
    java.lang.IllegalStateException: Unbalanced saveState/restoreState
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext.dispose(WCGraphicsPrismContext.java:1580)
         at com.sun.javafx.webkit.prism.WCPageBackBufferImpl.disposeGraphics(WCPageBackBufferImpl.java:31)
         at com.sun.webkit.WebPage.paint(WebPage.java:682)
         at com.sun.javafx.sg.prism.NGWebView.renderContent(NGWebView.java:73)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:412)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
         at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1277)
         at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:117)
         at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(AbstractPainter.java:212)
         at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:95)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
         at com.sun.prism.render.RenderJob.run(RenderJob.java:56)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
         at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:129)
         at java.lang.Thread.run(Thread.java:724)
    java.lang.NullPointerException
         at com.sun.prism.impl.ps.PaintHelper.setImagePattern(PaintHelper.java:741)
         at com.sun.prism.impl.ps.BaseShaderContext.updatePaintShader(BaseShaderContext.java:256)
         at com.sun.prism.impl.ps.BaseShaderContext.validatePaintOp(BaseShaderContext.java:457)
         at com.sun.prism.impl.ps.BaseShaderContext.validatePaintOp(BaseShaderContext.java:341)
         at com.sun.prism.impl.ps.BaseShaderGraphics.renderGeneralRoundedPgram(BaseShaderGraphics.java:838)
         at com.sun.prism.impl.ps.BaseShaderGraphics.renderGeneralRoundedRect(BaseShaderGraphics.java:539)
         at com.sun.prism.impl.ps.BaseShaderGraphics.fillRect(BaseShaderGraphics.java:1441)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$6.doPaint(WCGraphicsPrismContext.java:683)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$Composite.paint(WCGraphicsPrismContext.java:1319)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$Composite.paint(WCGraphicsPrismContext.java:1304)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext.drawPattern(WCGraphicsPrismContext.java:686)
         at com.sun.webkit.graphics.GraphicsDecoder.drawPattern(GraphicsDecoder.java:384)
         at com.sun.webkit.graphics.GraphicsDecoder.decode(GraphicsDecoder.java:185)
         at com.sun.webkit.graphics.WCRenderQueue.decode(WCRenderQueue.java:69)
         at com.sun.webkit.WebPage.paint2GC(WebPage.java:712)
         at com.sun.webkit.WebPage.paint(WebPage.java:680)
         at com.sun.javafx.sg.prism.NGWebView.renderContent(NGWebView.java:73)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:412)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
         at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1277)
         at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:117)
         at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(AbstractPainter.java:212)
         at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:95)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
         at com.sun.prism.render.RenderJob.run(RenderJob.java:56)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
         at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:129)
         at java.lang.Thread.run(Thread.java:724)
    java.lang.IllegalStateException: Unbalanced saveState/restoreState
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext.dispose(WCGraphicsPrismContext.java:1580)
         at com.sun.javafx.webkit.prism.WCPageBackBufferImpl.disposeGraphics(WCPageBackBufferImpl.java:31)
         at com.sun.webkit.WebPage.paint(WebPage.java:682)
         at com.sun.javafx.sg.prism.NGWebView.renderContent(NGWebView.java:73)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:412)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
         at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1277)
         at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:117)
         at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(AbstractPainter.java:212)
         at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:95)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
         at com.sun.prism.render.RenderJob.run(RenderJob.java:56)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
         at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:129)
         at java.lang.Thread.run(Thread.java:724)
    java.lang.NullPointerException
         at com.sun.prism.impl.ps.PaintHelper.setImagePattern(PaintHelper.java:741)
         at com.sun.prism.impl.ps.BaseShaderContext.updatePaintShader(BaseShaderContext.java:256)
         at com.sun.prism.impl.ps.BaseShaderContext.validatePaintOp(BaseShaderContext.java:457)
         at com.sun.prism.impl.ps.BaseShaderContext.validatePaintOp(BaseShaderContext.java:341)
         at com.sun.prism.impl.ps.BaseShaderGraphics.renderGeneralRoundedPgram(BaseShaderGraphics.java:838)
         at com.sun.prism.impl.ps.BaseShaderGraphics.renderGeneralRoundedRect(BaseShaderGraphics.java:539)
         at com.sun.prism.impl.ps.BaseShaderGraphics.fillRect(BaseShaderGraphics.java:1441)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$6.doPaint(WCGraphicsPrismContext.java:683)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$Composite.paint(WCGraphicsPrismContext.java:1319)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$Composite.paint(WCGraphicsPrismContext.java:1304)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext.drawPattern(WCGraphicsPrismContext.java:686)
         at com.sun.webkit.graphics.GraphicsDecoder.drawPattern(GraphicsDecoder.java:384)
         at com.sun.webkit.graphics.GraphicsDecoder.decode(GraphicsDecoder.java:185)
         at com.sun.webkit.graphics.WCRenderQueue.decode(WCRenderQueue.java:69)
         at com.sun.webkit.WebPage.paint2GC(WebPage.java:712)
         at com.sun.webkit.WebPage.paint(WebPage.java:680)
         at com.sun.javafx.sg.prism.NGWebView.renderContent(NGWebView.java:73)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:412)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
         at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1277)
         at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:117)
         at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(AbstractPainter.java:212)
         at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:95)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
         at com.sun.prism.render.RenderJob.run(RenderJob.java:56)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
         at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:129)
         at java.lang.Thread.run(Thread.java:724)
    java.lang.IllegalStateException: Unbalanced saveState/restoreState
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext.dispose(WCGraphicsPrismContext.java:1580)
         at com.sun.javafx.webkit.prism.WCPageBackBufferImpl.disposeGraphics(WCPageBackBufferImpl.java:31)
         at com.sun.webkit.WebPage.paint(WebPage.java:682)
         at com.sun.javafx.sg.prism.NGWebView.renderContent(NGWebView.java:73)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:412)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
         at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1277)
         at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:117)
         at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(AbstractPainter.java:212)
         at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:95)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
         at com.sun.prism.render.RenderJob.run(RenderJob.java:56)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
         at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:129)
         at java.lang.Thread.run(Thread.java:724)
    java.lang.NullPointerException
         at com.sun.prism.impl.ps.PaintHelper.setImagePattern(PaintHelper.java:741)
         at com.sun.prism.impl.ps.BaseShaderContext.updatePaintShader(BaseShaderContext.java:256)
         at com.sun.prism.impl.ps.BaseShaderContext.validatePaintOp(BaseShaderContext.java:457)
         at com.sun.prism.impl.ps.BaseShaderContext.validatePaintOp(BaseShaderContext.java:341)
         at com.sun.prism.impl.ps.BaseShaderGraphics.renderGeneralRoundedPgram(BaseShaderGraphics.java:838)
         at com.sun.prism.impl.ps.BaseShaderGraphics.renderGeneralRoundedRect(BaseShaderGraphics.java:539)
         at com.sun.prism.impl.ps.BaseShaderGraphics.fillRect(BaseShaderGraphics.java:1441)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$6.doPaint(WCGraphicsPrismContext.java:683)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$Composite.paint(WCGraphicsPrismContext.java:1319)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$Composite.paint(WCGraphicsPrismContext.java:1304)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext.drawPattern(WCGraphicsPrismContext.java:686)
         at com.sun.webkit.graphics.GraphicsDecoder.drawPattern(GraphicsDecoder.java:384)
         at com.sun.webkit.graphics.GraphicsDecoder.decode(GraphicsDecoder.java:185)
         at com.sun.webkit.graphics.WCRenderQueue.decode(WCRenderQueue.java:69)
         at com.sun.webkit.WebPage.paint2GC(WebPage.java:712)
         at com.sun.webkit.WebPage.paint(WebPage.java:680)
         at com.sun.javafx.sg.prism.NGWebView.renderContent(NGWebView.java:73)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:412)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
         at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1277)
         at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:117)
         at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(AbstractPainter.java:212)
         at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:95)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
         at com.sun.prism.render.RenderJob.run(RenderJob.java:56)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
         at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:129)
         at java.lang.Thread.run(Thread.java:724)
    java.lang.IllegalStateException: Unbalanced saveState/restoreState
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext.dispose(WCGraphicsPrismContext.java:1580)
         at com.sun.javafx.webkit.prism.WCPageBackBufferImpl.disposeGraphics(WCPageBackBufferImpl.java:31)
         at com.sun.webkit.WebPage.paint(WebPage.java:682)
         at com.sun.javafx.sg.prism.NGWebView.renderContent(NGWebView.java:73)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:412)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
         at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1277)
         at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:117)
         at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(AbstractPainter.java:212)
         at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:95)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
         at com.sun.prism.render.RenderJob.run(RenderJob.java:56)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
         at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:129)
         at java.lang.Thread.run(Thread.java:724)
    java.lang.NullPointerException
         at com.sun.prism.impl.ps.PaintHelper.setImagePattern(PaintHelper.java:741)
         at com.sun.prism.impl.ps.BaseShaderContext.updatePaintShader(BaseShaderContext.java:256)
         at com.sun.prism.impl.ps.BaseShaderContext.validatePaintOp(BaseShaderContext.java:457)
         at com.sun.prism.impl.ps.BaseShaderContext.validatePaintOp(BaseShaderContext.java:341)
         at com.sun.prism.impl.ps.BaseShaderGraphics.renderGeneralRoundedPgram(BaseShaderGraphics.java:838)
         at com.sun.prism.impl.ps.BaseShaderGraphics.renderGeneralRoundedRect(BaseShaderGraphics.java:539)
         at com.sun.prism.impl.ps.BaseShaderGraphics.fillRect(BaseShaderGraphics.java:1441)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$6.doPaint(WCGraphicsPrismContext.java:683)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$Composite.paint(WCGraphicsPrismContext.java:1319)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$Composite.paint(WCGraphicsPrismContext.java:1304)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext.drawPattern(WCGraphicsPrismContext.java:686)
         at com.sun.webkit.graphics.GraphicsDecoder.drawPattern(GraphicsDecoder.java:384)
         at com.sun.webkit.graphics.GraphicsDecoder.decode(GraphicsDecoder.java:185)
         at com.sun.webkit.graphics.WCRenderQueue.decode(WCRenderQueue.java:69)
         at com.sun.webkit.WebPage.paint2GC(WebPage.java:712)
         at com.sun.webkit.WebPage.paint(WebPage.java:680)
         at com.sun.javafx.sg.prism.NGWebView.renderContent(NGWebView.java:73)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:412)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
         at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1277)
         at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:117)
         at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(AbstractPainter.java:212)
         at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:95)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
         at com.sun.prism.render.RenderJob.run(RenderJob.java:56)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
         at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:129)
         at java.lang.Thread.run(Thread.java:724)
    java.lang.IllegalStateException: Unbalanced saveState/restoreState
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext.dispose(WCGraphicsPrismContext.java:1580)
         at com.sun.javafx.webkit.prism.WCPageBackBufferImpl.disposeGraphics(WCPageBackBufferImpl.java:31)
         at com.sun.webkit.WebPage.paint(WebPage.java:682)
         at com.sun.javafx.sg.prism.NGWebView.renderContent(NGWebView.java:73)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:412)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
         at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1277)
         at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:117)
         at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(AbstractPainter.java:212)
         at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:95)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
         at com.sun.prism.render.RenderJob.run(RenderJob.java:56)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
         at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:129)
         at java.lang.Thread.run(Thread.java:724)
    java.lang.NullPointerException
         at com.sun.prism.impl.ps.PaintHelper.setImagePattern(PaintHelper.java:741)
         at com.sun.prism.impl.ps.BaseShaderContext.updatePaintShader(BaseShaderContext.java:256)
         at com.sun.prism.impl.ps.BaseShaderContext.validatePaintOp(BaseShaderContext.java:457)
         at com.sun.prism.impl.ps.BaseShaderContext.validatePaintOp(BaseShaderContext.java:341)
         at com.sun.prism.impl.ps.BaseShaderGraphics.renderGeneralRoundedPgram(BaseShaderGraphics.java:838)
         at com.sun.prism.impl.ps.BaseShaderGraphics.renderGeneralRoundedRect(BaseShaderGraphics.java:539)
         at com.sun.prism.impl.ps.BaseShaderGraphics.fillRect(BaseShaderGraphics.java:1441)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$6.doPaint(WCGraphicsPrismContext.java:683)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$Composite.paint(WCGraphicsPrismContext.java:1319)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$Composite.paint(WCGraphicsPrismContext.java:1304)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext.drawPattern(WCGraphicsPrismContext.java:686)
         at com.sun.webkit.graphics.GraphicsDecoder.drawPattern(GraphicsDecoder.java:384)
         at com.sun.webkit.graphics.GraphicsDecoder.decode(GraphicsDecoder.java:185)
         at com.sun.webkit.graphics.WCRenderQueue.decode(WCRenderQueue.java:69)
         at com.sun.webkit.WebPage.paint2GC(WebPage.java:712)
         at com.sun.webkit.WebPage.paint(WebPage.java:680)
         at com.sun.javafx.sg.prism.NGWebView.renderContent(NGWebView.java:73)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:412)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
         at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1277)
         at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:117)
         at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(AbstractPainter.java:212)
         at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:95)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
         at com.sun.prism.render.RenderJob.run(RenderJob.java:56)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
         at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:129)
         at java.lang.Thread.run(Thread.java:724)

    Sorry I had to make another post because apparently my error is so stupid long it exceeds the 30,000 character limit LOL >(
    Also if no one responds or has any idea, I'm going to just make a jira report. If it works for other sites confused why it doesn't for this one... Jira, from what I saw, said nothing about loading.
    java.lang.IllegalStateException: Unbalanced saveState/restoreState
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext.dispose(WCGraphicsPrismContext.java:1580)
         at com.sun.javafx.webkit.prism.WCPageBackBufferImpl.disposeGraphics(WCPageBackBufferImpl.java:31)
         at com.sun.webkit.WebPage.paint(WebPage.java:682)
         at com.sun.javafx.sg.prism.NGWebView.renderContent(NGWebView.java:73)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:412)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
         at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1277)
         at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:117)
         at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(AbstractPainter.java:212)
         at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:95)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
         at com.sun.prism.render.RenderJob.run(RenderJob.java:56)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
         at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:129)
         at java.lang.Thread.run(Thread.java:724)
    java.lang.NullPointerException
         at com.sun.prism.impl.ps.PaintHelper.setImagePattern(PaintHelper.java:741)
         at com.sun.prism.impl.ps.BaseShaderContext.updatePaintShader(BaseShaderContext.java:256)
         at com.sun.prism.impl.ps.BaseShaderContext.validatePaintOp(BaseShaderContext.java:457)
         at com.sun.prism.impl.ps.BaseShaderContext.validatePaintOp(BaseShaderContext.java:341)
         at com.sun.prism.impl.ps.BaseShaderGraphics.renderGeneralRoundedPgram(BaseShaderGraphics.java:838)
         at com.sun.prism.impl.ps.BaseShaderGraphics.renderGeneralRoundedRect(BaseShaderGraphics.java:539)
         at com.sun.prism.impl.ps.BaseShaderGraphics.fillRect(BaseShaderGraphics.java:1441)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$6.doPaint(WCGraphicsPrismContext.java:683)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$Composite.paint(WCGraphicsPrismContext.java:1319)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$Composite.paint(WCGraphicsPrismContext.java:1304)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext.drawPattern(WCGraphicsPrismContext.java:686)
         at com.sun.webkit.graphics.GraphicsDecoder.drawPattern(GraphicsDecoder.java:384)
         at com.sun.webkit.graphics.GraphicsDecoder.decode(GraphicsDecoder.java:185)
         at com.sun.webkit.graphics.WCRenderQueue.decode(WCRenderQueue.java:69)
         at com.sun.webkit.WebPage.paint2GC(WebPage.java:712)
         at com.sun.webkit.WebPage.paint(WebPage.java:680)
         at com.sun.javafx.sg.prism.NGWebView.renderContent(NGWebView.java:73)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:412)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
         at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1277)
         at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:117)
         at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(AbstractPainter.java:212)
         at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:95)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
         at com.sun.prism.render.RenderJob.run(RenderJob.java:56)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
         at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:129)
         at java.lang.Thread.run(Thread.java:724)
    java.lang.IllegalStateException: Unbalanced saveState/restoreState
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext.dispose(WCGraphicsPrismContext.java:1580)
         at com.sun.javafx.webkit.prism.WCPageBackBufferImpl.disposeGraphics(WCPageBackBufferImpl.java:31)
         at com.sun.webkit.WebPage.paint(WebPage.java:682)
         at com.sun.javafx.sg.prism.NGWebView.renderContent(NGWebView.java:73)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:412)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
         at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1277)
         at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:117)
         at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(AbstractPainter.java:212)
         at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:95)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
         at com.sun.prism.render.RenderJob.run(RenderJob.java:56)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
         at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:129)
         at java.lang.Thread.run(Thread.java:724)
    java.lang.NullPointerException
         at com.sun.prism.impl.ps.PaintHelper.setImagePattern(PaintHelper.java:741)
         at com.sun.prism.impl.ps.BaseShaderContext.updatePaintShader(BaseShaderContext.java:256)
         at com.sun.prism.impl.ps.BaseShaderContext.validatePaintOp(BaseShaderContext.java:457)
         at com.sun.prism.impl.ps.BaseShaderContext.validatePaintOp(BaseShaderContext.java:341)
         at com.sun.prism.impl.ps.BaseShaderGraphics.renderGeneralRoundedPgram(BaseShaderGraphics.java:838)
         at com.sun.prism.impl.ps.BaseShaderGraphics.renderGeneralRoundedRect(BaseShaderGraphics.java:539)
         at com.sun.prism.impl.ps.BaseShaderGraphics.fillRect(BaseShaderGraphics.java:1441)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$6.doPaint(WCGraphicsPrismContext.java:683)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$Composite.paint(WCGraphicsPrismContext.java:1319)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$Composite.paint(WCGraphicsPrismContext.java:1304)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext.drawPattern(WCGraphicsPrismContext.java:686)
         at com.sun.webkit.graphics.GraphicsDecoder.drawPattern(GraphicsDecoder.java:384)
         at com.sun.webkit.graphics.GraphicsDecoder.decode(GraphicsDecoder.java:185)
         at com.sun.webkit.graphics.WCRenderQueue.decode(WCRenderQueue.java:69)
         at com.sun.webkit.WebPage.paint2GC(WebPage.java:712)
         at com.sun.webkit.WebPage.paint(WebPage.java:680)
         at com.sun.javafx.sg.prism.NGWebView.renderContent(NGWebView.java:73)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:412)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
         at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1277)
         at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:117)
         at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(AbstractPainter.java:212)
         at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:95)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
         at com.sun.prism.render.RenderJob.run(RenderJob.java:56)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
         at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:129)
         at java.lang.Thread.run(Thread.java:724)
    java.lang.IllegalStateException: Unbalanced saveState/restoreState
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext.dispose(WCGraphicsPrismContext.java:1580)
         at com.sun.javafx.webkit.prism.WCPageBackBufferImpl.disposeGraphics(WCPageBackBufferImpl.java:31)
         at com.sun.webkit.WebPage.paint(WebPage.java:682)
         at com.sun.javafx.sg.prism.NGWebView.renderContent(NGWebView.java:73)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:412)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
         at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1277)
         at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:117)
         at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(AbstractPainter.java:212)
         at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:95)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
         at com.sun.prism.render.RenderJob.run(RenderJob.java:56)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
         at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:129)
         at java.lang.Thread.run(Thread.java:724)
    java.lang.NullPointerException
         at com.sun.prism.impl.ps.PaintHelper.setImagePattern(PaintHelper.java:741)
         at com.sun.prism.impl.ps.BaseShaderContext.updatePaintShader(BaseShaderContext.java:256)
         at com.sun.prism.impl.ps.BaseShaderContext.validatePaintOp(BaseShaderContext.java:457)
         at com.sun.prism.impl.ps.BaseShaderContext.validatePaintOp(BaseShaderContext.java:341)
         at com.sun.prism.impl.ps.BaseShaderGraphics.renderGeneralRoundedPgram(BaseShaderGraphics.java:838)
         at com.sun.prism.impl.ps.BaseShaderGraphics.renderGeneralRoundedRect(BaseShaderGraphics.java:539)
         at com.sun.prism.impl.ps.BaseShaderGraphics.fillRect(BaseShaderGraphics.java:1441)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$6.doPaint(WCGraphicsPrismContext.java:683)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$Composite.paint(WCGraphicsPrismContext.java:1319)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$Composite.paint(WCGraphicsPrismContext.java:1304)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext.drawPattern(WCGraphicsPrismContext.java:686)
         at com.sun.webkit.graphics.GraphicsDecoder.drawPattern(GraphicsDecoder.java:384)
         at com.sun.webkit.graphics.GraphicsDecoder.decode(GraphicsDecoder.java:185)
         at com.sun.webkit.graphics.WCRenderQueue.decode(WCRenderQueue.java:69)
         at com.sun.webkit.WebPage.paint2GC(WebPage.java:712)
         at com.sun.webkit.WebPage.paint(WebPage.java:680)
         at com.sun.javafx.sg.prism.NGWebView.renderContent(NGWebView.java:73)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:412)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
         at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1277)
         at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:117)
         at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(AbstractPainter.java:212)
         at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:95)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
         at com.sun.prism.render.RenderJob.run(RenderJob.java:56)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
         at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:129)
         at java.lang.Thread.run(Thread.java:724)
    java.lang.IllegalStateException: Unbalanced saveState/restoreState
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext.dispose(WCGraphicsPrismContext.java:1580)
         at com.sun.javafx.webkit.prism.WCPageBackBufferImpl.disposeGraphics(WCPageBackBufferImpl.java:31)
         at com.sun.webkit.WebPage.paint(WebPage.java:682)
         at com.sun.javafx.sg.prism.NGWebView.renderContent(NGWebView.java:73)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:412)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
         at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1277)
         at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:117)
         at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(AbstractPainter.java:212)
         at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:95)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
         at com.sun.prism.render.RenderJob.run(RenderJob.java:56)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
         at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:129)
         at java.lang.Thread.run(Thread.java:724)
    java.lang.NullPointerException
         at com.sun.prism.impl.ps.PaintHelper.setImagePattern(PaintHelper.java:741)
         at com.sun.prism.impl.ps.BaseShaderContext.updatePaintShader(BaseShaderContext.java:256)
         at com.sun.prism.impl.ps.BaseShaderContext.validatePaintOp(BaseShaderContext.java:457)
         at com.sun.prism.impl.ps.BaseShaderContext.validatePaintOp(BaseShaderContext.java:341)
         at com.sun.prism.impl.ps.BaseShaderGraphics.renderGeneralRoundedPgram(BaseShaderGraphics.java:838)
         at com.sun.prism.impl.ps.BaseShaderGraphics.renderGeneralRoundedRect(BaseShaderGraphics.java:539)
         at com.sun.prism.impl.ps.BaseShaderGraphics.fillRect(BaseShaderGraphics.java:1441)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$6.doPaint(WCGraphicsPrismContext.java:683)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$Composite.paint(WCGraphicsPrismContext.java:1319)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$Composite.paint(WCGraphicsPrismContext.java:1304)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext.drawPattern(WCGraphicsPrismContext.java:686)
         at com.sun.webkit.graphics.GraphicsDecoder.drawPattern(GraphicsDecoder.java:384)
         at com.sun.webkit.graphics.GraphicsDecoder.decode(GraphicsDecoder.java:185)
         at com.sun.webkit.graphics.WCRenderQueue.decode(WCRenderQueue.java:69)
         at com.sun.webkit.WebPage.paint2GC(WebPage.java:712)
         at com.sun.webkit.WebPage.paint(WebPage.java:680)
         at com.sun.javafx.sg.prism.NGWebView.renderContent(NGWebView.java:73)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:412)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
         at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1277)
         at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:117)
         at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(AbstractPainter.java:212)
         at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:95)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
         at com.sun.prism.render.RenderJob.run(RenderJob.java:56)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
         at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:129)
         at java.lang.Thread.run(Thread.java:724)
    java.lang.IllegalStateException: Unbalanced saveState/restoreState
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext.dispose(WCGraphicsPrismContext.java:1580)
         at com.sun.javafx.webkit.prism.WCPageBackBufferImpl.disposeGraphics(WCPageBackBufferImpl.java:31)
         at com.sun.webkit.WebPage.paint(WebPage.java:682)
         at com.sun.javafx.sg.prism.NGWebView.renderContent(NGWebView.java:73)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:412)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
         at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1277)
         at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:117)
         at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(AbstractPainter.java:212)
         at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:95)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
         at com.sun.prism.render.RenderJob.run(RenderJob.java:56)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
         at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:129)
         at java.lang.Thread.run(Thread.java:724)
    java.lang.NullPointerException
         at com.sun.prism.impl.ps.PaintHelper.setImagePattern(PaintHelper.java:741)
         at com.sun.prism.impl.ps.BaseShaderContext.updatePaintShader(BaseShaderContext.java:256)
         at com.sun.prism.impl.ps.BaseShaderContext.validatePaintOp(BaseShaderContext.java:457)
         at com.sun.prism.impl.ps.BaseShaderContext.validatePaintOp(BaseShaderContext.java:341)
         at com.sun.prism.impl.ps.BaseShaderGraphics.renderGeneralRoundedPgram(BaseShaderGraphics.java:838)
         at com.sun.prism.impl.ps.BaseShaderGraphics.renderGeneralRoundedRect(BaseShaderGraphics.java:539)
         at com.sun.prism.impl.ps.BaseShaderGraphics.fillRect(BaseShaderGraphics.java:1441)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$6.doPaint(WCGraphicsPrismContext.java:683)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$Composite.paint(WCGraphicsPrismContext.java:1319)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext$Composite.paint(WCGraphicsPrismContext.java:1304)
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext.drawPattern(WCGraphicsPrismContext.java:686)
         at com.sun.webkit.graphics.GraphicsDecoder.drawPattern(GraphicsDecoder.java:384)
         at com.sun.webkit.graphics.GraphicsDecoder.decode(GraphicsDecoder.java:185)
         at com.sun.webkit.graphics.WCRenderQueue.decode(WCRenderQueue.java:69)
         at com.sun.webkit.WebPage.paint2GC(WebPage.java:712)
         at com.sun.webkit.WebPage.paint(WebPage.java:680)
         at com.sun.javafx.sg.prism.NGWebView.renderContent(NGWebView.java:73)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:412)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
         at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1277)
         at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:117)
         at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(AbstractPainter.java:212)
         at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:95)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
         at com.sun.prism.render.RenderJob.run(RenderJob.java:56)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
         at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:129)
         at java.lang.Thread.run(Thread.java:724)
    java.lang.IllegalStateException: Unbalanced saveState/restoreState
         at com.sun.javafx.webkit.prism.WCGraphicsPrismContext.dispose(WCGraphicsPrismContext.java:1580)
         at com.sun.javafx.webkit.prism.WCPageBackBufferImpl.disposeGraphics(WCPageBackBufferImpl.java:31)
         at com.sun.webkit.WebPage.paint(WebPage.java:682)
         at com.sun.javafx.sg.prism.NGWebView.renderContent(NGWebView.java:73)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:412)
         at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:69)
         at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1277)
         at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:117)
         at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(AbstractPainter.java:212)
         at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:95)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
         at com.sun.prism.render.RenderJob.run(RenderJob.java:56)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
         at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:129)
         at java.lang.Thread.run(Thread.java:724)
    Deleting directory C:\Users\Konrad\Documents\NetBeansProjects\JavaFXApplication7\dist\run829534638
    jfxsa-run:
    BUILD SUCCESSFUL (total time: 12 seconds)Edited by: KonradZuse on May 23, 2013 1:34 PM

  • Extending ImageView.

    I'm trying to extend the ImageView node to provide a little bit better control over picking behavior.
    I've created a new TileImage class which extends the ImageView class, and I want to override the contains method.
    If I just recreate this method and replace it's contents with my own code, it never gets called, and when I add the override keyword to it (as shown in the examples) I get an error.
    As seen here:
    [http://www.townsfolkdesigns.com/images/override_error.png|http://www.townsfolkdesigns.com/images/override_error.png]
    I'm not quite sure what I'm doing wrong here, any help would be greatly appreciated.
    Thanks,
    Eric

    Hi Bruno,
    :) Absolutely, I've actually been building it a while on my blog:
    [http://www.townsfolkdesigns.com/blogs/elberry]
    Slow going, and I recently decided to change gears and give JavaFX another try, but you should be able to see the progress there. I'm on an older Mac Mini at home, and don't have access to Java 6, so I'm doing all the development in VirtualBox running Ubuntu. haha.
    Anyway, thank you again for the response and help.
    I had thought about consuming the event, however the issue would still exist. The problem with consuming the event is that due to the overlapping of nodes, there is no guarantee that the first node is the correct node. The problem ensues, I need a way to tell JavaFX that the bounds of an ImageView are not the same as the bounds of the actual image used. I need a way to show an image with some overlapping area, and have overlapping area not be included in the nodes area when the mouse is clicked.
    Is there a way to define a clickable region of a node?
    Eg. Imagine below is an image. I need to show the whole image, but only want the area indicated by "B" be clickable.
    AAAAAAAAAAAA
    AABBBBBBBBAA
    AABBBBBBBBAA
    AABBBBBBBBAA
    AAEEEEEEEEAA
    AAAAAAAAAAAAI hope there is an easy way to accomplish this, I really like JavaFX, but feel this is a very key feature if it's going to be used in games, and I can't imagine this is an uncommon request.
    Cheers, and thanks again for all the help and patience. :)
    Eric

  • Getting error and don't know why - array of objects..

    Image slide[] = new Image[25];
         public SlideShow()
         for(int x = 0; x<= slide.length; x++)
              Image slide[x] = new ImageIcon("slide"+ x +"jpg").getImage();
              add(new ImageViewer(slide[x]));
         }Error:
    SlideShow.java:14: ']' expected
              Image slide[x] = new ImageIcon("slide"+ x +"jpg").getImage();
                          ^
    SlideShow.java:14: illegal start of expression
              Image slide[x] = new ImageIcon("slide"+ x +"jpg").getImage();

    You don't need to declare the type of slide[x]. It is already known to be Image, since you declared slide as Image[]
    Foo[] foos = new Foo[1];
    Foo foos[0] = new Foo(); // WRONG
    foos[0] = new Foo(); // RIGHT

  • Note: ImageViewer.java uses or overrides a deprecated API.

    hi,
    iam gettin this error after compilation
    Note: ImageViewer.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    & am running it on j2sdk1.5.0
    Plzzz help

    waoh man......but what 2 look....
    heres da code...
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.io.*;
    import javax.swing.*;
    public class ImageViewer
    public static void main(String[] args)
    JFrame frame = new ImageViewerFrame();
    frame.setTitle("ImageViewer");
    frame.setSize(300, 400);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.show();
    class ImageViewerFrame extends JFrame
    public ImageViewerFrame()
    // set up menu bar
    JMenuBar menuBar = new JMenuBar();
    setJMenuBar(menuBar);
    JMenu menu = new JMenu("File");
    menuBar.add(menu);
    JMenuItem openItem = new JMenuItem("Open");
    menu.add(openItem);
    openItem.addActionListener(new FileOpenListener());
    JMenuItem exitItem = new JMenuItem("Exit");
    menu.add(exitItem);
    exitItem.addActionListener(new
    ActionListener()
    public void actionPerformed(ActionEvent event)
    System.exit(0);
    // use a label to display the images
    label = new JLabel();
    Container contentPane = getContentPane();
    contentPane.add(label, "Center");
    private class FileOpenListener implements ActionListener
    public void actionPerformed(ActionEvent evt)
    // set up file chooser
    JFileChooser chooser = new JFileChooser();
    chooser.setCurrentDirectory(new File("."));
    // accept all files ending with .gif
    chooser.setFileFilter(new
    javax.swing.filechooser.FileFilter()
    public boolean accept(File f)
    return f.getName().toLowerCase()
    .endsWith(".gif")
    || f.isDirectory();
    public String getDescription()
    return "GIF Images";
    // show file chooser dialog
    int r = chooser.showOpenDialog(ImageViewerFrame.this);
    // if image file accepted, set it as icon of the label
    if(r == JFileChooser.APPROVE_OPTION)
    String name
    = chooser.getSelectedFile().getPath();
    label.setIcon(new ImageIcon(name));
    private JLabel label;
    }

  • Help!! Can't install Imageviewer for Adobe Reader 8

    I get this error message when I try to install the ImageViewer plug-in for Adobe Reader 8: "A suitable version of Adobe Acrobat or Acrobat Reader was not found on this system. The Image Viewer plugin requires Acrobat version 5.0 or later. The plugin will not be installed."
    I have checked my version and it's 8.1.2

    ImageViewer is an old plug-in, obsolete with current versions of
    Reader. I seem to remember that Reader includes what the plug-in used
    to do. Are you trying to solve a particular problem?
    Aandi Inston

Maybe you are looking for

  • Cannot Connect to Oracle, PHP cannot load oci dlls

    Hello, I have installed wamp on windows server, and oracle 9, When I try to connect to oracle in php I get: Fatal error: Call to undefined function oci_connect() in C:\wamp\www\project2\index.php on line 3 Also when I start wamp, it cannot load the o

  • How can I import "extracted audio" clips from iMovie project into iTunes?

    I imported my home video into iMovie HD 6.0.1 and extracted the audio. How can I get the extracted audio clip (aiff format) into my iTunes playlist?

  • Oracle VM 3.1.1 Manager: Configuraing NIC Bonding?

    Each of the two OVM 3.1.1 servers in the OVMM 3.1.1 server pool has three Gigabit Ethernet NIC's: <ol> <li>One for the Management + VM + Heartbeat Networks (eth0) and <li>The other two (eth1 + eth2) should be bonded for redundancy and performance and

  • Memory Pool Error/s with VxWorks

    Hi, I am running Berkeley DB under vxWorks and am encountering memory pool errors. The version we are using is 4.5.20, and we are building a "Concurrent Data Store Application" (small footprint, MIPS64gnu). The environment flags are set as follows: (

  • Want to learn SAP BASIS

    Hi all, I am new to SAP BASIS.i want to learn sap basis.i have knowlag of hardware and networking.i have complated my p.g in M.H.R.M