如何以JAVA格式在JTextField上对齐输出 [英] How do I align my output at JTextField in JAVA format

查看:68
本文介绍了如何以JAVA格式在JTextField上对齐输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在在JTextField中有这样的输出代码: -



I have an output code like this in my JTextField right now :-

class abc{
    public abc()
    {
        for(int i=0;i<10;i++)
        {
            int a=5;
        }
    }
} //... and the output code continues....



我希望在JTextField上使用JAVA代码格式输出,即(Ctrl + Shift + F)格式




I want output on JTextField with JAVA code format i.e. (Ctrl+Shift+F) format

class abc{
    public abc()
    {
        for(int i=0;i<10;i++)
        {
            int a=5;
        }
    }
}



// ...抱歉编辑不允许我显示正确的格式



哦,是的。你需要做的就是使用正确的菜单项。



// ..但你们都知道我想要输出中的JAVA编码风格格式


//... Sorry the editor is not letting me allow to show proper format

Oh yes it is. All you need to do is use the proper menu items.

//.. but you all know i want JAVA coding style format in output

推荐答案

这篇关于如何以JAVA格式在JTextField上对齐输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆