Just some comment

I think it's about time for Java to start deprecating the AWT and Swing, and create a new package that incoporate these two as one. There are some issue that they need to address when combining these two class....
1. make them all light weight like swing
2. redesign how the components are inherited
for example. JFrame, JLabel, JDialog, JButton all have the base class of Component. In the component class, it has an add() method. This makes no sense, since you don't do add(Compeont) for a Jlabel or JButton.
what they should have down is something like
Component
|----- Control (for widget like JButton, JLabel, JTable
|----- Container (for container gui such as JFrame, JPanel, Jdialog, JScrollPane)
method related to the container will be in the Container classs (for method like add(Component), Remove(Component))
I can't recall how many time when i scroll through the API and noticed inherited methods for a compontent that makes no sense
kind of like saying
Human human = new Human();
human.layEgg(); // suppose who where in th eheirachry of Human is a species that lay egg.

...and use the SWINg API JTextField (but rename it to TextField in a different
package...say java.gui or something like that).Why? There's already a Swing package with JTextField. For backwards compatibility, they wont' get rid of the existing AWT and Swing packages. Now, for the sake of naming, you are suggesting they duplicate that stuff in another package name? Waste of disk space, if you ask me.
however, i do want swing to be rewritten (ok..more like re-organized)There are certainly areas for improvement, sure. But they are low priority.
As i stated before, every concerte component in swing extends Container.
This does not make much sense. A Label, TextArea, Button is a control. a little intermixing of posts here, but related, so...
Who says you can't do an add() on a JLabel or
JButton? Did you try it? I didn't, but I bet it
would work.I didn't say you can't..what i'm saying is it make no
sense. A Label or a Button is NOT a Container..so
add() is an impropriate method for those "Control"
classesWhat if, by some reason, I need to add() something to a JButton? Why are you denying me that ability? There's a big difference between being able to do something you wouldn't normally do and not being able to do something, even if you want to.
Just in case for those who would argue that that it be easier to inherit from a
Container to use for the Control. I would argue that a Control is NOT a
container and when you inherit a Container, then you're type is a Container,
which i think is wrong. I think if Java would rewrite Swing, they would go this
way...but i believe they are too worry about backard compatiability to make
such a move.It's not easier or harder. Again, you're making things more limited, when the current Swing implementations are a) not so limited, and b) not restricting you in any way from using buttons and labels as simple controls. You don't have to add anything to a JButton if you don't want. How is it having a container-like behavior hurting you?
kind of like having a Circle with a method isSquare().Not really.

Similar Messages

  • Migration.  Just some comments.

    Ok, this is a dupe post.  Admins, if you want to pull this go ahead.  But, some things have to be out in the open before someone thinks this is the mother of all short cuts to EP6 SP9.
    I ranted:
    Swell,
    Everyone read the docs on this? Hold on, it's going to hurt.
    Make sure that your clients or bosses understand that there is a difference between migrating and upgrading.
    If your company wants to have your SP2 Portal be converted to SP9 and still be on the same box, this tool is not for you.
    Why? Here's a quote:
    Switch of DB (EP5.0/EP6.0) or OS (EP6.0 only) is not possible during migration when using the migration tools! Switching of DB or OS is made possible using SAP tool Java System Copy.
    Usage of Java System Copy has to be registered at SAP!
    Further reading states:
    Migration requires setting up of a new EP 6.0 on Web AS 6.40 system. After migration, the source server can be shut down.
    Not only that, your portal AND KM must be at SP2 PATCH 5.
    What does this all mean? There is still no upgrade tool. Your Portal is being migrated to another server. OK, let's just say that you wanted to upgrade your hardware anyway. Your EP6 SP2 Portal needs to get beefed for future growth so lets go with Windows 2003 Enterprise so you can use more than 4 gig of RAM. Well, we can't do that either. With the migration tool you can only go from OS to OS. If you are at Windows 2000, you stay at Windows 2000. Only after migration you upgrade your OS and pray the Portal makes it.
    Am I bitter? No, I just want fellow IT grunts like myself get a heads up on this. If you are not running NW04 on your production box, someone is going to ask you about the migration tool. Be informed. Don't back yourself into a corner and let clients or bosses think that this is the easy path to get to EP6 SP9. This is not a one size fits all solution. As soon as they are educated to what the migration tool does and does not do, you maybe surprised on what they end up wanting.
    What are we doing? Rapid Installer 2.0
    Yes, I may be re doing all of my systems again, but I am only loading my OS once. Dev Portal is first. Once done we switch LDAP pointers to our real users (ADS is a wonderful thing) and redirect calls from Production to the Dev Portal. End users see no changes to the portal. The only difference is the SSL alert that we are using an internal CA. Production is next. Once done everything is switched back. End users see no changes, but now the SSL alert is gone because we are now using an external CA again.
    Oh yeah, were you thinking of migrating your SSL certs? Think again.........
    I think I might start to blog some of this stuff. I think I have come across the majority of the errors in Portals at one time or another. My many mistakes just might make life easier for some poor soul on the other side of the planet. Call it a Karma recharge. God knows I have lost my Religion more than once on Portals.
    /rant

    Just by reading the documentation, I knew it was not an option. 
    You are correct in saying that looking at the problem from and SAP stand point that the migration is not a big deal.  It all comes down to the operating system.  As I look at two different portals now, one W2k EP6 SP2 and one W2K3 EP6 SP9 there are differences on the OS level.  The registry entries are different and in different locations.  File permissions and groups are different. IIS is different. 
    The problem is not SAP, they are delivering what they say.  This is a migration tool to move the portal to EP6 SP9.  And under controlled environments I am sure that it works. 
    I just feel that techs like myself have to advised understand the conditions that the tool works under before they make promises to clients and bosses they can't keep.
    This tool migrates the portal to another server and the OS must be the same.  That sums up what is in the documentation.
    If your clients or bosses think that this is an "upgrade" tool.  It is not.  It is a source to target migration.

  • How do I set up my iTunes Genius to play selections from all, not just some, of my songs in my currently playing playlist?

    Last night, when I played my playlist songs with iTunes Genius, my iTunes, with one of my playlists selected, and set on "Shuffle On," "Genius Shuffle On, "Genius On," "Match On," and "Play," played selections from all of my songs in my playlist. Today, my iTunes Genius went back to the same problem it was giving me before last night. My iTunes Genius has been playing selections from just a few of my playlist albums. How do I set up my iTunes Genius to play selections from all, not just some, of my songs in my currently playing playlist?

    No backup is a huge mistake.
    You can redownload some itunes purchases in some countries:
    Downloading past purchases from the App Store ... - Apple - Support

  • Back up just SOME of the music library to an external hard drive

    I want to move just some of my music from my iTunes library onto an external hard drive (reason? the music cannot be got again, but right now I am not sure if I need it all or not).
    So I want to move, say, 50 albums from the main iTunes libraray to an external drive and then be able to move some or all of them back again at later date.
    Do I have to copy the whole library over to the external drive and then delete the albums there that I did not want to copy over?  Or is there a better way?
    And how will I copy back just some of the back-up albums at a later date - is it the normal "Add folder/file to [main] library command from the File menu?

    OK, I don't think I have been making it very clear what I am trying to achieve - let me try putting it differently!!
    I have one iTunes folder and, at the moment, that is all backed-up via SyncToy.  I only have music in iTunes.
    Think of that music as being of 2 types - part A that I want for definite, and all that music is also on my iPod (I have my iPod set to Sync manually with iTunes) - this is probably well over 100 albums; and Part B music, that is on iTunes, not on the Ipod, and that I am not sure yet if I want to have in iTunes and on the iPod or not (this was a load of music copied over from another iPod several months ago) - this might be a further 50 albums.
    So - part A, I want to keep and want to be fully backed-up.  OK, SyncToy does that currently by backing up 100% of iTunes.
    But part B - I want to copy the part B music to a different copy location, and then just keep there the part B stuff which, album by album, I will either delete completely (if I don't want it) OR want to copy back to iTunes.  Once this second copy is set up, I would delete from this copy all the Part A stuff, and also delete from iTunes all the part B stuff.
    I would then have:
    - part A stuff on iTunes, iPod and back-up location 1;
    - part B stuff on back-up location 2.
    So the main question is - from what level in the iTunes folder do I need to copy over to the part B back-up so as to ensure that, when I subsequently try to copy albums back from the part B back-up to iTunes, I get all the information, artwork etc that already exists for the albums?  Do I copy the music file; the media file, or the whole iTunes folder?
    This may sound all terribly longwinded but, for various reasons, I am not in a position to be able to decide all at once which of the part B albums I need to keep.
    Is that any clearer?
    Cheers!

  • Pop up of some comment on mouse over to a particular component

    I have a column chart which display revenue for different products. I want to dispaly som comment on mouse over to a particular product. I have tried implementing it using a labels and dynamic visibility, but here in this solution I am facing problems due to default value. By default a label (comment) for a first product is displayed. I want a comment to be displayed only on mouse over.
    How Should this be implemented. Is there any other way to show pop ups on mouse over.
    Thanks
    -Anamika
    Edited by: anamikajain21 on Nov 12, 2009 10:06 AM

    Hi
    You may wish to take a look at Anil's example here:
    http://xcelsiusandme.blogspot.com/2009/07/xm-sample-7-customizing-mouse-over.html
    Regards
    Charles

  • Just some child in a webform?

    Hi,
    Please somebody of you can explain to me how to display in a webform just some child (not all child) related to member of a dimension.
    Example:
    Dimension: Account
    Member:
    Generation1: Product
    Generation2 : Sales
    Generation3 :
    - Quantity
    - price
    - 711111 (Revenue)
    I want to display in my webform just Sales, Quantity and Price. How can I do that?
    PS: I tried Ichildren(sales) but it didn't work
    Thank you

    Can I assume you have thought about using the Descendants function with missing blocks and data are suppressed? Otherwise, the only option that comes to my mind is to manually select members, but I know it is not ideal.
    Also, I would post this on Planning and Budgeting You may get more responses.
    Cheers,
    Mehmet

  • Just some thoughts

    Just some thoughts.
    Adobe says that piracy is one of the reasons for going to the cloud.  CC has to verify the subscription periodically why not add that process to the perpetual license for a nominal yearly fee.  On the other hand, why can't a user subscribe to CC for a month to get the latest version and then go on the web to get a crack?
    I also own, unless they go to a subscription, Elements 10.  Lots of functions that CS6 has for photo enhancements.  I found some plugins that really enhance Elements. e.g. ElementsXXL adds new menu items, icons, buttons, key shortcuts and dialogs, so they seamlessly integrate into the user interface of Photoshop Elements. ElementsXXL bridges the gap between Photoshop Elements and Photoshop and greatly enhances the image editing experience in Photoshop Elements.
    I am sure other plugins will appear to make Elements more like Photoshop.

    "Adobe says that piracy is one of the reasons for going to the cloud. CC has to verify the subscription periodically why not add that process to the perpetual license for a nominal yearly fee."
    Why on earth would anyone want to pay a "nominal yearly fee" for another nuisance created by Adobe.  They can already shut down perpetual license holder's software if they pull the plug on the activation servers.  Don't you know that their servers check our software now as it is?
    Just recently with the release of the CS2 software to previous owners, many people could no longer use their already-installed CS2 software because Adobe's CS2 servers were shut down.  What does that tell you?
    I'm not going the way of cruising the internet for cracks.  That's for disillusioned kids who think everything should be free.  When my CS6 software no longer works I'm going with another company.  Probably Corel for some of the programs.  CorelDRAW was always better than Illustrator anyway.  Industry standard doesn't always mean it's great.  It just means everyone is using it and they expect you to do as well.  Personally, I think Macromedia made better software before Adobe took them over and MM software was a lot cheaper.

  • Am suddenly getting error code 3250 when trying to download certain podcasts...not all, just some. How can I fix? Help.

    Am suddenly getting error code 3250 when trying to download certain podcasts...not all, just some. How can I fix? Help.

    I am getting the same error, and have been, since the last iTunes update.     Driving me crazy, as some podcasts download without issue, others won't download at all, and get the 3250 error code.

  • How could I set the proxy settings for just some URLs and not for all?

    Hello,
    I am using HttpURLConnection to establish a HTTP connection . The connection pass through a proxy, and it requires security.
    I know that I can set the proxy settings in the system properties, and this works perfect.
    But I don't want to set the proxy settings in the system properties, because this proxy settings will be for ALL the URLs, and I just want for a few URLs.
    How could I set the proxy settings for just some URLs and not for all?
    Thanks

    java.net.URL.openConnection(java.net.Proxy proxy)
    @since 1.5

  • [svn:osmf:] 15581: Better coding style and some comments for the previous code submission.

    Revision: 15581
    Revision: 15581
    Author:   [email protected]
    Date:     2010-04-19 17:14:00 -0700 (Mon, 19 Apr 2010)
    Log Message:
    Better coding style and some comments for the previous code submission.
    Modified Paths:
        osmf/trunk/apps/samples/framework/OSMFPlayer/src/OSMFPlayer.as

    Revision: 15581
    Revision: 15581
    Author:   [email protected]
    Date:     2010-04-19 17:14:00 -0700 (Mon, 19 Apr 2010)
    Log Message:
    Better coding style and some comments for the previous code submission.
    Modified Paths:
        osmf/trunk/apps/samples/framework/OSMFPlayer/src/OSMFPlayer.as

  • [svn:sb-sherlock] 14394: Mostly code cleanup on AbcParser.java, some comments/minor changes on confusing code found elsewhere.

    Revision: 14394
    Revision: 14394
    Author:   [email protected]
    Date:     2010-02-24 13:47:35 -0800 (Wed, 24 Feb 2010)
    Log Message:
    Mostly code cleanup on AbcParser.java, some comments/minor changes on confusing code found elsewhere.
    Modified Paths:
        flex/sdk/sandbox/sherlock/modules/asc/src/java/macromedia/abc/AbcParser.java
        flex/sdk/sandbox/sherlock/modules/asc/src/java/macromedia/asc/parser/BinaryProgramNode.ja va
        flex/sdk/sandbox/sherlock/modules/asc/src/java/macromedia/asc/semantics/Builder.java
        flex/sdk/sandbox/sherlock/modules/asc/src/java/macromedia/asc/semantics/ConfigurationEval uator.java
        flex/sdk/sandbox/sherlock/modules/asc/src/java/macromedia/asc/semantics/FlowAnalyzer.java
        flex/sdk/sandbox/sherlock/modules/asc/src/java/macromedia/asc/semantics/ObjectValue.java

    Revision: 14394
    Revision: 14394
    Author:   [email protected]
    Date:     2010-02-24 13:47:35 -0800 (Wed, 24 Feb 2010)
    Log Message:
    Mostly code cleanup on AbcParser.java, some comments/minor changes on confusing code found elsewhere.
    Modified Paths:
        flex/sdk/sandbox/sherlock/modules/asc/src/java/macromedia/abc/AbcParser.java
        flex/sdk/sandbox/sherlock/modules/asc/src/java/macromedia/asc/parser/BinaryProgramNode.ja va
        flex/sdk/sandbox/sherlock/modules/asc/src/java/macromedia/asc/semantics/Builder.java
        flex/sdk/sandbox/sherlock/modules/asc/src/java/macromedia/asc/semantics/ConfigurationEval uator.java
        flex/sdk/sandbox/sherlock/modules/asc/src/java/macromedia/asc/semantics/FlowAnalyzer.java
        flex/sdk/sandbox/sherlock/modules/asc/src/java/macromedia/asc/semantics/ObjectValue.java

  • Back up just some music from iTunes onto an external hard drive

    I want to move just some of my music from my iTunes library onto an external hard drive (reason? the music cannot be got again but right now I am not sure if I need it all or not).
    So I want to move, say, 50 albums from the main iTunes libraray to an external drive and then be able to move some or all of them back again at later date.
    Do I have to copy the whole library over to the external drive and then delete the albums there that I did not want to copy over?  Or is there a better way?
    And how will I copy back just some of the back-up albums at a later date - is it the normal "Add folder/file to [main] library command from the File menu?

    I want to move just some of my music from my iTunes library onto an external hard drive (reason? the music cannot be got again but right now I am not sure if I need it all or not).
    So I want to move, say, 50 albums from the main iTunes libraray to an external drive and then be able to move some or all of them back again at later date.
    Do I have to copy the whole library over to the external drive and then delete the albums there that I did not want to copy over?  Or is there a better way?
    And how will I copy back just some of the back-up albums at a later date - is it the normal "Add folder/file to [main] library command from the File menu?

  • Need some comments and suggestions

    ...please try to give some comments and suggestions to my
    sites... thanks..
    http://bizgraphix.com

    Vey good graphic design.
    A few suggestions:
    1. Either slow down your animations, or make one of them
    stop. It makes me a bit dizzy looking at both moving all the time.
    2. Get someone to edit your text for you. There is too much
    repetition, the lists are too long, and there are many grammatical
    errors. If you would like help, email me.
    Site looks great!
    You have very good design skills.
    P

  • Animation of just some parts of a CAD assembly group

    Hello again,
    Is it possible to animate just some parts of an assembly group (e.g. rotating a shaft between two static bearing cases)?
    I have loaded the geometry as a .obj file. And each part is named by the parameter "g" in the .obj file, as far as I understand it. So I wonder wether one could use these named parts to form a transform group??
    Would there be a better file format than .obj for something like this?
    Thanks for your advice!!!

    see GearTest.java in the j3d demos.

  • Just some feedback on the 2014 CC Update

    Just some feedback. When I installed the 2014 Adobe CC Apps last evening, I was expecting it to "update" (As it was labelled an update) the current CC apps on my hard drive. Instead it installed all new 2014 versions instead of an upgrade. This ended up being a minor issue as I am running my OS and Apps on an SSD, and have limited space. It just would have been nice to have seen it (CC 2014) clearly labeled as a new version of the apps instead of as an "update". That could have been a misunderstanding on my part, but it could be better labeled. Other than that, everything is fantastic, thank you very much.

    martyr2 wrote:
    1) Do I NEED to "update" or INSTALL?
    2) Is this the Adobe way?
    3) We sure thought we were signing up for "always current apps" - updates, yes - but a complete new installation?
    1) If you don't have alot of money tied up in plug-in's that don't work under the new programs... then you way want to update/install. If you have need of the new features, then you may want to update/install. However, need is subjective, and only you can determine that.
    2) For this update, it appears that this is the Adobe way, for the moment. From the information I have gleaned, (Caution! Assumption! ) it appears that they are doing it this way because of the lack of backward plug-in compatibility with the new CC 2014 apps. I can see why they would want not to alienate people who have several hundred dollars or more tied up in plug-ins.
    3) That was my understanding as well, but I can understand why they are doing what they did... I just wish they would have let us know.

Maybe you are looking for

  • My points are not displayed correctly

    Hi, My SDN points are actually 282. But now it's displaying 0. Is it some technical problem or is there some reason behind deleting my points. I request the moderators to look at this once. Thanks, Sri. Problem Solved Edited by: Sri on Dec 7, 2009 11

  • Import settings with YYYY MM DD?

    I just started using Lightroom and I would like to be able to import my photos with the folder name in the format YYYY MM DD (year month day), but Lightroom doesn't seem to support this format? The closest thing I've found is YYYY-MM-DD, but this is

  • Issue with report RPUAUD00

    Hi Friends, I am facing an issue with the report which reads the Logged changes from the IT 0000. I have an employee who is a contractor in organisation till 29th, on 29th there is an action for end of assignment and on 30th jan he is been hired into

  • Q10 not showing my facebook updates

    Someone please help! I was prompted to load a more recent version of FB, which i did. However now it doesn't show my status updates on my wall that i posted over the last couple of weeks. Nor any of my friends when i go into their walls. But I am get

  • Iphoto will not open, just jumps.

    I have tried the "option/command" thing and still cannot get it to open.  Is this something Genius Bar will help with?