简体   繁体   English

如何设置 System.out.println() 在我的自定义控制台中打印?

[英]How to set System.out.println() to print in my custom console?

I'm creating a simple notepad (just like a clone of the real one).我正在创建一个简单的记事本(就像真实记事本的克隆一样)。 As an advancement I decided to add a Java compiler and Runner in the app making it a very basic IDE.作为一项进步,我决定在应用程序中添加一个 Java 编译器和 Runner,使其成为一个非常基本的 IDE。 My problem is how to I tell Java that System.out.prinltn() should print it's results in my own console?我的问题是如何告诉 Java System.out.prinltn()应该在我自己的控制台中打印它的结果?

I know the question is short but this is what i wanted to know.我知道这个问题很短,但这就是我想知道的。 Not only for System.out.prinltn() but for all the other things which are printed in the console.不仅适用于System.out.prinltn()还适用于控制台中打印的所有其他内容。

Thanks in advance提前致谢

You need to pass arguments to the your notepad application.您需要将参数传递给记事本应用程序。

For that you need to use windows controllers to access your notepad application from another java application.为此,您需要使用 Windows 控制器从另一个 Java 应用程序访问您的记事本应用程序。

IF both of the application written in java then you can use TCP ip at the backrground to communicate.如果两个应用程序都是用 java 编写的,那么您可以在后台使用 TCP ip 进行通信。 This is the only one way, there are alot of other ways.这是唯一的一种方式,还有很多其他的方式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM