|
|
| Does anyone know how to add an Image to a JFrame |
| You can only add Components to Containers. |
| I tried to solve the problem with an ImageIcon but i can not resize the ImageIcon |
| New JLabel(new ImageIcon(someImage.getScaledInstance(...))); |
| Is someImage an Instance of Image (new Image("foo.gif)) And How can i make a jwindow transparent? |
| You can fake transparency with screenshot taking, but it sucks ass, check out java.awt.Robot if you insist on it |
| BigDaddy, JComponent has setOpaque(boolean), but you may be asking a slightly different question. |
| And JWindow is not a JComponent and doesnt have setOpaque |
| Can i cast a jwindow to a a jcomponent |
| BigDaddy, no He means a special type of casting Typecasting |
| Thank you guys |