user1179522
user1179522

Reputation: 155

wrapping a jframe

is there a way to open a program, that usually opens a new jframe, into an existing jframe?

here is the explanation, I have downloaded a java game one of those reflexes ones and it opens in a jframe with a bunch of sub panels inside of the frame, what i want to do is wrap the existing jframe in another frame or canvas or something so i can build internal scripts for it as apposed to building external scripts that require screenshots and getting pixel data. by internal scripts i mean scripts that run inside the new jframe

Upvotes: 1

Views: 508

Answers (1)

Andrew Thompson
Andrew Thompson

Reputation: 168825

The usual way to achieve custom functionality would be to extend the class and override methods to add new/altered components and & new/altered methods.

OTOH I doubt that someone who refers to Java code as 'internal scripts' has the experience needed for this task. It would be better to start with simpler goals.

Upvotes: 2

Related Questions