英文:
Google's interactive text fields in java swing
问题
我在处理关于Java Swing的问题... 我需要知道大多数Google应用中的线性文本字段是如何制作的... 那些只有一行文本框在底部的地方,我如何使它们具有交互功能。我不需要NetBeans中的应用程序设计(那是我们的导师)... 有人可以帮忙吗?
附注:我已经努力寻找这样的内容,但我找到的都是拖放式设计。我已经到处搜索,但什么都没有找到。
英文:
I am struggling with something regarding java swing....I need to know how the linear text fields in most google apps are made....the ones where there is only one line in the bottom and how can I make them interactive. I don't need the app designer in net beans(that's our instructor)..Anyone can help please?
PS: I tried so hard to look up for such a thing but all I find is a drag and drop design. I searched everywhere but I found nothing.
答案1
得分: 2
以下是您要翻译的内容:
谷歌应用中图形组件的设计取决于移动操作系统。在 iOS 和 Android 上,您将对同一组件拥有不同的设计,如下所示:
如果您想要更改图形组件的设计(在应用程序中,或者在这种情况下,在Java Swing中),您需要编写一个自定义文本字段。
您可以阅读 https://stackoverflow.com/questions/6008058/customizing-jtextfield 获取一个简单的示例。
英文:
The design of the graphic component in Google app is depending to the mobile operative system. In iOS and Android you will have different design for the same component, as you can see:
If you want to change the design of a graphic component (in an App or, in this case, in Java Swing) you have to write a Custom text field.
You can read https://stackoverflow.com/questions/6008058/customizing-jtextfield for a simple example.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论