Why is swing so slow ? :(

Why java don't use native code for creating UI ?
Any application, writen in swing is SLOW ...
compared with .NET for example...
even well tuned examples a too slow for using.
I like java, but this $#%ing swing kills all GUI applications.

The sad truth is that Swing has got such a bad wrap
that many flock to SWT thinking its the holy grail of
Java UI development because Swing is so bad. Nothing
could be further than the truth. SWT is great in many
respects, but Swing is better in many respects as
well. If done right, Swing beats SWT in most cases.
With JDK 1.4.2 improvements are even better, and on
Mac OS X, Apple works with Sun to build their own
optimized JVM, so Swing is pretty darn fast, near
native performance on Mac OS X.
I wish there was a faster way to get the truth about
Swing out there. One problem, a lot of developers are
not the types to accept that they wrote crappy code
and thus their slow Swing performance is a direct
result of their bad coding. It's a shame really.
Accepting that you wrote some crap code only helps you
get better...well, unless you really do stink at
programming, then a career change may be in order ;)Well, this about wraps up my feelings about SWT and Swing.
The problem with many programmers is: they don't like to read.
Unfortunately Swing is too complex to write a decent program without a concerted effort in reading at a minimum the online tutorials, but to become professional you need a good Swing book.
Once you get the hang of Swing it is actually better than Visual Basic or MS Access. I have written code generators for MS Access and Ms SQL Server applications. But I like Swing better for many reasons. For example a VB GUI is static, while with Swing you can create a form on the fly. I can go on for a couple of pages of why Swing is so cool, but I simple want to state that statements about Swing should be based on facts, not on some hype.
Of course Swing can be made easier. That is why Sun is building a product like Rave.
Swing is here to stay. Within just a couple of years more and more VB programmers will be coding Swing.
This is good for Swing for the IT industry as a whole, becuase it will mean an explosion in quality products for the consumer market.

Similar Messages

  • Why does Photoshop keep slowing down?

    I've been using Adobe Photoshop CS5.1 for two years now, and for some reason it seems to have the problem of slowing down after using it for a while, so if I'm working on a project I have to keep closing it and reopening it to get it fast again. It's weird because it doesn't seem to matter how much stuff is on the canvas, it's just how much I've drawn and hit undo and erased or did anything, After like 5 minutes of straight work it just gets too slow for me to work in, like when I switch tools or change the color it takes a couple seconds to respond. So literally every couple minutes I have to restart Photoshop and open the same file.
    What's really odd is that sometimes Photoshop will work perfectly fine and stay lightning fast for hours. Like, for the last couple of months it's been 100% fine, but since a few days ago it started to have this "slowing down" issue again. Every couple months it seems to decide to be perfectly fine or just really annoying. I didn't change anything in my computer.
    It can't be my computers specs or my settings in Photoshop, but I will tell you all of that anyway.
    OS - Windows 7 64-bit
    CPU - Intel Core 2 Quad Q6600 @ 3.0GHz
    RAM - 12GB DDR3 @ 1333MHz

    There is no malware scanner running, in fact I have tried closing out all other applications and unnecessary processes to help improve performance. No luck.
    Also, my post actually wasn't quite finished, but my internet shut off on me last night and I guess that just automatically posted whatever I had done before then. What's even better is that the forums won't allow me to edit it. What great features!
    Anyway, here's the FULL spec sheet of my computer...
    OS - Windows 7 64-bit
    CPU - Intel Core 2 Quad Q6600 @ 3.0GHz
    RAM - 12GB DDR3 @ 1333MHz
    GPU - NVIDIA GeForce GTS 450 1GB
    Storage - 1x 128GB SSD (OS installed on), 1x 750GB HDD, 1x 160GB HDD
    I have the 64-bit version of Photoshop CS5.1 Extended, installed on the SSD. Here's the settings I have in the preferences:
    Memory Usage - 100%
    Scratch Disks - All 3, SSD 1st, 750GB HDD 2nd, 160GB HDD 3rd
    History States - 100
    Cache Levels - 8
    Cache Tile Size - 1028K
    I have fiddled with these settings and restarted Photoshop countless times. In the end it's the same exact result: Photoshop slows down after a few minutes of work and I have to restart it. I have about 50GB free on the SSD, 150GB free on the 750GB, and about 140GB free on the 160GB.
    I don't understand why it gets so slow even when my RAM usage only makes it up to about 45%. Why doesn't it just utilize ALL of the memory like I told it to?
    I've tried setting cache to 1, 2, and 4, same result. Cache tile size to all the different settings, same result. History states to an extremely low level like 10, same result. I just don't understand why Photoshop is doing this, especially because it decides to speed up on its own every couple of months...

  • Why is Start up slow on MacBook Pro after Lion installation?

    I've noticed that it takes a while for my MacBook to turn on and start-up since I installed Lion. Any ideas why or how to correct? Thanks!!

    Your machine is likely too dated to run 10.8 adequately.
    Apple makes it easy, doesn't mean it's right match for your hardware.
    Why is my computer slow?
    How to revert your Mac to Snow Leopard
    How to erase and install Snow Leopard 10.6

  • Why youtube streaming is slow with ipad mini?

    Why youtube streaming is slow with ipad mini?

    How to Fix a Slow iPad
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-A-Slow-iPad.htm
    iPad running slow? How to speed up a slow iPad
    http://appletoolbox.com/2012/07/ipad-running-slow-how-to-speed-up-a-slow-ipad/
     Cheers, Tom

  • Why is verizon so slow

    please someone tell me why verizon is so slow on there updates? for the first time they were 1st to deliver the 4.3 to s4's but not the s3's

    Well it deals with a Step process If the Manufacture Likes it, then it's sent to Verizon it has to get there Seal of approval to move on to us the customer but if they slap a stop on the Update and it's happen many times before it has to go to the Manufacture they have to retool it Make sure it's functional then send it back to Verizon if they give the approval then as I mention it comes to our Phones to were can Download it..
    Hope this Helps And Welcome to the Verizon Forums.. b33

  • Why is keyboard is slow on my macbook pro, why is keyboard is slow on my macbook pro

    why is keyboard is slow when typing

    Hi basselfromlondon,
    If you are having issues with the keyboard response on your MacBook Pro, you may find the following article helpful:
    OS X Mountain Lion: If keys on your keyboard don’t work
    http://support.apple.com/kb/PH10680
    Regards,
    - Brenden

  • I am updating my iphone 4s to ios 5.1 now. Why it is super slow??? It will take upto 9 hours to finish!!!!

    I am updating my iphone 4s to ios 5.1 now. Why it is super slow??? It will take upto 9 hours to finish!!!!
    What should I do?? waiting or stop updating?

    "I am updating my iphone 4s to ios 5.1 now. Why it is super slow???"
    Because, Millions of other people are attempting to do the same thing.
    Stedman

  • Why Portal will be slow when we work on Theme Editor

    Hi Experts,
    Why Portal will be slow when we work on Theme Editor in Creating new Theme or modifying existing one.
    Note: Since i have done Branding for 6 to 7 Clients i fell same , portal runs very slow.
    Thanks
    Vijai

    Hi,
    use the Eclipse Theme Editor. No need to be logged on in the portal, hence: faster. You'll only have to upload the theme afterwards to the portal.
    br,
    Tobias

  • Why my iphone 5 slow my internet service in wifi connection

    Why my iphone 5 slow my internet service in Wifi connection?
    Also when my iphone 5 is not in use still use Wifi connection, is
    Something whit my iphone or what i can do to fixed?
    Thank you

    does any one have this problem? that iphone 5 show searching and no service, and show signalin 3g and u can ring, but nothing after u swap to answer?
    in 3g i can ring other fones but its like no network connection after this

  • TS4268 Why is keyboard so slow responding now i have IOS7?

    Hi can anyone tell me why my keyboard has slowed down on my phone since upgrading to IOS7??

    I agree, completely unuseable. Same thing on four different machines, with or without AdBlock. Safari, Opera and IE all work fine.

  • Why is internett so slow with Airport express???

    Hi!
    I have a mac mini and a pc.
    I sometimes think that my mac mini is so slow when I use Internett.
    There is a norwegian page that I have tested it on... and the answere was alarmin:
    My pc had a connection of: about 4000 kbit/s connected to wireless and airport express... and about 6000 with out wireless.... hmmmm I tested it many times...
    My mac mini (which is in my livingroom) had a connection at only 919 kbit/s????
    why is it sooooooo slow???? can I do anything to speed it up????

    Great Henry,
    That was great advice, I have been unofficially been working in WiFi for my school and this is one of the most clear responces I've seen from discussions. Anyways some things that I do believe that you forgot was cordless phones 2.4Ghz range, microwave ovens, DSS (Direct Satellite Service), Electrical things like power lines, Other airport/WiFi stations, and moving objects made of metal between the computer and base station. Those are all broad things. Usually things like that won't effect it but it really depends. For the cordless phone you just need to change the channel on the airport. I hope that helps, Good Luck!
    Jon
    PS I have found that sometimes its just plain wackey, usually cause of wires and such things in the walls

  • Why is facebook so slow on my Iphone with IOS 8?

    Why is facebook so slow on my Iphone with IOS8?

    Here is the article explaining why.
    Developer Steve Streza, iOS devices are programmed to ping a test URL upon connecting to a Wi-Fi network to see if it’s protected by a “captive portal.” And that test page has been down all afternoon…
    Here’s more on that from Errata Security:
    “When an Apple iOS device (iPhone, iPad, iPod) connects to a WiFi network, the first thing it does is make a request to the URL http://www.apple.com/library/test/success.html.
    The purpose of this request is to discover if there is a “captive portal” in the way. A captive portal is when, after connecting to the WiFi, any web request you makes gets redirected to a login/ToS page. In order to continue, you must either login with a username/password (or sign up, then login), and/or access the Terms of Service.”
    Anyway, it sounds like Apple was able to correct this issue on their end, so no update will be necessary. But if you’re still having Wi-Fi problems, you can try the following:
    Toggle your Wi-Fi off and on – Settings app > Wi-Fi OR
    Set your device’s HTTP Proxy to Auto – Settings app > Wi-Fi > Blue icon next to the network you’re connecting to > Scroll to the bottom
    One of these methods should cure your iOS 6 Wi-Fi troubles. If not, be sure to let us know in the comments below.
    http://iphone5issues.net/iphone-5-wifi-issues-weve-got-a-fix.html

  • Why does Lion seem slower than Snow Leppard?

    Why does Lion seem slower than Snow Leppard?

    michaelfromrice lake wrote:
    Why does Lion seem slower than Snow Leppard?
    It's anyone's guess.  Startup and shutdown as well as application launches take longer in Lion than they did in Snow Leopard on the three Macs that I "upgraded," and I also see the spinning beach ball more often than I used to.  Add to that the HDMI-related crashes on my Mac mini...
    Quite frankly, I have yet to see where I have gained any advantages after upgrading to Lion, and I definititely have problems that I didn't have under Snow Leopard.  Of course, all of it must be my fault, as Apple would never ever relase an upgrade that was less than perfect.

  • Why is it so slow to upload a video on Youtube?

    I tried to upload a video on Youtube,But it was soooo slow on my Macbook Pro newiest version! Why is it soo slow? Please Answer Back

    Arjana2 wrote:
    I tried to upload a video on Youtube,But it was soooo slow on my Macbook Pro newiest version! Why is it soo slow? Please Answer Back
    There can be several reasons:
    You have a slow Internet connection
    You Tube is experiencing connection slowness
    Anywhere in the route between you and You Tube is experiencing slowness
    I'd start troubleshooting with the Internet connection. What upload speed are you paying for? What upload speed are you getting?

  • Why is Mail so slow on 10.8.2

    Why is Mail so slow on 10.8.2?

    Send Apple feedback. They won't answer, but at least will know there is a problem. If enough people send feedback, it may get the problem solved sooner.
    Feedback

Maybe you are looking for

  • Help with port forwarding to application

    Help needed to Port Forward on to my PS3.  I need to forward the following ports:  UDP: 3074; 3659; 6000 TCP: 80; 443; 3659; 10000 - 10099; 42127 Have previously given the PS3 a static IP, set the port forwarding rules and then forwarded to the IP ad

  • JSF 1.1 integration with shale-tiles-1.0.4 giving page cannot be displayed

    I am trying to get shale-tiles-1.0.4 work with JSF 1.1 I am getting the page can not be displayed error. The page cannot be displayed There is a problem with the page you are trying to reach and it cannot be displayed. Please try the following: Open

  • Sales Document from VBAK ,VBAP and VEDA

    Hi , I need to fetch the Sales Document from VBAK and VBAP and VEDA with the contract sign date for sales document line item . Contract sign date is in selection screen as select options. Please let me know how to fetch the sales Document per line it

  • Actiontec GT704WGB IP Address Problems

    Hi i was wondering if anyone has heard of or know if the actiontec  has issues with holding the ip address on the ports of the router portion. i have a print server hooked up to an hp all in one printer and everytime i go to print it wont only becaus

  • Option A, 2 PE pair per Provider, Redundancy

    Hi All, Requesting suggestions for the following scenario, let's say we have 2 service providers (SP) offering MPLS VPNs through Option A (Back to Back VRF). These SPs are connecting through two PE/ASBRs each, like SP As, PE_A1 and PE_A2 and SP Bs, P