The Swing Application Framework (JSR 296) is a Java specification for providing a simple application framework for Swing applications. It defines infrastructure common to most desktop applications, making Swing applications easier to create.
Questions tagged [saf]
50 questions
19
votes
4 answers
Why can't I find Java desktop application in Netbeans 7.1
I downloaded Netbeans 7.1 with all bundle from http://netbeans.org/downloads and installed it successfully on Windows 7.
But I can't find Java Desktop Application which should be under Java category when add new project as 7.0 does.
Where is it? Or…

Ovilia
- 7,066
- 12
- 47
- 70
10
votes
3 answers
How to request file deletion in Android Q for Not-Owned files
In Android Q, apps that aren't the default file manager or gallery can only modify and/or delete image files which they own, so, which an app has created.
Granting the read/write permissions doesn’t allow to modify or to delete any file that isn’t…

PerracoLabs
- 16,449
- 15
- 74
- 127
7
votes
0 answers
How to get real file path or file name from document uri on Android 11 And targetApi 30
Android 11
targetApi 30
do not request READ_EXTERNAL_STORAGE or WRITE_EXTERNAL_STORAGE
use SAF api to get a uri like this:
"content://com.android.providers.media.documents/document/document%3"
and parse the uri like this:
public static String…

xiaoluqiaoba
- 71
- 2
6
votes
2 answers
How to list all pdf files on android 10?
Since the changes related to the authorizations of access to the shared storage, it does not seem any more possible to search all the documents of the type pdf by this approach (with requestLegacyExternalStorage = "false"):
ContentResolver cr =…

Aristide13
- 244
- 2
- 16
6
votes
5 answers
Is there a better Java application framework than Swing?
I'm planning to work on some hobby Java projects. I've done some small-scale projects, so I'm familiar with the language itself and building a GUI with Swing. I'd like to make my work a little less ad-hoc and perhaps find some tools that might be…

eaolson
- 14,717
- 7
- 43
- 58
5
votes
1 answer
Storage Access Framework: keep file permissions after revoke tree permissions
In the app the user picks a directory via SAF using ACTION_OPEN_DOCUMENT_TREE intent and the user can create various files inside.
The problem is when the user change the working dir (always using SAF), the access on these files are lost. How keep…

kapodamy
- 65
- 8
5
votes
0 answers
Issue with StorageAccessFramework and DownloadManager
I have one problem. I am developing some Streaming/Video downloading app.
I am using DownloadManager for video downloads.
Request is to offer user's to pick destination for saving (SDCard or internal phone storage).
I have problems on Lollipop with…

Bozic Nebojsa
- 3,606
- 1
- 19
- 17
4
votes
2 answers
How to convert a Swing Application to an Applet?
I created a desktop application with Swing Application Framework, now how can I convert it to an applet? The main class extends SingleFrameApplication.
EDITED: This is the starting class, used NetBeans GUI builder:
public class PhotoApp extends…

lbrandao
- 4,144
- 4
- 35
- 43
4
votes
1 answer
Problem with Component Resource Injection using Swing Application Framework
I'm having a problem using the Swing Application Framework's Component Resource Injection, I read the tutorial provided by Sun and it kinda works.
The case is that I have a class Program that extends from the SingleFrameApplication provided by de…

Juan Diego
- 863
- 1
- 10
- 22
2
votes
2 answers
Storage Access Framework how delete file in subfolder
Which day I struggle with the problem and have already read the entire Internet. I'm using the Storage Access Framework but can't delete a file in a subdirectory.
There is a folder on the memory card (/storage/1B15-0D11/Data). I am asking the user…

Alex
- 43
- 3
2
votes
0 answers
How to use FLAG_GRANT_PREFIX_URI_PERMISSION with the Android Storage Access Framework?
I want to use the Storage Access Framework (SAF) in Android to get and save in a local database the uri of a large amount of files (>600).
So to get 1 file's uri, I call:
intent = new…

Simon
- 1,890
- 19
- 26
2
votes
0 answers
How to get absolute PATH from Uri picked from Downloads folder?
I want to get absolute path by Uri, when picking some files from Downloads folder. API level 21+.
Currently I have such errors:
Input Uri: content://com.android.providers.downloads.documents/document/1603
Path:…

yozhik
- 4,644
- 14
- 65
- 98
2
votes
0 answers
How to create directory in Downloads in android q using storage access framework
I am trying to create a directory of my app in device Download folder.I am trying to use storage access framework to create directory in devices running on android q or above.The code is working fine in most of the devices and I am able to create…

ANKIT
- 87
- 1
- 8
2
votes
0 answers
Android SAF Duplicate (1) (2) Files are Created on Huawei
I am using SAF to work with files on android, and I thought everything is working fine except that on a Huawei device running on EMUI 10 I found that files are being duplicated when I write on the output stream.
Screenshot
I construct manually the…

Butrit
- 21
- 2
2
votes
2 answers
Swing Application Framework does not save program's session (window postition, size etc.) in Linux
I'm developing a tiny app in Java using Swing and Swing Application Framework (JSR 296).
It should work under Windows and Linux.
In Windows XP session (window postition, size etc.) is saved, but in Linux it is not!
Program extends…

Exterminator13
- 2,152
- 1
- 23
- 28