Background picture n problem on display other JInternal frame

beginer;
this is my code below n i compile it n the picture display correctly, but it seems to hide other internal frame as well, what wrong with my code :(, the problem is been specified between ? symbols
public class InternalFrameDemo extends JFrame implements ActionListener {
JDesktopPane desktop;
public InternalFrameDemo() {
super("InternalFrameDemo");
int inset = 50;
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
setBounds(inset, inset,
screenSize.width - inset*2,
screenSize.height - inset*2);
Toolkit kit = Toolkit.getDefaultToolkit();
Image icon = kit.getImage("ADD.gif");
setIconImage(icon);
//Set up the GUI.
desktop = new JDesktopPane(); //a specialized layered pane
createFrame(); //create first "window"
setContentPane(desktop);
setJMenuBar(createMenuBar());
//Make dragging a little faster but perhaps uglier.
desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);
ImageIcon image = new ImageIcon("abc.jpg");
JLabel background = new JLabel(image);
background.setBounds(0, 0, image.getIconWidth(), image.getIconHeight());
getLayeredPane().add(background, new Integer(Integer.MIN_VALUE) );
JPanel panel = new JPanel();
panel.setOpaque(false);
setContentPane( panel );
protected JMenuBar createMenuBar() {
JMenuBar menuBar = new JMenuBar();
//Set up the menu item
return menuBar;
public void actionPerformed(ActionEvent e) {
else {
quit();
protected void createFrame() {
Books frame = new Books();
frame.setVisible(true);
desktop.add(frame);
try {
frame.setSelected(true);
catch (java.beans.PropertyVetoException e) {}
protected void quit() {
System.exit(0);
public static void main(String[] args) {
try {
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
catch (Exception e) {
JFrame.setDefaultLookAndFeelDecorated(true);
//Create and set up the window.
InternalFrameDemo frame = new InternalFrameDemo();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//Display the window.
frame.setVisible(true);
tanz.

This might be what you are trying to do:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.plaf.*;
public class TestInternalFrame extends JFrame
     ImageIcon icon;
     public TestInternalFrame()
          icon = new ImageIcon("????.jpg");
          JDesktopPane desktop = new JDesktopPane()
             public void paintComponent(Graphics g)
                  Dimension d = getSize();
                  g.drawImage(icon.getImage(), 0, 0, d.width, d.height, null);
          getContentPane().add( desktop );
          final JInternalFrame internal =
               new JInternalFrame( "Internal Frame", true, true, true, true );
          desktop.add( internal );
          internal.setLocation( 50, 50 );
          internal.setSize( 300, 300 );
          internal.setVisible( true );
     public static void main(String args[])
          TestInternalFrame frame = new TestInternalFrame();
          frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
          frame.setSize(400, 400);
          frame.setVisible(true);
}

Similar Messages

  • Regarding Background Picture in ALV

    Hi..
    How to set the background picture in ALV.
    Regards
    Sandeep.

    have loaded the background image to be displayed in ou ALV reports using transaction OAER and passed the object to th call function 'REUSE_ALV_GRID_DISPLAY' in the report program
    also other way is
    Steps for uploading Logo :-:
    1.  Goto the transaction OAER
    2.  Enter the class name as 'PICTURES'
    3.  Enter the class type as 'OT'
    4.  Enter the object key as the name of the logo you wish to give
    5.  Execute
    6.  Then in the new screen select Standard doc. types in bottom window
         Click on the Screen icon 
         Now, it will ask for the file path where you have to upload the logo
    7.  Now you can use this logo in REUSE_ALV_COMMENTARY_WRITE
    or 
    Import Logo and Background Picture for Reporting
    In this step, you can import a customer-specific logo and a background picture into the R/3 System. These will be displayed in the header area of reports in HR Funds and Position Management.
    From the SPRO: 
    HR Funds and Position Management --> Dialog Control --> Customize Reporting Interface --> Import Logo and Background Picture for Reporting.
    Activities
    1. Enter the Name of your logo/background picture as an object key in the initial screen.
    2. Make sure that the class name is PICTURES, and the class type is OT.
    3. Choose Execute.
    4. Double-click the document type Picture on the Create tab page.  A dialog box will appear in which you can enter the path in which the logo/background picture can be found.
    5. Enter the path and choose Open.  The logo will be uploaded into the current R/3 System. If the logo/background picture is to be transported into other systems as well, choose Transport.
    6. Return to the initial screen and repeat the procedure after having entered the Name of your background picture as an object key.
    Please note that the logo/background picture can only be displayed in ALV-based reports with an HTML header. Manually programmed reports such as business distribution plans are not based on the ALV.
    If you have selected several initial objects, ALV-based reports in HR Funds and Position Management will automatically use a hiearchical-sequential display. A logo is not displayed here either. Note also that the logo cannot be printed (see print preview in program).
    Make sure that the logo does not exceed a height of 100 pixels because it would mean that the header of the report will be scrollable.

  • Saving contents of jinternal frame

    Hi, I seem to have a problem saving files from jinternal frames. I created two files, the main GUI which holds the jdesktop pane and the other file (Documento) extends jinternalframe. I want to be able to save the current (active) jinternal frame but I have no idea how to do it. can anyone help me?
    import javax.swing.JInternalFrame;
    import javax.swing.JDesktopPane;
    import javax.swing.JMenu;
    import javax.swing.JMenuItem;
    import javax.swing.JMenuBar;
    import javax.swing.JFrame;
    import javax.swing.KeyStroke;
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.Graphics.*;
    import javax.swing.JOptionPane;
    import java.io.*;
    import java.util.*;
    *This is the main GUI of the program.
    public class mainGUI extends JFrame
                                   implements ActionListener,
                                    KeyListener{
        JDesktopPane desktop;
        Documento frame;
         private Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
         private JPanel toolbar, editarea, resultarea, blankPanel;
         private JMenu file, edit, project;
         private JMenuItem f_open, f_new, f_save, f_saveas, f_exit, e_select, e_copy, e_paste, p_compile;
         private JTextArea resultfield, editfield,editArea, tstr;
         private JButton bcompile;
         private JFileChooser fc = new JFileChooser();
         private String filepath;
         private ImageIcon bugicon;
         private static int docNum = 0;
         private boolean b_openfile;
         File filename;
        public mainGUI() {
            super("DGJ Program Scanner");
            setSize(800,600);
              setLocation((screen.width-800)/2, (screen.height-600)/2);
            /*Creates the workspace*/
            desktop = new JDesktopPane();
            setContentPane(desktop);
            setJMenuBar(createMenuBar());
            /*Make dragging a little faster*/
            desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);
          *This function creates the menu bar
        protected JMenuBar createMenuBar() {
             /*Initializes/instantiates the menu bar and its items*/
              file = new JMenu("File");
              edit = new JMenu("Edit");
              project = new JMenu("Project");
              f_new = new JMenuItem("Create new file");
              f_open = new JMenuItem("Open file...");
              f_save = new JMenuItem("Save current file");
              f_saveas = new JMenuItem("Save As...");
              f_exit = new JMenuItem("Exit program");
              e_select = new JMenuItem("Select All");
              e_copy = new JMenuItem("Copy selected");
              e_paste = new JMenuItem("Paste selected");
              p_compile = new JMenuItem("Scan current file for errors");
              /*Adds listeners to the menu items*/
              f_open.setActionCommand("f_open");
              f_open.addActionListener(this);
              f_save.setActionCommand("f_save");
              f_save.addActionListener(this);
              f_saveas.addActionListener(this);
              f_saveas.setActionCommand("f_saveas");
              f_new.setActionCommand("f_new");
              f_new.addActionListener(this);
              f_exit.setActionCommand("f_exit");
              f_exit.addActionListener(this);
              e_select.setActionCommand("e_select");
              e_select.addActionListener(this);
              e_paste.setActionCommand("e_paste");
              e_paste.addActionListener(this);     
              e_copy.setActionCommand("e_copy");
              e_copy.addActionListener(this);               
              /*Creates the icon of the bug*/
              bugicon = new ImageIcon("images/ladybug.gif");
              /*Creates the menu bar*/
              JMenuBar menu = new JMenuBar();
              menu.add(file);
                   file.add(f_new);
                   file.add(f_open);
                   file.add(f_save);
                   file.add(f_saveas);
                   file.add(f_exit);
              menu.add(edit);
                   edit.add(e_select);
                   edit.add(e_copy);
                   edit.add(e_paste);
              menu.add(project);
                   project.add(p_compile);
              /*Disables the save current file menu...(when program starts, no file is open yet)*/
              f_save.setEnabled(false);
              f_saveas.setEnabled(false);
            return menu;
        //React to menu selections.
        public void actionPerformed(ActionEvent e) {
            if ("f_new".equals(e.getActionCommand()))
            { //new
                createFrame(null);
                f_saveas.setEnabled(true);
            else if("f_open".equals(e.getActionCommand()))
            {//open documento
                   fc.setFileFilter(new SpanFilter());
                  int retval = fc.showOpenDialog(mainGUI.this);
                   tstr = new JTextArea();
                   /*This checks if the user has chosen a file*/
                if (retval == JFileChooser.APPROVE_OPTION) {
                    filename = fc.getSelectedFile();
                        filepath = filename.getPath();            
                        openFile(filename, new Point(30,30));       
            else if("f_save".equals(e.getActionCommand()))
                 try {
                      BufferedWriter out = new BufferedWriter(new FileWriter(filepath));
                      String str;
                      str = editArea.getText();
                      editArea.setText("");  
                      int length = str.length();
                      out.write(str, 0, length);
                      out.close();
                       } catch (Exception ex) {}
                       JInternalFrame fr = new JInternalFrame();
                       fr = desktop.getSelectedFrame();
                       Point p = fr.getLocation();
                        fr.dispose();    
                       openFile(filename, p);
            else if("f_saveas".equals(e.getActionCommand()))
                 fc.setFileFilter(new SpanFilter());
                  int retval = fc.showSaveDialog(mainGUI.this);
                if (retval == JFileChooser.APPROVE_OPTION) {
                    filename = fc.getSelectedFile();
                        filepath = filename.getPath();
                        if(!(filepath.contains(".dgj")))
                             filepath+=".dgj";
                      try {
                           BufferedWriter out = new BufferedWriter(new FileWriter(filepath));
                                String str;
                           str = editArea.getText();
                           int length = str.length();
                           out.write(str, 0, length);
                           out.close();
                       } catch (Exception ex) {}
                       Point p = frame.getLocation();
                        frame.dispose();
                   //     editArea.setText("");     
                       openFile(filename, p);
            else if("e_select".equals(e.getActionCommand()))
                 editArea.selectAll();
            else if("e_copy".equals(e.getActionCommand()))
                   editArea.copy();
            else if("e_paste".equals(e.getActionCommand()))
                 editArea.paste();
            else if("f_exit".equals(e.getActionCommand()))
            { //quit
                quit();
        public void openFile(File filename, Point p)
                        /*Reads the file*/
                        try {
                           BufferedReader in = new BufferedReader(new FileReader(filepath));
                             String str;
                             /*empties the textarea*/
                             tstr.setText("");
                             str = in.readLine();
                             /*Copy each line of the file into the temporary textarea*/
                           do{  
                          tstr.append(str);
                          str = in.readLine();
                          /* the "\n" is for the line to appear in the next line in the textarea,
                           * the "\r" is for windows system, wherein "\r" is required for the text
                           * to appear in beginning of the first line*/
                          if(str!=null)
                               tstr.append("\r\n");
                           }while (str != null);
                             /*Opens the new frame*/
                           createFrame(filename, filename.getName(), tstr.getText(), p);
                           in.close();
                       } catch (Exception ex){}
                      b_openfile = true;
                      f_save.setEnabled(true); 
                      f_saveas.setEnabled(true);   
         *Create a new internal frame.
        protected void createFrame(File f) {
             frame = new Documento(f);
         /*     frame = new JInternalFrame("Document "+(++docNum),
                  true, //resizable
                  true, //closable
                  true, //maximizable
                  true);
            docNum++;
              frame.setSize(600,400);
              frame.setLocation(20*(docNum%10), 20*(docNum%10));       
             editArea = new JTextArea();
              JScrollPane scroll = new JScrollPane(editArea);     
              editArea.addKeyListener(this);
              editArea.append("");
              frame.add(scroll);
            frame.setVisible(true); //necessary as of 1.3
            desktop.add(frame);
            try {
                frame.setSelected(true);
            } catch (java.beans.PropertyVetoException e) {}
          *Overwrite an existing internal frame for an open file
        protected void createFrame(File f, String title, String text, Point P) {
             frame = new Documento(title, f, P);
              frame.setSize(600,400);
              frame.setLocation(P); 
             editArea = new JTextArea();
              JScrollPane scroll = new JScrollPane(editArea);     
              editArea.setText("");
              editArea.addKeyListener(this);
              editArea.append(text);
              frame.add(scroll);
            frame.setVisible(true); //necessary as of 1.3
            desktop.add(frame);
            try {
                frame.setSelected(true);
            } catch (java.beans.PropertyVetoException e) {}
        //Quit the application.
        protected void quit() {
            System.exit(0);
         * Create the GUI and show it.  For thread safety,
         * this method should be invoked from the
         * event-dispatching thread.
        private static void createAndShowGUI() {
            //Make sure we have nice window decorations.
            //JFrame.setDefaultLookAndFeelDecorated(true);
            //Create and set up the window.
            mainGUI frame = new mainGUI();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Display the window.
            frame.setVisible(true);
        public void keyTyped(KeyEvent k){}
        public void keyPressed(KeyEvent k)
             if(k.getKeyCode()==10)
                  editArea.append("\r");           
        public void keyReleased(KeyEvent k){}
        public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }here's the one that extends jinternalframe
    import javax.swing.JInternalFrame;
    import javax.swing.plaf.InternalFrameUI;
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.io.*;
    import java.util.*;
    /* Used by mainGUI.java */
    public class Documento extends JInternalFrame {
        static final int xOffset = 30, yOffset = 30;
         static JTextArea editArea;
         static int docNum = 0;
         static File file;
          *The constructer for a new documento
        public Documento(File file) {
            super("Document "+(++docNum),
                  true, //resizable
                  true, //closable
                  true, //maximizable
                  true);//iconifiable
            docNum++;
              this.file = file;
              setSize(600,400);
              setLocation(xOffset*(docNum%10), yOffset*(docNum%10));
    //        setUI(new InternalFrameUI());
         *The constructor for an existing documento
        public Documento(String title, File file, Point p) {
            super(title,
                  true, //resizable
                  true, //closable
                  true, //maximizable
                  true);//iconifiable
              this.file = file;             
              setSize(600,400);          
              setLocation(p);
    //        setUI(new InternalFrameUI());
        public int getNum()
             return docNum;
        public File getPath()
             return file;
    }I know it's pretty lengthy...it's probably all messed up since I'm lost :p
    Thanks if you could help me!

    I would be glad to help, but first I need a clarification. If I understand properly, you have two Java classes that you have created: the "main GUI" (which is most likely a JFrame extension in which the constructor adds a JDesktopPane to the content pane) and "Documento" (which you say is a JInternalFrame extension).
    My question is this: what do you mean by "save the current JInternalFrame"? Do you want to record its position, location, and identity? Do you want to save its contents?
    Thanks. Good luck. ;)

  • Edit will not display content only background picture

    I have five pages linked - three work fine when I go to edit. the other two only display the background picture (two different pictures) but no content. I have tried all I know to fix it. Any ideas out there?  contribute CS4 Ver. 5

    Hi,
         Can you provide links to the web pages with which you are having problem?

  • I am trying to connect my mac book pro to the tv via a mini display port and a hdmi cable, the only picture that is on the tv screen is the background picture on my computer, any suggestions?

    I am trying to connect my mac book pro to the tv via a mini displayport to a hdmi cable, the only picture on the tv screen is the background picture of my mbp, does anyone know what I need to connect to my samsung tv ?

    Hi there. I also bought an iWires mini Display port to HDMI cable and have an LG LED/LCD TV. I plugged it in to my MB Pro and followed the very small writing that came in the package and got both audio and video going. You need to change the audio settings from within System Preferences on your Mac to select your TV as the audio output.
    My concern is the data latency - do you experience a delay between moving your mouse on the MBPro and the TV displaying the movement? It is only a fraction of a second, but certainly enough to be annoying, especially in a cable as expensive as the iWire.

  • Problem with displaying picture.

    I use PS-CC and LR5.on a HP i7 computer and windows 7.Camera D-800, pictures in raw.
    I usually import pictures in nef  in LR5,. After  some corrections, I export my pictures to DNG format. I sometimes do a little bit of work in camera raw then go into Photoshop.
    My problem: When in photoshop, I get a grainy version of my photo which wasn't the situation in LR5 or Camera raw, Hard to work with. The grains will disappear when I enlarge the picture but then I have to enlarge it so much that I only see or can work with only part of my picture. The problem does not appear in CS6.
    Hope somebody can help me.
    Thanks
    Jacques Legault

    I should clarify this.. When I import photos into LR5, I always use copy as
    DNG. I know that NEF and DNG are the same for photoshop and I always shoot
    in raw.
    One thing I do not know is how to do a screen shot. I will get back tro you
    on that. When I say grain, or noise if you like, I mean that, if i relate
    to films, my picture in LR5  would be at ISO 100 and my screen shot in
    photoshop would look like it was boosted to 1200 or worse.
    See you soon I hope with a screen shot.
    2014-06-14 13:43 GMT-04:00 twenty_one <[email protected]>:
        Problem with displaying picture.  created by twenty_one
    <https://forums.adobe.com/people/twenty_one> in *Photoshop General
    Discussion* - View the full discussion
    <https://forums.adobe.com/message/6458682#6458682>

  • When using FireFox I often cannot view pictures in Hotmail, but have no problem when using other browsers

    When using FireFox I often cannot view pictures in Hotmail emails, but I have no problem when using other browsers

    Do you also have this issue if you temporarily switch to Private Browsing mode?
    *https://support.mozilla.org/kb/Private+Browsing
    *Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    *Select: [X] "Always use private browsing mode"
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    See also:
    *https://support.mozilla.org/kb/fix-login-issues-on-websites-requrie-passwords

  • Problem to display at the shell a smile or other sign

    My Problem is, I write with c++ a programm. I would like draw on display other sign. I get the sign ? for the sign smile.
    I can not use the  extended ascii tabelle on c++.
    thank for answer.

    With "shell", do you mean it's a Terminal program?
    The Terminal can display "extended ASCII" extremely well (*) ( the proper term is "any Unicode string"), but it only accepts UTF8 encoded strings. So to display a smiley character (U+263A), you would send the string "\xE2\x98\xBA" to the screen.
    (*) The Terminal is smart enough to find an appropriate font for just about any character code you want to display, it's not limited to just using the character repertoire of your default shell font.

  • I need help please!  Can pictures get on your icloud other ways?  Can something be put on there by someone other than yourself, liked public wifi or hacked?  Got a big problem h some **** on an iPod and I am to knowledgeble about the ipod...thanks

    .         Can pictures get on your icloud other ways?  Can something be put on there by someone other than yourself, liked public wifi or hacked?  Got a big problem with some **** on an iPod and I am to knowledgeble about the ipod...thanks

    You're not confusing this with a shared Photo Stream...?
    Because the short answer is no, photos don't appear unless they were put there by someone with your Apple ID credentials. To rule out that possibility, change your Apple ID password by carefully following all these instructions:
    iCloud: Change your iCloud account password
    If you decide to change your password, and you also want to change your Apple ID, I recommend you do not concurrently change your Apple ID until sufficient time has passed and you are confident the password change has been effected on all your iOS devices. 24 hours ought to be more than enough.
    It is not necessary to change your Apple ID unless it is an email address you no longer wish to use.

  • Problem with displaying any picture at all.

    Hi there, one of my iMacs has a problem with displaying video.
    When I turn the computer on the screen shows a yellow-orange hue in the centre, and it's getting wider across the screen and bright, eventually it turns to a white screen. Now I know for a fact it's nothing to do with the logic board! I can control the computer with remote desktop and dim the screen or make it brighter. My question is, is it the cabling that is faulty or something else?
    If it's the cabling, how can I open the chrome neck and change it?
    Thanks you

    Did your testing include utilizing a second display and adapter to see
    how a mirrored output of the video would appear; to be sure this item
    is isolated to the wiring from the circuit boards to the attached LCD?
    There are components within the border of the iMac G4's display which
    may affect the image as they wear out and/or fail. The inverter, is one
    item that is in the panel along with the backlight and liquid crystal layer.
    Removing or replacing the wire harness between these components,
    the computer base and LCD panel, is a bit of work. This topic has been
    addressed in these forums at one time or another; and a few owners
    who contribute here have experience taking these apart. In the past,
    getting a known-good display with chrome arm and harness, from an-
    other iMac (perhaps one with logic board failure) and combine two,
    was an answer when the complete display & arm were known good;
    as this saved a fair amount of work on the upper end. Still, taking the
    lower orb shape apart is a significant task; to have it work right again.
    The cabling could be faulty; the inverter could be. And there may be
    yet another associated component failing which produces symptoms.
    Taking apart the chrome arm may not be such a good idea; I've seen
    the expanded view of one taken apart by a metal cutting saw, and it
    has a big spring inside, and a bit of tension. There also are friction pad
    parts inside that loose their ability to hold up the panel, so some owners
    sought to replace those to varying degrees of trouble.
    There should be a few step-by-step instructions. One of the contributors
    to the iMac G4 forums here was Mr Totes; one of his web pages had a
    few images of take-aparts he'd done. Other sites had basic stuff, such
    as replacing optical drive and hard disk drives, thermal paste, RAM, etc.
    If you were able to see the correct system images from a second display
    via the VGA adapter cable, in mirror mode, the attached unit certainly is
    suspect; and the computer is probably repairable. Otherwise, there is a
    video component on the logic board not considered a separate part; and
    if that fails, the usual fix is to get a reman logic board or another iMac.
    Have fun, whichever way it goes.
    Good luck & happy computing!

  • IPad mail sending one page PDF documet as a picture. This picture is not viewing for other people who email open. this problem is from iBooks and from Pages.  (if I sending one page document from Pages from iPhone is ok - PDF)

    iPad mail sending one page PDF documet as a picture. This picture is not viewing for other people who email open. this problem is from iBooks and from Pages.
    (if I sending one page document from Pages from iPhone is ok - PDF. If I sending one page document from iPad is mistake. )

    Turn off rich text in your email signature. Delete images too, if any.

  • Background Pictures in Disc Images

    I've been trying to create a disc image using Disc Utility that displays a background image when you open it, similar to the kind used by many shareware apps distributed these days (ie. a picture that says "To install, drag this folder to your hard disk").
    The problem is that I can't seem to get the background picture to "stick", as it were. I've set up a folder with a bg pic and dragged it onto Disc Utility to create a compressed disc image, but the background disappears when I open the finished product. I've tried altering the disc image once it's finished instead, but as soon as I eject it and re-load the image, it's lost its background picture.
    I sort of managed to get this to work by creating an uncompressed read/write disc image with Disc Utility instead and then altering the contents with my background picture, but when I transfer it to another computer my settings have vanished. This isn't really an ideal solution anyway, though, as I would rather used a compressed image for internet distribution.
    I've tried doing a search on this forum for similar queries, but most of them seem to concentrate on how to make the background picture a hidden file, which I'm not terribly concerned about. That, and I'm not all that keen on too much fiddling about in the Terminal...
    So, can anyone help me here? How do those shareware developers make their custom disc images? Any help would be greatly appreciated. Thanks in advance!
    - Greg
    iMac G5 20 ALS   Mac OS X (10.4.7)  

    Sorry, wrong forum!

  • Picture indicator problem in LabVIEW 8.5

    I'm reading a BMP image (size 3216x2136).  Trying to display it to a picture indicator ends up displaying a white (empty?) picture.  If I crop the image small enough (i.e., 3216x1500), it will display to a picture indicator okay.  However, if I try to convert the cropped 2nd picture indicator using "Picture to Pixmap", I end up with an image that contains only the background color.  If I reduce the cropping to even smaller (3216x1000), the Picture to Pixmap works fine.  Memory problems?  Or a problem in the picture indicator?  See attached VI and test image.
    Attachments:
    picture indicator test.vi ‏37 KB
    image3216x2136.zip ‏20 KB

    mvickerman wrote:
    Weird -- I'm not seeing the problem anymore.  Did 2 things: 
    1 - Changed the entry in my boot.ini file to remove the /3G flag (which supposedly increases the amount of memory LabVIEW can use?)
    The LabVIEW Help actually explains the /3G flag. A copy of the page can be found here:
    http://zone.ni.com/reference/en-XX/help/371361D-01/lvhowto/enable_lrg_ad_aware
    Note that this only applies to 8.5 and above.

  • Pictures on top of each other

    Hi all!
    I have a question of how I place several images on top of each other. I have an application and I place a background image in it. Then I want to have images "on top" of the background imgage. All images is in the format .png, which can be transparent.
    My problem is that when I add an transparent image, I dont see the background image through it. Instead I get the default background color (something grey/blue).
    Can somebody help me with:
    1) How do I put the background picture in my JFrame (I'm not sure I'm doing this correctly)
    2) How do I display .png images in the JFrame so that I see the background through it?
    Regards,
    Andreas

    I wrote example for AWT because in SWING it can be done very easy. Run this code, it runs fine. Use only your image files.
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.Color;
    import java.awt.image.BufferedImage;
    import java.awt.*;
    import java.awt.event.*;
    public class ImageTest extends Canvas implements WindowListener {
    public static void main(String[] args) {
    Frame frame = new Frame("Image testing");
    ImageTest instance = new ImageTest();
    frame.add(instance);
    frame.addWindowListener(instance);
    frame.pack();
    frame.setVisible(true);
    public Dimension getPreferredSize() {
    return new Dimension(256, 256);
    BufferedImage backgroundImage;
    BufferedImage alphaImage;
    void initImage() {
    Image img = getToolkit().createImage("D:\\temp\\JavaTests\\viewcode.jpg");
    Image bkImage = getToolkit().createImage("D:\\temp\\JavaTests\\SolarEclipse.jpg");
    MediaTracker Mt = new MediaTracker(this);
    Mt.addImage(img, 0);
    Mt.addImage(bkImage, 1);
    try{
    Mt.waitForAll();
    }catch(Exception e){};
    BufferedImage bi = new BufferedImage(img.getWidth(this), img.getHeight(this), BufferedImage.TYPE_4BYTE_ABGR);
    alphaImage = new BufferedImage(bkImage.getWidth(this), bkImage.getHeight(this), BufferedImage.TYPE_4BYTE_ABGR);
    Graphics gr = bi.getGraphics();
    gr.drawImage(img, 0, 0, this);
    backgroundImage = (BufferedImage)bi;
    gr = alphaImage.getGraphics();
    gr.drawImage(bkImage, 0, 0, bkImage.getWidth(this)/2, bkImage.getHeight(this)/2, bkImage.getWidth(this)/2, bkImage.getHeight(this)/2, bkImage.getWidth(this), bkImage.getHeight(this), this);
    Color bl = new Color(0, 0, 0);
    for (int x=0; x<bkImage.getWidth(this); x++)
    for (int y=0; y<alphaImage.getHeight(this); y++) {
    Color c = new Color(alphaImage.getRGB(x,y));
    int r = c.getRed();//x*4;
    int g = c.getGreen();//y*4;
    int b = c.getBlue();//255 - (x+y)*2;//Math.abs(y*8-255);
    // Make transparent colors, which look like black
    int a = (r == b && g == b && r < 100 && g < 100 && b < 100)?0:255;
    int vv = (a<<24) | (r<<16) | (g<<8) | b;
    alphaImage.setRGB(x, y, vv);
    public void paint(Graphics gfx) {
    if (backgroundImage == null)
    initImage();
    gfx.drawImage(backgroundImage, 0, 0, this);
    int i = 0;
    int delta = 100;
    gfx.drawImage(alphaImage, i, i, this);
    gfx.drawImage(alphaImage, i + delta, i + delta, this);
    gfx.drawImage(alphaImage, i + delta*2, i + delta*2, this);
    gfx.drawImage(alphaImage, i + delta*3, i + delta*3, this);
    gfx.drawImage(alphaImage, i + delta*4, i + delta*4, this);
    gfx.drawImage(alphaImage, i + delta*5, i + delta*5, this);
    void exitForm(java.awt.event.WindowEvent evt) {
    System.exit(0);
    public void windowActivated(java.awt.event.WindowEvent windowEvent) {
    public void windowClosed(java.awt.event.WindowEvent windowEvent) {
    public void windowClosing(java.awt.event.WindowEvent windowEvent) {
    System.exit(0);
    public void windowDeactivated(java.awt.event.WindowEvent windowEvent) {
    public void windowDeiconified(java.awt.event.WindowEvent windowEvent) {
    public void windowIconified(java.awt.event.WindowEvent windowEvent) {
    public void windowOpened(java.awt.event.WindowEvent windowEvent) {

  • Can't change my background picture

    I'd just like to say thank you for your help if you ever do check this out.
    My friends, as a prank, changed my background picture to some random photos I had on my Macbook. However, I've been unable as of yet to actually revert it back. Though they only changed one background, none of my desktops can have their background changed. Also, none of the methods I know actually work - going to System Preferences and manually changing it from there doesn't work, nor does simply clicking a photo and choosing the option to 'set as background picture'.
    Many thanks.

    You can't go to System Preferences>Desktop&Screen Savers and change the display? Try it and see. I've never seen that problem.
    Clinton

Maybe you are looking for

  • Problem with multiple downloads of photoshop cs5!! help!!

    Hi, I have adobe photoshop cs5 which i download from the adobe website. i downloaded it on my laptop, which has since stopped working properly. so i deactivated it permanently like a website said i should. i already have creative cloud on my new lapt

  • Component qty.in process order

    Hi, while creating process order, my requirement is that there shouldn't be manual change in its component quantity. System should not allow changes in any of the material quantity while creating a process order of a product. How to do this ? Regards

  • How i can run java bean

    i want to run java bean at bean area. i write a simple bean and what i will write on oracle forms builder bean area property palette implementation class. i make bean a jar file and i put it same folder with form file. thanks for your helps

  • Desktop won't stop changing!

    My brand new iMac is cycling through the standard mac background pictures on the desktop and i can't get it to stop! Its doing it about every five seconds, and if you go into the desktop panel in system settings, the cycle desktop option is not selec

  • How to fix Frame resizng

    Hello, I have a JFrame, and I am trying to make sure that when the Frame is resized, it's contents like TextArea, Button, Label are not streched but keep their distances proportinately. I am using BorderLayout as a layout manager and so the contents