如何将特定文本从文本区域放到文本区域

编程入门 行业动态 更新时间:2024-10-28 04:16:47
本文介绍了如何将特定文本从文本区域放到文本区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

如何将特定文本从文本区域放到java中的textfield? 如加载配置文件 喜欢这个图像:http://i.imgur/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 : i.imgur/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 ?

更多推荐

如何将特定文本从文本区域放到文本区域

本文发布于:2023-11-10 00:27:34,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1573854.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文本   区域   如何将

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!