如何将特定文本从文本区域放到文本区域 [英] how to put the specific text from the text area to textfield

查看:206
本文介绍了如何将特定文本从文本区域放到文本区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将特定文本从文本区域放到java中的textfield?



如加载配置文件



喜欢这个图像:http://i.imgur.com/rEGRLGB.png

解决方案

你可以从文本区域获取所有字符串(getText) ()方法)首先解析它们。

使用字符串操作方法,如indexOf(str)/ split(str)/ subString() - 无论你喜欢哪种方法。你已经明确知道要拆分的所有东西了。


谢谢....

你能给出这个问题的示例代码吗?

how to put the specific text from the text area to textfield in java?

such as load config file

like this image : http://i.imgur.com/rEGRLGB.png

解决方案

You could get all the string from text area(getText() method) first and then parse them.
Use string manipulation methods like indexOf(str)/split(str)/subString() - whichever you prefer to go for. You've specifically knew what all things to be split.


thank you....
can you gives the example code for this problem ?


这篇关于如何将特定文本从文本区域放到文本区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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