1. Background settings for a JDesktopPane stackoverflow.comI'm using a self-made DesktopPaneUI for a JDesktopPane, I've written the proper methods for the class, and I'm running into trouble. When I resize the JDesktopPane, the background image doesn't resize ... |
2. Loading an image into a JDesktopPane background coderanch.com |
3. Adding background image to JDesktopPane coderanch.comHow am I going to do that? import java.awt.*; import java.net.URL; import java.util.Arrays; import javax.swing.*; import java.awt.event.*; import javax.swing.ImageIcon; import javax.swing.JMenuBar; public class mainPg extends JFrame { private JLabel statusBar = new JLabel(); private JMenuItem menuHelpAbout = new JMenuItem(); private JMenu menuHelp = new JMenu(); private JMenuItem menuFileExit = new JMenuItem(); private JMenu menuFile = new JMenu(); private JMenu menuSuper = ... |
4. Can JDesktopPane can have a background JPanel? java-forums.orgI'm not getting a feel for what you're trying to do and am going to ask you to clarify things. Are you creating a JPanel that holds a JDesktopPane, possibly in the BorderLayout.CENTER position, and then going to have JButtons, JTextFields and/or other components in other locations of the JPanel, or are you trying to have the all of these components ... |