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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T06:02:22+00:00 2026-06-06T06:02:22+00:00

Well i’ve got a simple doubt regarding the behaviour of instance of a java.swing.ImageIcon

  • 0

Well i’ve got a simple doubt regarding the behaviour of instance of a java.swing.ImageIcon class.

Now it is based on RMI Client server operation……

Suppose there exist a jpg file called A.jpg in server computer.
Now on retrieving it using

           // At Server...
           ImageIcon ic = new ImageIcon("C://server_image_folder//A.jpg");
           return ic;

and then using it in client with the function

           // At Client....
           // same variable name used for simplicity....
           System.out.print(ic);

We’ll observe here that it prints the URL of the image file in the server computer..

Here, for eg: – C:/server_image_folder/A.jpg

So my question is just simply….

  Will it cause any trouble since such URL don't exist in client computer ?

such problem cannot be observed in a a situation like localhost since both share the same URL( i believe ).

But, What about the condition when both programs are implemented in separate computers….??

  • 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-06T06:02:25+00:00Added an answer on June 6, 2026 at 6:02 am

    This doesn’t cause a problem, but may result in some confusion. The constructor that you’re using treats the single arg as both a file name and a description. The filename field is transient, so it is not part of the serialized data. However, the description field is not transient and will be part of the serialized data. Since the toString method will return the description field if it’s non-null, it might lead you to think that the file name has been retained as well, but it hasn’t.

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

Sidebar

Related Questions

Well, I got problem here with opengl ES stuff (just started to learn about
Well after much messing about I have finally got a query that gives sales
Well, I am storing variables inside of a class that will be used for
Well, i'm learning to work with QML and i have one doubt. In my
Well lets say i have this <table class=infoBox> <tr> <td> test </td> <td> <table>
Well, I'm trying to reuse a portion of C# code. It's an abstract class
Well I am new to Java web services and I need to develop a
Well, it may actually be a simple case but I'm having a tough time
Well friends, I have got this query which works but is very long for
Well I made this game in java and when you shoot a bullet it

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.