NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

NetBeans 7.1 Swing Application Support discontinued
Goto page Previous  1, 2, 3, 4 ... 14, 15, 16  Next
 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
Geertjan Wielenga
Posted via mailing list.





PostPosted: Thu Dec 01, 2011 4:34 pm    Post subject: NetBeans 7.1 Swing Application Support discontinued Reply with quote

On 12/01/2011 03:13 PM, Ramon Casha wrote:
Quote:
Which brings us back to square one. Damn.

Not ideal, but: maybe a solution, again not perfect, is to go outside the IDE, remove this line at the start of "initComponents":

    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents

and then remove the closing of the editor-fold at the end of the initComponents. Yes, for all the forms. Not an ideal solution, but it would work.

Then use the Inspect & Transform tool to identify the ResourceMap statements and convert them to ResourceBundle.

Gj


Quote:
Ramon Casha


On 1 December 2011 14:47, Geertjan Wielenga <address-removed ([email]address-removed[/email])> wrote:
Quote:
On 12/01/2011 01:51 PM, Ramon Casha wrote:
Quote:
Looks like a good place for such a feature. Do you know if the custom hints include support for changing .form files as well as .java files, and if they can do things like read a string (eg, icon name) from a resource file and place it inside the source, or does it have to be a specially-made refactoring hint?



A problem is that the ResourceMap-related code is found in the read-only blue blocks in your forms and these cannot be refactored via the tool.

Gj
Quote:
Ramon Casha


On 1 December 2011 13:25, Geertjan Wielenga <address-removed ([email]address-removed[/email])> wrote:
Quote:
On 12/01/2011 12:08 PM, Ramon Casha wrote:
Quote:
Hmm that's 251 forms each with several resource references in this system alone. An automated tool shouldn't be too hard.


This should help:

http://wiki.netbeans.org/NewAndNoteworthyNB71#Inspect_And_Refactor

Gj

Quote:

PS No it's not in an open source repository.

Ramon Casha


On 1 December 2011 11:56, Geertjan Wielenga <address-removed ([email]address-removed[/email])> wrote:
Quote:
On 12/01/2011 11:53 AM, Ramon Casha wrote:
Quote:
Yes precisely. That's why I'm trying to find out if there's a way to either (a) keep SAF support in the NB7.1 editor, or (b) convert existing forms to use "standard Swing" instead of SAF.


You'll have to convert manually. Find the places where you're using the resource references and rewrite them. Once you've done that, you should be able to open your forms again.

If your application is available in some open source repository, I'd be very happy to help you.

Gj

Quote:
Ramon Casha


On 1 December 2011 11:44, Geertjan Wielenga <address-removed ([email]address-removed[/email])> wrote:
Quote:
On 12/01/2011 11:38 AM, Ramon Casha wrote:
Quote:
I'm only concerned with the GUI editor. At present it won't even open the forms any more. I just need some backward compatibility, or a way to migrate my forms away from the SAF without losing the resources or actions.


The resources and actions are an inherent part of SAF. Without SAF, you don't have these features anymore.

Gj

Quote:

Anything else, like the application class, persisting positions etc. I can handle myself.
Ramon Casha


On 1 December 2011 10:58, Geertjan Wielenga <address-removed ([email]address-removed[/email])> wrote:
Quote:
On 12/01/2011 10:39 AM, Ramon Casha wrote:
Quote:
On 1 December 2011 09:56, Fabrizio Giudici <address-removed ([email]address-removed[/email])> wrote:
Quote:
Again, I'd like to see an enumeration of this extra stuff.

Well for a "simple" application to consist of 4 projects is already quite a lot



In a NetBeans Platform application, you could have one single module, if that's what you wanted. You can have as many or as few modules as you like.


Quote:
, not  to mention most of the XML files,



No XML files are needed in NetBeans Platform applications.


Quote:
the glue code to bind everything together



what glue code do you mean exactly?

Quote:
, etc - when all I want is the resource strings and actions in my forms.

Isn't there a simple way to tell NB to "remove" the SAF bits from a form and convert it to "regular" Swing (but not NB platform)? From the .form file there doesn't seem to be a huge difference between them anyway.





I think you'd need to remove the Application class that SAF provides and then write your own main method for starting the application and for persisting the main window's position and size and for cleaning up the application. After that, you'd need to find the Tasks that SAF supports and rewrite them, using SwingWorker directly. Also, you'd need to do a search and replace for all the Action annotations -- not sure though what they should be replaced with.

For the resource strings, you could use the NbBundle class from the NetBeans Platform, just include the Utilities JAR (nothing else) from the NetBeans Platform and then you have the same functionality as SAF provides.

Of course, the simpler route to doing all the rewriting described above is to use the NetBeans Platform, where you get everything described above for free, i.e., for no work at all.

Gj

Quote:


Ramon Casha































Back to top
lvskiprof



Joined: 19 Jul 2011
Posts: 49
Location: Las Vegas, NV

PostPosted: Thu Dec 01, 2011 4:35 pm    Post subject: Re: NetBeans 7.1 Swing Application Support discontinued Reply with quote

Thanks for the clarification about Swing.

I saw the new GUI builder for GirdBagLayout, but have not yet had a chance to try it.

Mike

Geertjan Wielenga wrote:
On 11/30/2011 06:09 PM, lvskiprof wrote:
Quote:
Considering that anyone taking a Java class will be working in Swing (most likely), as I was last quarter at ITT, this means that Netbeans will not be a recommended platform for doing development. That translates directly into lost users of the platform.

Just to re-re-reiterate: NetBeans has NOT dropped support for Swing. It
is by far the best IDE to use for Swing development -- it has GUI
builders for all layout managers and a new one was recently introduced
for no other reason that to take away the pain of GridBagLayout.

And, of course, underneath NetBeans is the world's only modular Swing
application framework, which can be reused as hundreds, probably
thousands, have been doing for years and will continue to do:

http://platform.netbeans.org/screenshots.html

Gj

Back to top
rcasha



Joined: 30 Nov 2011
Posts: 35

PostPosted: Fri Dec 02, 2011 12:08 pm    Post subject: NetBeans 7.1 Swing Application Support discontinued Reply with quote

Actually I think that project proves my point. That's a LOT of extra baggage to support the NB Platform. In any case, how easy or difficult would it be to convert hundreds of existing forms to use this infrastructure?
Ramon Casha


On 1 December 2011 00:07, Fabrizio Giudici <address-removed ([email]address-removed[/email])> wrote:
Quote:
On Wed, 30 Nov 2011 08:01:40 +0100, rcasha <address-removed ([email]address-removed[/email])> wrote:

Quote:

Geertjan Wielenga wrote:
Quote:
On 10/09/2011 06:59 PM, giorgio42 wrote:
A problem with that framework is that it was intended to be part of the
JDK, but it has always been nothing more than a JSR. It is always risky
to use a JSR for production code while it hasn't passed through the
review process to make it into the JDK. Now that it hasn't made it into
the JDK, it makes sense to drop support for it in the IDE.

Never mind, though, because there is a much more robust Swing
application framework out there, with many more features as well as much
more documentation:

http://netbeans.org/kb/trails/platform.html

Gj



The Netbeans platform is an utterly inadequate replacement for SAF. One could use just a subset of the SAF such as the @Actions, whereas to use the RCP one has to use all of it and learn all of it, not to mention convert existing applications over to it - a very major undertaking.

I seem to have said that the Platform can be used incrementally. I've also pointed out a blog post with a demo application (for the lazy, the URL is http://netbeans.dzone.com/nb-for-simple-apps). Before spreading FUD or criticizing, at least one could check out things as they are and talk on facts.

--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
address-removed ([email]address-removed[/email])
http://tidalwave.it - http://fabriziogiudici.it
Back to top
rcasha



Joined: 30 Nov 2011
Posts: 35

PostPosted: Fri Dec 02, 2011 12:09 pm    Post subject: NetBeans 7.1 Swing Application Support discontinued Reply with quote

Mostly the forms designer seems to use two things: Resources (using ResourceMap instead of ResourceBundle), and actions via an @Action annotation coupled with resources in the same ResourceMap. This is reflected in changes in the .form file as well as the corresponding generated Java code.

Ramon Casha


On 1 December 2011 09:56, Fabrizio Giudici <address-removed ([email]address-removed[/email])> wrote:
Quote:
On Thu, 01 Dec 2011 09:29:02 +0100, Ramon Casha <address-removed ([email]address-removed[/email])> wrote:

Quote:
Actually I think that project proves my point. That's a LOT of extra
baggage to support the NB Platform.


Again, I'd like to see an enumeration of this extra stuff.

Quote:
In any case, how easy or difficult
would it be to convert hundreds of existing forms to use this
infrastructure?


Of course it depends on the context. What did you use, specific of SAF, for the forms?

--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
address-removed ([email]address-removed[/email])
http://tidalwave.it - http://fabriziogiudici.it


Back to top
spmcneill



Joined: 19 Jan 2012
Posts: 1

PostPosted: Thu Jan 19, 2012 10:49 pm    Post subject: Re: NetBeans 7.1 Swing Application Support discontinued Reply with quote

Hi Geertjan.

I have several Swing Application Forms that I can't open up in Netbeans 7.1.

I'm only using the Application Framework to assign actions to buttons and things. Not too sophisticated. Is there some way I can purge the Swing Application Framework from a netbeans form without starting all over?

I am familiar with the Netbeans Platform, so I'm not worried about that part of it, I just don't want to have to rebuild all of my forms from scratch!

= Sean =

UPDATE:

I somehow missed the last page of this thread where you all discussed some techniques to do what I wanted to do.

I went back to 7.0 and was able to undo all of the SAF stuff there. Once I did that (removing the Action and replacing it with the traditional Event-->addActionListener) I was able to save the form, quit 7.0 and open the form under Netbeans 7.1.

I have a few forms to do this way, I may just do them by hand or use the new wowie zowie Inspect and Transform tool.

Quote:


I'd be very happy to help you convert your app to the NetBeans Platform,
you'd be surprised how little work is involved in that process and how
much your app will gain from it.

Gj=
Back to top
linsley



Joined: 21 Jan 2012
Posts: 1

PostPosted: Sat Jan 21, 2012 2:58 am    Post subject: Re: NetBeans 7.1 Swing Application Support discontinued Reply with quote

Geertjan Wielenga wrote:
At the end of that, you have integrated your forms into a window system,
which is something that SAF doesn't have. For most serious applications
you need some kind of window system, so that the forms can be undocked
from the frame and moved around onto different monitors, so that they
can be resized and moved within the frame.


And if I don't want that window system, or at least don't want the default components of it?

I am new to the NetBeans platform, and fairly new to Java, but managed to create some reasonably sophisticated desktop applications using SAF. However, since support for SAF has been discontinued, I am trying to learn the framework that is supported.

I am trying to create a simple, single-window application. (When I am done, it may not be so simple -- lots of dynamically-created content -- but it will still be, basically, a single-window.) However, I am only able to get an application that is a sub-window within the framework's top window, which has menus, a toolbar and a status bar that are irrelevant and inapplicable to my application.

I have seen that it is possible to get rid of these, or at least customize them so that they are appropriate to one's own application, but I have Googled until I am blue in the face without finding anything that describes how to do that. There is probably a tutorial somewhere, but I have not found it. Pointers would be very welcome.

Thanks,
Chuck
Back to top
prasadrvln



Joined: 31 Jan 2012
Posts: 5

PostPosted: Tue Jan 31, 2012 7:21 am    Post subject: Reply with quote

Please can you help me. I am only a civil engineer, with an interest in programming. I have developed a few programs in my career to aid design and analysis of building structures, mostly maritime structures. I have actually started developing a program to work out wave loads on marine structures. I developed all the GUI stuff using the JSR-296 Swing Application Framework, and now in the process of writing the code for working out the wave parameters and then the actual loads. That was until I upgraded my home computer NetBeans to version 7.1 and it now refuses to open any of my forms. I need to convert all my stuff to NetBeans platform style. I have gone through the material available on the net, and I must admit it looks too big to understand. And my program is not that complicated. Two or may be three modules are all that are required (apart from probably two wrapper modules – one each for java-excel jar (jxl.jar) and for java3d). It’s only about 50 java files – only about 30 of them are gui forms. I am attaching all my code here. Please could you go through and advise how I should begin to port it into NetBeans Platform application. Thanks a lot in advance for your kind help.


src.zip
 Description:

Download
 Filename:  src.zip
 Filesize:  268.33 KB
 Downloaded:  73 Time(s)

Back to top
prasadrvln



Joined: 31 Jan 2012
Posts: 5

PostPosted: Tue Feb 07, 2012 3:00 am    Post subject: Reply with quote

Ok. There’s been no response over the last week to my post. I can understand that. Probably because in my last post I did not explain what my program did. Here’s a simple explanation.

The program, when run, displays the main window. The main window has several menus and menu items. One menu item opens the structure file (this structure file is created in STAAD, a leading civil engineering structural analysis program). Once the STAAD file is opened, it displays the structure in a panel on the main window. Then, by clicking the other menu items, the users can enter wave parameters, such as wave height, period, direction, currents in the ocean etc. Clicking the menu items opens dialog boxes. There are several dialog boxes. These dialog boxes collect the required input from the users. All dialog boxes have getter methods. Once the data is collected by the dialog boxes, the main window retrieves the collected data using these said getter methods. After all the required data is collected, and upon pressing the run menu item (on the main window), the collected information is forwarded to an analyser class which works out what needs to be done.

As you can see, this is a very simple program. And in programming world, probably a light to intermediate application. I believe that using NetBeans Platform application to solve this programming is like using a machine gun to kill an ant. A simple light-weight framework would do, IMO (I could be wrong here). Somehow I still believe SAF framework was more than adequate for a lot of people like me. NetBeans Platform Application can of course give me many more features, but I don’t think I need any of them.

Further to my last post, I have created a new NetBeans Platform Application and created a few modules and ported a lot of the code to NB Platform Application (I have not yet removed SAF dependency from my forms, though – planning to do it this weekend). Where I am now stuck is

a) When a create a new action, NBP Application creates a new java file with actionPerformed method. I have made the method to display a dialog box to collect input information from user. This java class can retrieve the input entered via the getter methods in the dialog box. The problem is all the information entered through several dialog boxes will need to be sent to some central place, which can then be accessed by the analyser class. Where is this central place? Where is the java code for the default window displayed by NBP Application?
b) When I create a new action, I don’t want NB to create a new java file with an actionPerformed method. Because I have several action methods, each of which does different things. What an action method does sometimes depends upon the input collected by some other action method. Instead of creating a new java file with actionPerformed method, I would like NBP Application to create something like an actionPerformed method in some central location. How can I do this?
c) If I am able to convert all “@Action” s to actionPerformed methods, is it not similar to my doing all application plumbing? As per my understanding, NBP application recommends that I should not do this?

Please could someone respond?. Thanks a lot in advance.
Back to top
prasadrvln



Joined: 31 Jan 2012
Posts: 5

PostPosted: Tue Feb 14, 2012 5:21 am    Post subject: Reply with quote

Please could someone respond. Badly need help. Thanks.
Back to top
grahamh



Joined: 18 Feb 2012
Posts: 4

PostPosted: Sat Feb 18, 2012 6:38 pm    Post subject: Re: NetBeans 7.1 Swing Application Support discontinued Reply with quote

rcasha wrote:
Mostly the forms designer seems to use two things: Resources (using ResourceMap instead of ResourceBundle), and actions via an @Action annotation coupled with resources in the same ResourceMap. This is reflected in changes in the .form file as well as the corresponding generated Java code.


Hi Ramon

Thanks for posting your XSL solution in the Bug report. I don't know much about XSL or running ant so I loaded mb-nosaf as a project in NB, hacked the build.xml as instructed then hit build. Loads of messages from maven (whatever that is) and apparent success in compiling but no output in the destination directory.

Can you talk us through how to do it, please? Especially "run ant on the build.xml file".

Many thanks
Graham
Back to top
prasadrvln



Joined: 31 Jan 2012
Posts: 5

PostPosted: Thu Mar 08, 2012 4:47 am    Post subject: Reply with quote

Hi guys. Please I need help.
After posting my last message, I have done the following works.
- Converted all forms to the new 7.1 std. forms. With no SAF. One problem (not major) is that in one of the forms, I have two button groups, each having at least five radio buttons. In SAF, I was able to define one @Action and then assign that to all the radio buttons. In the new one, when I create an actionListener event, it creates a private method and the actionListener calls the private method. So I have five private methods – one for each of the radio buttons. Then I need to call a separate method from these five to get the work done. This I don’t think is a correct programming technique.
- Went through most of the tutorials sections – especially the selection management stuff. What appears to me is that I should get rid of all of my dialog boxes (that collect essential input from user) and change them into top components. I don’t want to do this if I can avoid it. Second problem, as I explained in my earlier mail, is that the input dialog boxes are interdependent. The first box collects length units. If the user enters say “meters”, then that input needs to go into the other input dialog boxes. This is just an example. I haven’t been able to figure out how to do this.
- I have a five input dialog boxes – each of which is collecting some type of information that is different to the info collected by the other boxes. The issue is if I use lookup framework, then I need to have different types of objects looked up by a viewer java file (instead of multiple objects of the same class). It makes it bulky and cumbersome.
- One of the input dialog boxes is a dynamic one. It’s there when I need it and as many times as I need it. Specifically, I need input on wave conditions. If the user enters the conditions, then I need to have (a) a capability to display that window again for input of another wave condition, (b) a menu item added to the main menu and (c) assign an action to that newly created main menu. Don’t know how to implement that functionality into NBP Application.

Please help me. In case you need any of the structure files or others, I will be happy to provide.

Geertjan. Specific questions to you.

1. I tried to follow your porting basic html file. It’s got so many errors in it. If you strictly follow what is instructed, you won’t get anywhere. Please consider re-writing it.
2. I have spent at least 70 hours on trying to port to NetBeans and going through a lot of documentation regarding this on the net. I am sure there are a lot of people like me. Isn’t this a lot of waste of collective time?
3. OK. JSR-296 was dead. Java wouldn’t care to develop it and include in their SDK. I understand that much. But if the decision of NetBeans is to drop support for that, I think it was better to deprecate it first for about one or two NB releases, and then drop support altogether. That’s how Java does it (AFAIK). The earlier version of NB only said that the JSR was no longer being developed, but never said that NB was going to drop support for SAF.
4. SAF is dead. But BSAF is being developed. And it’s not a huge software. I really fail to understand why NB cannot support it or do a similar one. I know it’s free software and everything costs money. But what I am asking is, the support for SAF was already there. We are not asking you do develop something new for us. But only not remove what’s already there.
5. With due respect to you, I don’t think you have ever developed a small scale application using SAF. It works very well for smaller applications, which I believe most people are trying to develop. If you did, you would know why people are crying out for this support.
6. I have read many posts on the forums. I think one poster (don’t remember his name) said something similar to (if I understand correctly) “people who don’t contribute are the ones who cry the most”. I don’t want to be rude here, but is it necessary to contribute first before asking for something? Is faithfully sticking to NetBeans for over 8 years (that’s me) not a way of contributing? If many people move away, then what use is NetBeans?
7. If I use NBP Application with basic features (i.e., without the default NB window), and then stick my code into a method in the moduleinstall class, then what benefit am I going to get? Why can’t I just make the main class of my app to show itself up?
8. I think NBP Application is like the old time Linux (pre 1995). Only the developer could use it. Lesser mortals like me just couldn’t. Things improved after 1996/7. NBP Applications are like that. Only people like Geertjan can use it effectively. Not surely me. As I said in my previous mail, I am only a civil engineer with an interest in programming. I develop programs to do my office work, to do engineering calculations. All my colleagues use my programs as well. I give my programs to the others too. I keep adding features to my programs but I don’t sell them. I don’t code everday. All I need (for most programs I develop) is a mechanism where users can put in input, then let the program process it and give an output. I don’t need persistence, concurrency, stupidity or all that advanced magical stuff. I am sure there are many people like me. SAF worked for us.
Back to top
damaru



Joined: 12 Mar 2012
Posts: 3

PostPosted: Mon Mar 12, 2012 3:37 pm    Post subject: Re: NetBeans 7.1 Swing Application Support discontinued Reply with quote

I would just like to add my voice to the many who have been screwed by SAF support being discontinued.

Yes, I know that SAF itself isn't being developed, but the jars that were there worked fine for me and saved me a ton of time. NB 7.0 provided a wizard that made it quick and easy to get an app running. As long as the framework worked well enough, I had no concern that it wasn't getting enhanced.

I built a medium sized app on it, and just the other day tried to modify it in NB 7.1 when I was greeted by that awful 'can't open the form' message. Now I'm faced with a big rewrite - for no reason other than the NB team decided to yank out support.

No, I don't want to migrate to the NB platform. It's overkill for my app. I don't need users to undock windows or anything.

The NB team should have forseen that they would force a ton of developers to do a ton of migration work by removing that support.

Michael Davis
Ottawa
Back to top
Thomas Wolf
Posted via mailing list.





PostPosted: Tue Mar 13, 2012 1:52 pm    Post subject: NetBeans 7.1 Swing Application Support discontinued Reply with quote

I am curious as to why you're facing a rewrite. From what you describe, it's simply that the NB GUI editor is no longer supporting your SAF-based forms. If it's like other GUi-based "forms", you could simply remove the ".form" file and get rid of the "GEN" type comments from the generated Java file to get rid of that error message. Of course you'd have to hand-code any GUI changes from that point on, but that is pretty easy (provided you know Swing) once you have a screen all laid out and are just making minor tweaks (we did this to most of our screens: develop them using NB's GUI builder and, as they matured, replace the inefficient generated code with optimized hand-coding and removal of the ".form" files).

Best regards,
Tom


On Mar 12, 2012, at 11:38 AM, damaru wrote:

Quote:
I would just like to add my voice to the many who have been screwed by SAF support being discontinued.

Yes, I know that SAF itself isn't being developed, but the jars that were there worked fine for me and saved me a ton of time. NB 7.0 provided a wizard that made it quick and easy to get an app running. As long as the framework worked well enough, I had no concern that it wasn't getting enhanced.

I built a medium sized app on it, and just the other day tried to modify it in NB 7.1 when I was greeted by that awful 'can't open the form' message. Now I'm faced with a big rewrite - for no reason other than the NB team decided to yank out support.
Back to top
Javier Ortiz
Posted via mailing list.





PostPosted: Tue Mar 13, 2012 2:06 pm    Post subject: NetBeans 7.1 Swing Application Support discontinued Reply with quote

Also saying that using the platform might be overkill is questionable. You can have it as slim as you need it to be. Also you can easily cut and past from the GUI designer into a TopComponent (on earlier versions of the IDE) and then upgrade to the later IDE. That's what I did.

Senior Software Quality Engineer
ArthroCare Corporation
7000 William Cannon Drive
Austin, TX 78735
Phone: 512-358-5996
email: address-removed

-----Original Message-----
From: Thomas Wolf [mailto:address-removed]
Sent: Tuesday, March 13, 2012 8:34 AM
To: address-removed
Subject: [nbusers] Re: NetBeans 7.1 Swing Application Support discontinued

I am curious as to why you're facing a rewrite. From what you describe, it's simply that the NB GUI editor is no longer supporting your SAF-based forms. If it's like other GUi-based "forms", you could simply remove the ".form" file and get rid of the "GEN" type comments from the generated Java file to get rid of that error message. Of course you'd have to hand-code any GUI changes from that point on, but that is pretty easy (provided you know Swing) once you have a screen all laid out and are just making minor tweaks (we did this to most of our screens: develop them using NB's GUI builder and, as they matured, replace the inefficient generated code with optimized hand-coding and removal of the ".form" files).

Best regards,
Tom


On Mar 12, 2012, at 11:38 AM, damaru wrote:

Quote:
I would just like to add my voice to the many who have been screwed by SAF support being discontinued.

Yes, I know that SAF itself isn't being developed, but the jars that were there worked fine for me and saved me a ton of time. NB 7.0 provided a wizard that made it quick and easy to get an app running. As long as the framework worked well enough, I had no concern that it wasn't getting enhanced.

I built a medium sized app on it, and just the other day tried to modify it in NB 7.1 when I was greeted by that awful 'can't open the form' message. Now I'm faced with a big rewrite - for no reason other than the NB team decided to yank out support.


**********

The information contained in this e-mail message, together with any
attachments thereto, is intended only for the personal and confidential
use of the addressee named above. The message and the attachments
are or may be privileged or protected communication. If you are not the
intended recipient of this message, or authorized to receive it for the
intended recipient, you have received this message in error, and you
are not to review, use, disseminate, distribute or copy this message,
any attachments thereto, or their contents. If you have received this
message in error, please immediately notify us by return e-mail
message, and delete the original message.

Pursuant to Circular 230 issued by the United States Treasury
Department and relating to practice before the Internal Revenue
Services, any comment or opinion in this communication relating to a
federal tax issue is not intended to be used, and cannot be used, by a
taxpayer for the purpose of avoiding tax-related penalties that may be
imposed on the taxpayer.
Back to top
rcasha



Joined: 30 Nov 2011
Posts: 35

PostPosted: Tue Mar 13, 2012 2:45 pm    Post subject: NetBeans 7.1 Swing Application Support discontinued Reply with quote

Javier,

Would copying and pasting in this manner copy the properties, actions, bindings etc too? When copying to a plain Swing form it doesn't.


Ramon Casha


On 13 March 2012 14:48, Javier Ortiz <address-removed ([email]address-removed[/email])> wrote:
Quote:
Also saying that using the platform might be overkill is questionable. You can have it as slim as you need it to be. Also you can easily cut and past from the GUI designer into a TopComponent (on earlier versions of the IDE) and then upgrade to the later IDE. That's what I did.

Senior Software Quality Engineer
ArthroCare Corporation
7000 William Cannon Drive
Austin, TX 78735
Phone: [url=tel:512-358-5996]512-358-5996[/url]
email: address-removed ([email]address-removed[/email])

-----Original Message-----
From: Thomas Wolf [mailto:address-removed ([email]address-removed[/email])]
Sent: Tuesday, March 13, 2012 8:34 AM
To: address-removed ([email]address-removed[/email])
Subject: [nbusers] Re: NetBeans 7.1 Swing Application Support discontinued

I am curious as to why you're facing a rewrite.  From what you describe, it's simply that the NB GUI editor is no longer supporting your SAF-based forms.  If it's like other GUi-based "forms", you could simply remove the ".form" file and get rid of the "GEN" type comments from the generated Java file to get rid of that error message.  Of course you'd have to hand-code any GUI changes from that point on, but that is pretty easy (provided you know Swing) once you have a screen all laid out and are just making minor tweaks (we did this to most of our screens: develop them using NB's GUI builder and, as they matured, replace the inefficient generated code with optimized hand-coding and removal of the ".form" files).

Best regards,
Tom


On Mar 12, 2012, at 11:38 AM, damaru wrote:

Quote:
I would just like to add my voice to the many who have been screwed by SAF support being discontinued.

Yes, I know that SAF itself isn't being developed, but the jars that were there worked fine for me and saved me a ton of time. NB 7.0 provided a wizard that made it quick and easy to get an app running. As long as the framework worked well enough, I had no concern that it wasn't getting enhanced.

I built a medium sized app on it, and just the other day tried to modify it in NB 7.1 when I was greeted by that awful 'can't open the form' message. Now I'm faced with a big rewrite - for no reason other than the NB team decided to yank out support.




**********

The information contained in this e-mail message, together with any
attachments thereto, is intended only for the personal and confidential
use of the addressee named above. The message and the attachments
 are or may be privileged or protected communication. If you are not the
intended recipient of this message, or authorized to receive it for the
intended recipient, you have received this message in error, and you
are not to review, use, disseminate, distribute or copy this message,
any attachments thereto, or their contents. If you have received this
message in error, please immediately notify us by return e-mail
message, and delete the original message.

Pursuant to Circular 230 issued by the United States Treasury
Department and relating to practice before the Internal Revenue
Services, any comment or opinion in this communication relating to a
federal tax issue is not intended to be used, and cannot be used, by a
taxpayer for the purpose of avoiding tax-related penalties that may be
imposed on the taxpayer.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Goto page Previous  1, 2, 3, 4 ... 14, 15, 16  Next
Page 3 of 16

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo