In FX2D there are a few glitches/“features” and i wanna know if someone knows a fix;
focused Bug: this is really glitchy. i dont know how that works;
if(focused) text("focused",10,10);
if(!focused) text("not focused",10,10);
size Bug: its really weird
size(512,512); //completly normal
surface.setSize(513,512); //is more than just one pixel??
OBS Bug: Obs doest show any window even tho its running!
             
            
              
            
           
          
            
              
                svan  
              
                  
                    March 11, 2023,  9:31pm
                   
                  2 
               
             
            
              I don’t believe JavaFX is fully implemented in Processing 4 even though the IDE writers appear to be using FX controls in their dialog windows.  I’ve only been able to add text and graphics to windows, no controls.  Window size in code that I have is set by Scene().
             
            
              2 Likes 
            
            
           
          
            
              
                glv  
              
                  
                    March 14, 2023, 10:10am
                   
                  3 
               
             
            
              Hello @Aryszin ,
Please include version of Processing that you are using in topics.
FX2D and Processing 4 GitHub issue:
  
  
    
  
  
    
    
      
        opened 09:43PM - 31 Jul 22 UTC 
      
      
     
    
        
          Help Wanted
         
        
          Preprocessor
         
    
   
 
  
    It's not currently possible to use other JavaFX classes from the PDE, even when … it's in use as a renderer: https://github.com/processing/processing4-javafx/issues/15
We'll need to see how to include .jar files from the modules path for preprocessing and compilation. Once that's set, getting them working with runtime shouldn't be too much trouble. 
   
   
  
    
    
  
  
 
If you are using the FX2D renderer 
import processing.javafx.*;
void setup()
  {
  size (500, 500, FX2D);
  println("Renderer: " + g.getClass().getName());
  }
  
void draw()
  {
  }
Related:
When sifting through information and history be mindful of the chronology and seek out the most current information.
:)
             
            
              1 Like