简体   繁体   English

Google 的交互式文本字段在 java swing

[英]Google's interactive text fields in java swing

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.我正在努力解决有关 java swing 的问题……我需要知道大多数谷歌应用程序中的线性文本字段是如何制作的……底部只有一行的那些以及如何使它们具有交互性。 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. PS:我非常努力地寻找这样的东西,但我发现的只是一个拖放设计。 I searched everywhere but I found nothing.我到处寻找,但什么也没找到。

The design of the graphic component in Google app is depending to the mobile operative system. Google 应用程序中图形组件的设计取决于移动操作系统。 In iOS and Android you will have different design for the same component, as you can see:在 iOS 和 Android 中,相同的组件会有不同的设计,如您所见:

在此处输入图像描述

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.如果您想更改图形组件的设计(在应用程序中,或者在本例中,在 Java Swing 中),您必须编写自定义文本字段。

You can read Customizing JTextField for a simple example.您可以阅读自定义 JTextField以获得一个简单的示例。

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

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