finally i found it i I hope it helps you too
first use this librarys
import com.sun.javafx.application.PlatformImpl;
import java.io.File;
import javafx.stage.FileChooser;
and write this...
Type: Posts; User: cnmeysam
finally i found it i I hope it helps you too
first use this librarys
import com.sun.javafx.application.PlatformImpl;
import java.io.File;
import javafx.stage.FileChooser;
and write this...
if you can add file type in codes and user just can see image files and select just image files in last code. my problem is solves and if you cant! don't different you can Each of the first and...
Did you read the API doc for the getScene method? What did it say? https://docs.oracle.com/javase/8/javafx/api/javafx/scene/Node.html#getScene--
i write all my code here in first post you can copy...
i first post i write all code in my project don't have any code to paste in here
I even put a sample of the project source for download
Download File UploadBoy.com Making Your File Sharing Easy!...
i cant find getScene return null in API doc
can i use javafx FileChooser and stage in java swing?
i don't now how i must create open file dialog for select a picture like this form...
after click on my button i see this errors
Window stage = openwindow.getScene().getWindow(); return null for mee
run:
openwindow = VBox@3ab692e9
openwindow.getScene() = null
Exception in...
import java.io.File;
import java.net.URL;
import java.util.ResourceBundle;
import static javafx.scene.input.DataFormat.URL;
import javafx.scene.layout.VBox;
import javafx.stage.FileChooser;...
i think now you can help me
Tips about getting error java.lang.NullPointerException at NewJFrame.jButton4ActionPerformed(NewJFrame.java:266) when executing code
i think problem is from VBox or openwindow.getScene(). i use a...