I have a problem of interoperability between JAVA components of AWT and Swing: I included an JSplitPane (which splits vertically) in a JFrame and I put inside a AWT Canvas and a JTextArea, the first above and below the second. The problem is that the Canvas is refusing to shrink: the user is unable to raise the splitter but only to lower it. I can zoom around the JFrame as this would cause a shrinkage of the Canvas. Of course if I post a JPanel instead of Canvas everything worked properly. Does anyone know another way to correct this?
One more thing: under construction of GUI Canvas.setPreferredSize, I have called for making one's calling pack () performed on the final JFrame bring me to the Canvas to a minimum. In other words I wish that when the application is the Canvas had a certain size, but also that the user is able to raise the splitter and to shrink the JFrame.