gpt4 book ai didi

java - java Swing中是否有像FrameLayout(Android)这样的概念?

转载 作者:太空宇宙 更新时间:2023-11-04 14:55:52 25 4
gpt4 key购买 nike

我是 java Swing 框架的新手,多年来一直在使用 android。因此,我很自然地将 Android 的布局与 java 的 swing 布局联系起来。

我在android中需要类似FrameLayout的东西。

FrameLayout android 的工作方式如下:

FrameLayout is designed to block out an area on the screen to display a single item. You can add multiple children to a FrameLayout, but all children are pegged to the top left of the screen. Children are drawn in a stack, with the most recently added child on top. The size of the frame layout is the size of its largest child (plus padding), visible or not (if the FrameLayout's parent permits).

是否有任何布局或任何以类似方式工作的实现?

我需要实现以下用户界面。在这方面;有一个Container,其中包含JTabbedPane。我已经部分实现了它,我无法实现选项卡后面的黑条。

enter image description here

任何指示将不胜感激。

最佳答案

我认为你可以使用 FrameLayout 的 jdesktoppane 即时您可以从

获得更多详细信息

http://docs.oracle.com/javase/7/docs/api/javax/swing/JDesktopPane.html

关于java - java Swing中是否有像FrameLayout(Android)这样的概念?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23210865/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com