Originally posted by Ulf Dittmer:
What kind of class is JSVGCanvas? Its documentation should explain how to do this.
it's a canvas
i want to display a svg image, i use batk to use it
if my main class extend a jframe and i use a canvas to display the svg image, that work fine
example
now i have a main class who extends jframe, i use a borderLayout on the center i put a panel, on this panel i put a canvas
/*
public class JonoGui extends JFrame{
public JLabel lblTimer;
public JonoGui(){
super("Jono");
setSize(640,480);
lblTimer = new JLabel("test");
JPanel pane = new JPanel();
pane.setLayout(new BorderLayout());
pane.add("West",lblTimer);
setContentPane(pane);
ImgPane imgPane = new ImgPane();
pane.add("Center", imgPane);
}
[/code]
my ImgPane to display the svg image
1. i need to resize the application to see the image
2. i i resize the application, the image is small don't take all the space
you can see the result at
http://www.laboiteaprog.com/java_problem.png any idea?
thanks