Questions tagged [jsr296]

The Swing Application Framework (JSR 296) is a Java specification for providing a simple framework for Swing applications.

The Swing Application Framework (JSR 296) is a Java specification for providing a simple framework for Swing applications. The article Using the Swing Application Framework (JSR 296) offers additional details. See also Synchronizing Properties with Beans Binding.

37 questions
19
votes
3 answers

Get the application closing event

How to get to the application closing event? I want to get application to save all unsaved operations or show the user a message "Are you sure about closing without saving all data?" something like this. If this will be helpful - the application…
Bulit
  • 975
  • 6
  • 15
  • 26
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
6
votes
3 answers

What frameworks to use for java Desktop applications

I am not familiar with any of the leading frameworks of java but still i managed to develop a desktop application. These days people are talking about spring, strut, hibernate etc.. I want to know how many of kind frameworks exists there and which…
Deepak
  • 6,684
  • 18
  • 69
  • 121
6
votes
3 answers

Transitioning from the Swing Application Framework (JSR 296)

A few years ago JSR 296 introduced a framework to create desktop applications in Swing. NetBeans provided tight integration with the reference implementation. I drank the Kool-Aid(r) and created a number of programs from simple single panel…
clartaq
  • 5,320
  • 3
  • 39
  • 49
6
votes
2 answers

Netbeans JSR-296, Swing and JavaFX, what are we now meant to use?

I am starting to learn Java development (I used to develop in C++), I am using some older materials, however, I would also like to keep up to date with Java developments and recommendations. I did some background research regarding Swing and…
user427165
2
votes
3 answers

Understanding the Generic type parameters of TaskListener

I'm currently working on refactoring some old code and I found a snippet where I don't understand how to properly use Generics for the Swing Application Framework class TaskListener.Adapter. This is the relevant code snippet: public void…
Daniel Rikowski
  • 71,375
  • 57
  • 251
  • 329
2
votes
1 answer

Is there an easy way to develop with Swing Application Framework (JSR 296) AND Jython?

I'm learning Jython. I developed a simple Swing Application with Jython and it's ok. Now I would to use the Swing Application Framework (JSR 296). I did not find any example in Internet.
TheSource
  • 131
  • 1
  • 5
2
votes
1 answer

Can I change the root directory of the session storage?

Currently the session storage saves all session files in a system dependand folder suited for session state files. But in one of my applications I want the session files be saved in a special directory. Can I change the root directory of the…
Daniel Rikowski
  • 71,375
  • 57
  • 251
  • 329
2
votes
1 answer

How to create a Java Desktop Application in NetBeans IDE 7.2.1?

Possible Duplicate: Why can’t I find Java desktop application in Netbeans 7.1 I used to have the option to create a new "Java Desktop Application" in Netbeans 6.9.1. However, I can't find this option any longer in NetBeans IDE 7.2.1. Is it still…
Prashant
  • 41
  • 1
  • 2
2
votes
3 answers

Java Application vs. Java Desktop Application in Netbeans

Possible Duplicate: Netbeans GUI editor generating its own incomprehensible code In Netbeans(older versions), there are two types of applications to choose from when you're starting a new project. Java Application and Java Desktop…
Isuru
  • 30,617
  • 60
  • 187
  • 303
2
votes
1 answer

How do I port a Java Desktop Application to Netbeans 7.1

In Netbeans 6, I wrote a fairly complex application based on the java desktop application (org.jdesktop.application. SingleFrameApplication). The Swing Application Framework has been removed from 7.1 and I now cannot edit the forms. I have been…
2
votes
0 answers

hiding and showing java desktop app with action listener

I have a java desktop app I made writing with netbeans. What I did is to listen to windows close and minimize to the tray. I added to myApp.java a listener on startup method that listen to window close and then hide the myAppView. The thing I…
m_itai
  • 51
  • 3
2
votes
1 answer

launch() takes time to run

Hey guys i have a big doubt which i noticed today in my developed java swing app.. The problem where i found is launch() When i try my developed app locally it runs without any delay but when i try this from my web server using jnlp i find that…
Dinesh Ravichandran
  • 312
  • 1
  • 5
  • 16
1
vote
2 answers

Do JSR-286 portlets require a web.xml file in their WAR files?

Does the JSR 286 spec require the presence of a web.xml file in WARs containing portlets? At first, I thought so but then I created a portlet without a web.xml, deployed it in Liferay and it worked flawlessly. So is it an extension (or a bug) of…
brandizzi
  • 26,083
  • 8
  • 103
  • 158
1
vote
5 answers

How to stop user from generating more events?

I am developing a java swing desktop application. The dialog form has an ok and cancel button. When the user clicks ok button the application does some processing. How can I stop user from clicking ok again before the event on ok button has finished…
Will
  • 482
  • 1
  • 8
  • 21
1
2 3