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 8000677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:52:42+00:00 2026-06-04T15:52:42+00:00

I have many classes in GWT that represents graphical widgets . They are packaged

  • 0

I have many classes in GWT that represents graphical widgets. They are packaged as a GWT module called GWT-Toolbox. This module only have for now, client code. That means, all those classes are mainly layouts, windows, that I reuse along my others GWT-apps (separate modules).

For the moment, the way I’m doing this is that all my others GWT-apps inherits this GWT-Toolbox module.

Is it the right way of doing it ?

My main question is about images resources. I want to use in the GWT-Toolbox module, some images that would be shared along all GWT-apps.

What can I achieve that ? I don’t want to use ClientBundle because it do not fit my needs.

Where do I put my resources files, and how they will be packaged in the GWT-apps ?

For the record, I’m using GWT 2.4

EDIT

So, with the help of the community, I figured out how to proceed. Note, that this solution doesn’t use ClientBundle.

GWT-Toolbox – this is the files structure

-src/main/java
— com.mypackage.toolbox
—— public
——— images
———— img1.png
———— img2.png
——— GWT-Toolbox.gwt.xml

Inside GWT-Toolbox source code, refer to this images like this :

GWT.getModuleBaseURL() + "images/img1.png"

and that’s it.

  • 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-06-04T15:52:44+00:00Added an answer on June 4, 2026 at 3:52 pm

    Is it the right way of doing it?

    Absolutely; this is actually no different from widgets the live in the com.google.gwt.user.User module.
    (provided inherits means <inherits/>, and putting the GWT-Toolbox JAR in the classpath)

    Where do I put my resources files, and how they will be packaged in the GWT-apps ?

    You can either put them as simple resources in your JAR so that other modules can use them with ClientBundle by providing their path in @Source.
    Or you an put them in a public subfolder (to be exact, the public path of your module, the subfolder name defaults to public but is actually configurable) of your module so they’re deployed side-by-side with the *.cache.* compiled files (this is how themes work in GWT).

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

Sidebar

Related Questions

I have many structs (classes) and standalone functions that I like to compile separately
I have a abstract base class that I have many inherited classes coming off
I have many different small classes which have a few fields each, e.g. this:
Many library classes in AS3 have read only properties. Is it possible to create
I have a set of classes which I didn't write, and they're read only.
I have a module (tools.py) containing many classes. I'd like to extract these out
I have many classes that implements IBuilder<> interface such the ones below UPDATED: each
I have many classes that implement a common interface. I use a definition like
I know that it's possible to have many classes in a namespace. Now, is
So I have many child classes that will inherit from a parent class. I've

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.