Swing2 should be more flexible than Swing

  6 posts   Feedicon  
Replies: 5 - Last Post: September 25, 2009 13:17
by: mohan jagan
« Older Topic » Newer Topic
showing 1 - 6 of 6
 
Posted: March 05, 2009 21:45 by MiguelM
My first complaint with Swing is that it isn't as flexible as I need it to be. The developers have often decided how a component will be used, and didn't give us room to use the component in a different way. A good example of this is the TableRowSorter. They did a good job of giving us a powerful sorting API that lets us sort multiple columns in a single sort, but they didn't think through the user interface. I want to write my tables so that the user clicks on a column header to sort a column, but does a right-click (or uses some other modifier) to specify that they want to add the clicked-column to the current sort. Unfortunately, there's no way to do this in the current design. They didn't even give us a way to intercept the click-event. I could write it myself, but I am fighting against the existing code, instead of working with it.

I run into this kind of limitation all the time with Swing.

Another example is the JSlider. I like to insert a horizontal slider next to the horizontal scroll bar in a JScrollPane. This is easy to do, but in Windows the slider thumb is too big. It should be a simple matter to replace the thumb with a smaller icon, but there's no API to do this. True, this kind of UI tinkering should be discouraged in favor of giving the user a familiar UI, but sometimes you have to do it, and the APIs should be there.

So whatever we come up with for Swing2, it should be more flexible than what we have.
 
Posted: May 22, 2009 03:38 by Erik_K
Swing isn't perfect but I don't think flexibility is one of its downfalls. The fact is that you can do everything you say you want to do (and far more). Swing makes common tasks easy and makes one-off tasks possible. That is evidence of an extremely well thought out architecture.

Swing has evolved some over the years and could use some API cleanup. Also, JavaFX should be examined closely as lessons learned from Swing have been used in the creation of JavaFX (animation framework, scene graph, etc.). While skinning is possible with Swing, I think Sun underestimated the importance of making that an easy task to accomplish well. If that mechanism were polished, I think Swing would find much more acceptance and use than it does today.
 
Posted: August 12, 2009 13:45 by outlaw
@Erik_K

Hi Erik,

sorry for taking such a strange approach but it looks like kenai has no other user communication options. I would like to ask yo, if you are interested in participating in java3d based game development effort (flight simulator). It's an open source project hosted @ kenai: http://kenai.com/projects/simulab or http://www.simtechnologies.de/

Regards
Paul
 
Posted: September 14, 2009 15:36 by choces
I wonder if this project is dead.
I've seen no activity for some months.
I'm not interested in the usual talk about "Swing is more or less flexible", but in true enhancements of Swing code.
Although SwingX and OpenSwing have made some tries to cover design flaws, or just missing features, for core Swing, I would prefer a complete redesign of core Swing classes, which eventualy could be included in the JDK.
This approach will solve the common problem of having oneself to design core gui components extensions, 'cause neither the core ones, nor the "eXtended" ones, seems to face common and current design requirements.
I'm not talking about "very special features", which obviously have to be created and customized on-demand, but very common tasks.
An example: there is no JPanel component -at least I have knowledge of its existence- able to properly deal with images. Both Panel extensions found in SwingX are a work-in-progress approach. I yet have to get OpenSwing to work properly inside Netbeans, and I don't care about non Open Sourced libraries.

I'd like to hnow if we're facing to another "I'd like to be, but..."

Regards,
Carlos Hoces
 
Posted: September 16, 2009 21:17 by Werner Keil
Hi,

I noticed this project when it was pointed out as a lone effort to save Swing from certain Doom under Oracle and the shadow of JavaFX.

I must say, that the recent failure of SAF (Swing Application Framework) to qualify as part of Java7 does not add much trust and hope for Swing either.

While having offered support to the SAF team, if there's interest in Open Source Swing beans I have published elsewhere a long time ago as well as some concepts of Swing and Java MODULARIZATION as early as 1999 I'd be happy to offer them to this project.

I also was the only one to offer working Swing i18n from '99 on. Sun was my next booth neighbour at conventions back then. And as a strange matter of fact, what was presented at one event in 2000 was "Don't Swing" by Erich Gamma, proposing what soon after became SWT and a cornerstone of Eclipse. I would not count Swing out (and also know weaknesses of SWT much too well Wink ) but I also know that some things may have to happen faster than Sun finally adding Swing i18n the same way I did around JDK 1.4 (nearly 3 years later)
 
Posted: September 25, 2009 13:17 by mohan jagan
Hi,

This is mohan from india. I am not having that much knowledge in swings , but i like to do the projects in swings. I have already developed a project for 'Visakhapatnam Municiple Corporation ' ie Online "Tax payments". Now i am working as senior software engineer , and i am developing a small product for my company. This application will do BACKUP and PATCH MOVEMENT works for Developers.

It is being developed using swings components, and for connecting server i am using some sftp third party jars.

Problems Faced
-----------------------

-> When we want to update the progress bar (while doing some work in background) i am unable to update the progress bar
, and i am unable to update any label with a text of new message
(It was solved by using SwingWorker class)

-> For dialog boxes we are un able to set our setting for buttons or label or panels directly. See if i select browse button on
the panel it will open a dialog box, but that will be of either windows one, or linux one. or any other (what ever we set).


can any one tell me , is there any option for adding user settings to dialog boxes.



showing 1 - 6 of 6
Replies: 5 - Last Post: September 25, 2009 13:17
by: mohan jagan
« Older Topic » Newer Topic
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120127.ac94057)
 
 
Close
loading
Please Confirm
Close