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

  • Home
  • SEARCH
  • 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 869949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T10:23:24+00:00 2026-05-15T10:23:24+00:00

I have a Java game i’m creating and each window is a seperate JFrame

  • 0

I have a Java game i’m creating and each window is a seperate JFrame
with its own components.

How would I get about calling variables from other .java programs?
Not quite sure how to do that.

  • 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-15T10:23:24+00:00Added an answer on May 15, 2026 at 10:23 am

    A running JVM instance has no access to objects living in a different instance. Communication between java virtual machines has to be done with other means.

    A practical way is to establish a TCP/IP based interface. One application acts as a server (opens a port) and listens to requests for data. TCP/IP based client/server solutions are not too complicated in Java.

    Another rather simple alternative is using a shared file on the file system. The data provider updates this file on changes, the ‘client’ monitors this file and loads the content, whenever it detects update/change (monitor modification timestamp).

    And to mention a third approach: Java Management Extensions (JMX) would help too. JConsole (part of the jdk) is a practical example on how to connect to a separate JVM and get access to (‘public’) data and methods.

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

Sidebar

Related Questions

I have an online Java game I'm working on, how would I go about
i have a java game app that uses sockets to communicate with each other.
I am creating a Java game for Windows and I have come across a
I have a card game in java. I would like to play a sound
I'm making a little java game in which I would have two threads (well
I have been working on a Java game and I recently wanted to see
I'm trying to start my java game but I have some troubles with the
I am coding a text based Java game, I have ran into a few
I have to make a game in Java for my computer science class. Since
I have developed tower of hanoi game in java script. Now, I want to

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.