English 中文(简体)
添加绘画区,使之失效
原标题:Adding drawing area to null layout GUI

一段时间以来,我一直在研究全球倡议,我必须用目录图表来说明我的成果,问题是,我需要设立一个图表,把全球倡议的成果放在首位。

这样做的最佳方式是什么?

是否在继续使用无端布局的情况下更容易去做?

增 编

最佳回答

能够方便地利用 rel=“nofollow noreferer”>。 (我将使用GBL的少数任务之一)。 见https://stackoverflow.com/questions/5621338/about-swing-and-jtable/5630271#5630271>关于详细内容的GUI。

  1. OK, I ll admit, the short answer is:

添加一个部分,作为<代码>GridBagLayout中唯一未加限制和安放的部分;该部分将集中处理。 将使用GBL的小组纳入,并完成这项工作。


For a closer look at centering components using different layouts, see this example.

问题回答

try to put everything into a JPanel and set a layout for that (i.e. a BoxLayout). then you add your diagram JPanel to the main JPanel.

除了布局建议外,你还可以在以下系列中找到一些想法:>scatteradasget/a>, 依靠





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签