Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 718927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:35:01+00:00 2026-05-14T05:35:01+00:00

With the introduction of the HTML5 <canvas> element, could Swing theoretically be implemented in

  • 0

With the introduction of the HTML5 <canvas> element, could Swing theoretically be implemented in Google Web Toolkit (GWT) by using the <canvas> tag for drawing?

I’m aware of efforts to port source code from using Swing calls to GWT calls, but what I’m after is a pure behind the scenes port where a Swing application would compile under GWT without any source code modifications.

Is that theoretically possible? Why? Why not?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T05:35:02+00:00Added an answer on May 14, 2026 at 5:35 am

    There are some challenges.

    Local data storage
    Swing applications can use the disk to store data. Assuming local data store available in HTML 5 works, it’d still be difficult to auto-magically map file/disk access to local data store calls.

    Multithreading & Synchronization
    Swing applications typically create threads, and that’s not possible with GWT. Tricky to get it right.

    Network Access
    Swing apps can connect to arbitrary network locations, which doesn’t work with GWT.

    Using java language features not available in browser
    Anything outside core-java is inaccessible, so the automatic port will likely fail.

    Memory & Performance optimizations
    Garbage Collection patterns are entirely different. How do you optimize for optimal download sizes? How do you map multiple swing screens to use something like code-splitting for performance gains?

    Look and Feel
    All said and done, you have to get your hands dirty to write some CSS code to get the right look and feel. An automatic port cannot do that.

    Given all this, I think it is not-possible for anything but trivial applications. And for trivial applications you might as well re-write the code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just finished the Netbeans introduction to Hibernate tutorial ( http://netbeans.org/kb/docs/web/hibernate-webapp.html#01 ) and I
Introduction: Now I know this question could be very broad and it would be
INTRODUCTION I'm using excel downloads as a way of users downloading a score sheet,
In the W3C working draft for HTML5 here's a line I find confusing: http://www.w3.org/TR/html5/introduction.html#html-vs-xhtml
I am looking into using browser sessionStorage for a web application, and was trying
In grails 2.0 whats new http://grails.org/doc/2.0.0.RC1/guide/introduction.html#whatsNew it says: 1.1.3 Web Features Controller Actions as
i am using the Photoscroller Example from: http://developer.apple.com/library/ios/#samplecode/PhotoScroller/Introduction/Intro.html but i don´t see how i
Here is the link to the sample code http://developer.apple.com/library/ios/#samplecode/MVCNetworking/Introduction/Intro.html Below is the code snippet
I want to create a ordered html list like this: 1.0 Introduction 1.1 Features
I added TextToSpeech to my app, following the guidelines in the following post: http://android-developers.blogspot.com/2009/09/introduction-to-text-to-speech-in.html

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.