English 中文(简体)
在java的一个小组中恢复雕刻
原标题:Resizing svg in a panel in java

我在小组中有一只手脚,并展示。 问题在于试图改变其规模(vg)。 我尝试了集思广益、集思广益和转播,但没有工作。 我注意到,在试图将其化为多余的时候,它又回到原来的规模。 谁能帮助我?

svg.setPreferredSize(new Dimension(700,700));
svg.setSize(new Dimension(700,700));
this.add(svg, BorderLayout.NORTH);
this.setSize(1000, 1000);

我的班子延伸JPanel。 I m 采用电池。

最佳回答

I added svg to JSVGScrollPane. Now it works fine, resizes well and i have scrollbars when svg is bigger. It took me day and a half of experimenting with JPanels, JScrollPanes, but this is the best solution. [:

问题回答

暂无回答




相关问题
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 ...

热门标签