Add Image to a Conformation Dialog box button

Hi All,
      Ho to add Image to a Conformation Dialog box button?????
2. How to put <b>X</b> (to cancel) at right upper corner of dialog box.
null

Hi ,
It would not be possible to add images in it. Use dialog boxes instead.
Create a view ... add an image UI element ..use imgSource as ~sapicons/image name or paste the image in src/mimes/components/ur comp name and give that for source.
You can create linktoaction.. and on its image property add an image for X and put that in one corner of the dialog box. and execute cancel action. when its clicked..
Regards
Bharathwaj

Similar Messages

  • How to display image using from open dialog box?

    I've developed a program that can display image by named the file that I want to display in my program.
    But how can I display an image from an Open Dialog Box?
    I attch here with my program.
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.filechooser.*;
    public class SuDisplayTool6 extends JFrame implements InternalFrameListener,ActionListener
    JTextArea display1;
    JDesktopPane desktop;
    JInternalFrame displayWindow;
    JInternalFrame listenedToWindow;
    static final String SHOW = "Show Image";
    static final int desktopWidth = 800;
    static final int desktopHeight = 600;
    private static final int kControlX = 88 ;
    private DrawingPanel panel;
    public SuDisplayTool6(String title)
    super("Internal Frame");
    desktop = new JDesktopPane();
    desktop.putClientProperty("JDesktopPane.dragMode","outline");
    desktop.setPreferredSize(new Dimension(desktopWidth, desktopHeight));
    setContentPane(desktop);
    addMenu();
    createDisplayWindow();
    desktop.add(displayWindow);
    Dimension displaySize = displayWindow.getSize();
    displayWindow.setSize(desktopWidth, displaySize.height);
    protected void createDisplayWindow()
    JButton b1 = new JButton("Show Image");
    b1.setActionCommand(SHOW);
    b1.addActionListener(this);
    display1 = new JTextArea(3,30);
    display1.setEditable(false);
    JScrollPane textScroller = new JScrollPane(display1);
    textScroller.setPreferredSize(new Dimension(200,75));
    textScroller.setMinimumSize(new Dimension(10,10));
    displayWindow = new JInternalFrame("Header Graph",true,false,true,true);
    JPanel contentPane = new JPanel();
    contentPane.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
    contentPane.setLayout(new BoxLayout(contentPane, BoxLayout.Y_AXIS));
    contentPane.add(Box.createRigidArea(new Dimension(0,5)));
    contentPane.add(textScroller);
    b1.setAlignmentX(CENTER_ALIGNMENT);
    contentPane.add(b1);
    displayWindow.setContentPane(contentPane);
    displayWindow.pack();
    displayWindow.show();
    protected void createListenedToWindow()
    listenedToWindow = new JInternalFrame("Image",true,true,true,true);
    listenedToWindow.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
    listenedToWindow.setSize(800,450);
    panel = new DrawingPanel();
    listenedToWindow.setContentPane(panel);
    public void internalFrameClosing(InternalFrameEvent e)
    public void internalFrameClosed(InternalFrameEvent e)
    listenedToWindow = null;
    public void internalFrameOpened(InternalFrameEvent e)
    public void internalFrameIconified(InternalFrameEvent e)
    public void internalFrameDeiconified(InternalFrameEvent e)
    public void internalFrameActivated(InternalFrameEvent e)
    public void internalFrameDeactivated(InternalFrameEvent e)
    public void actionPerformed(ActionEvent e)
    if (e.getActionCommand().equals(SHOW))
    if (listenedToWindow == null)
    createListenedToWindow();
    listenedToWindow.addInternalFrameListener(this);
    desktop.add(listenedToWindow);
    listenedToWindow.setLocation(desktopWidth/2 - listenedToWindow.getWidth()/2,
    desktopHeight - listenedToWindow.getHeight());
    listenedToWindow.show();
    else
    public static void main(String[] args)
    JFrame frame = new SuDisplayTool6("Su Display Tool");
    frame.addWindowListener(new WindowAdapter()
    public void windowClosing(WindowEvent e)
    System.exit(0);
    frame.pack();
    frame.setVisible(true);
    private void addMenu()
    JMenuBar menuBar;
    JMenu menu, submenu;
    JMenuItem menuItem;
    final JFileChooser fc = new JFileChooser();
    fc.addChoosableFileFilter(new ImageFilter());
    menuBar = new JMenuBar();
    setJMenuBar(menuBar);
    menu = new JMenu("File");
    menuBar.add(menu);
    menuItem = new JMenuItem("Open...");
    menu.add(menuItem).addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
    int returnVal = fc.showOpenDialog(SuDisplayTool6.this);
    menuItem = new JMenuItem("Save");
    menu.add(menuItem);
    menuItem = new JMenuItem("Save As...");
    menu.add(menuItem).addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
    int returnVal = fc.showSaveDialog(SuDisplayTool6.this);
    menuItem = new JMenuItem("Close");
    menu.add(menuItem);
    menu.addSeparator();
    menuItem = new JMenuItem("Exit");
    menu.add(menuItem).addActionListener(new WindowHandler());
    menu = new JMenu("Edit");
    menuBar.add(menu);
    menu = new JMenu("View");
    menuBar.add(menu);
    menuItem = new JMenuItem("Zoom In");
    menu.add(menuItem);
    menuItem = new JMenuItem("Zoom Out");
    menu.add(menuItem);
    menu.addSeparator();
    submenu = new JMenu("Header");
    menuItem = new JMenuItem("CDPX");
    submenu.add(menuItem);
    menuItem = new JMenuItem("SX");
    submenu.add(menuItem);
    menuItem = new JMenuItem("CX");
    submenu.add(menuItem);
    menu.add(submenu);
    menu = new JMenu("Help");
    menuBar.add(menu);
    menuItem = new JMenuItem("About");
    menu.add(menuItem).addActionListener(new WindowHandler());
    private class WindowHandler extends WindowAdapter implements ActionListener
    public void windowClosing(WindowEvent e)
    System.exit(0);
    public void actionPerformed(ActionEvent e)
    if(e.getActionCommand().equalsIgnoreCase("exit"))
    System.exit(0);
    else if(e.getActionCommand().equalsIgnoreCase("About"))
    JOptionPane.showMessageDialog(null,"This program is written by Nenny Ruthfalydia.","About",JOptionPane.PLAIN_MESSAGE);
    class DrawingPanel extends Panel
    final ImageIcon imageIcon = new ImageIcon("image8.jpg");
    Image image = imageIcon.getImage();
    public void paint (Graphics g)
    g.drawImage(image, 10, 10, this);

    so much wrong with this post...
    a) use the code tags to format the code. Now it is an unreadable mess
    b) scriptlets in your JSP. I don't even want to look at that mess. Learn how to combine servlets and JSPs to create clean, readable and maintainable code in which view logic and business logic are separated. The rule: no java code in your JSP, only tags and EL expressions (learn about JSTL).
    So you get a blank screen. When you do "view source" in your browser, do you see anything there? If nothing, check if you are behind a proxy server. The solution to a post of not too long ago was that the blank screen was being caused by faulty proxy server settings (the user figured it out himself, I don't know what was done to solve it).
    If all this fails you will have to do some debugging magic using your favorite IDE. It will probably be something stupid you are overlooking in the code. It is annoying, but debugging code that does not work is a big part of your job. Better get good at it.

  • How to change gtk theme dialog box button appearance when using tab?

    Hi,
    I'm using candido as my gtk theme and have noticed that when a dialog box pops up (Yes / No), it is extremely difficult to tell which option is highlighted. How do I change this appearance? I searched through the gtkrc and even used gimp to manipulate the images used via trial and error to see if I found one that worked. Can someone familiar with gtk themes tell me which gtkrc or image to alter to affect this appearance?
    I use tab to select my option a ton and hate not being able to tell what I'm looking at.
    For reference,
    - here is the current look (can you tell which one is highlighted? It's "Cancel" -- just slightly bigger or a fine line around it) LINK
    - here is the gtkrc if that helps? LINK
    For one more point of clarification, I'm not talking about the button appearance on mouseover. I have identified that the button-prelight.png file changes that. I specifically am talking purely about a dialog popping up and then using the tab key alone to highlight through the options. I really like this theme, but this one thing drives me crazy. This appearance changes when I select different themes with lxappearance, so I've narrowed it down to being a gtk-theme issue, not my openbox theme or icon set.
    Many thanks!
    Last edited by jwhendy (2011-02-02 18:11:10)

    HI,
    Debug the program after you press the CANCEL button , you will get where the conrol is flowing , And instead of using
    Leave to screen '910'          use               Leave to screen 0.
    Regards,
    Madhukar Shetty

  • Firmware update 4.1.9 dialog box buttons?

    I am trying to resurect my daughter's slot loading iMac after it was trashed by the infamous firmware bug. Before I found about this, the PRAM was zapped and a full system reset was performed, leaving the iMac in the situation where when it was turned on, after a few seconds it shut itself off. I have used the Giles Kenneday solution to disable the internal monitor and now the iMac doesn't shut down, but the image produced on the external monitor is so bad I can barely make out anything. I can boot up into OS 9.2.2, have the firmware update icon on the desktop and am ready to do the firmware upgrade 4.1.9. I have gotten past the license agreement screen, but the next dialog box has four or five buttons that I can't identify, so I don't know which to click on to start the upgrade. I've tried the one on the far right but it didn't work. Can anyone who has completed the 4.1.9 Firmware update, or is about to do it, please tell me which button on this screen starts the process? Also where is the button on the next dialog box that causes the iMac to reboot? I have been unable to find screen shots of these boxews anywhere.
    Slot loading iMac G3 Special Edition   Mac OS 9.2.x  

    Mauro, all, and anyone experiencing blank screen problems with a slot loading iMac,
    First (and most important) I have been finally able to repair the problem using a combination of the ideas presented by Giles Kennedy and the additional encouragement from Mauro. For those who encounter a slot loading iMac that either has no screen display OR shuts down automatically a few seconds after booting there is HOPE. There are several messages in this forum describing a problem similar to the one I experienced. I suggest that those encountering this read Giles Kennedy's excelent article at http://www.gileskennedy.com/panthereatsimac and mirrored at http://www.capecodgraphics.com/imac_firmware.htm. Note that this problem existed in several levels of severity. I had to go the entire route, obtaining an old mac floppy drive cable, bridging four conductor of the internal video cable, and doing an almost blind firmware update, but it can be done. Your problem might be easier for repair.
    Second - Although all reported instances of this problem have been assodiated with attempts to install some version of OSX, My daughter's iMac failed while running OS 9.2.1. She swears that no attempts were made to install OSX... so it appears that these problems may be more extensive than previously reported. I suggest that anyone running an iMac under OS 9.2 immediately do the 4.1.9 firware update to avoild the problems I experienced.
    The entire process I went through was too extensive to report here, but the final steps that brought succes will be found in my insertion in portions of Mauro's post below:
    J Evans,
    In the process of installing Firmware update there is
    not a dialog with 4/5 buttons, I have checked with
    Resedit. What do you see is an artifacts of the
    screen. The Agree/OK/Update are ALWAYS on the right,
    the first on on the right.
    Actually the first screen presented after launching the updater (the license agreement) does have four dialog buttons. I still don't know what the others are.
    I cannot remember if the DEFAULT button is the
    Agree/OK/Update but, have you tried to use the
    keyboard "RETURN" in place of the mouse ???
    Although using the Return button to accept all defaults did not work with the battery and bothe memory cards installed, it DID work with the battery removed and only one memory card in place.
    Before I found about this, the PRAM was
    zapped and a full system reset was performed, leaving
    the iMac in the situation where when it was turned
    on, after a few seconds it shut itself
    off
    iMac thinks that there is a fault in the CRT or its
    circuit board (the PAV - Power/Analog Video - board)
    and shuts itself down after about 7 seconds.
    You might try removing all the memory, the Airport
    card (if present) and the logic board battery, and
    leaving for 24 hours. Reset the PMU, replace memory
    (one card only, in a different position from before),
    and plug in mains power. You are now ready to
    power-on the iMac using the button on the front. boot
    from the HD as normal
    The fault that the old firmware "thinks" it detects can be overcome using the floppy drive cable/bridge four connections solution described in the Giles Kennedy article. If the internal cable is kept in place, the iMac will continue to shut itself down during the boot process.
    Jack

  • Modifying Dialog Box Buttons

    I have created my own custom buttons that extend JButton. However I do not know how to modify Dialog Boxes to use the custom buttons as opposed to the standard ones.
    Is this possible?
    Thanks for your help,
    Adam

    Swing related questions should be posted in the Swing forum.
    However I do not know how to modify Dialog Boxes Well you typically extend JDialog to add your own components so its no big deal.
    If you are referring to a JOptionPane (then your question should be clearer), I guess you would override the addButtonComponents(...) method of BasicOptionPaneUI to use your customized button.

  • After I rt click and hit "save image/page as" the dialog box doesn't open.

    When I try to copy an image or a web page I get no dialog box that opens after I right click and select "save image/page as". The option to send link works.

    Sorry, here the information that is required:
    Version 11.0.4.2 - CS6
    Installed recent updates: Yes
    OS: Windows 7 Pro (Service pack 1) 64 bit
    Model: HP Z420 Workstation
    Processor: Intel Xeon CPU E5-1620 @3.60Ghz
    Ram: 8Gb
    Has it worked before: yes. It started after I opened a project (trough "open project") because double clicking on this project gives the follwoing error: "The directory name is invalid". Via "Open project" I could open it.
    Do you have any third-party I/O hardware (e.g., AJA, Matrox, Blackmagic, MOTU)? No
    Quicktime 7 pro installed
    Do you have any third-party effects or codecs installed? Yes, Optical Flares & Trapcode. But is unrelated since it isn't a specific project.
    Are you using Render Multiple Frames Simultaneously multiprocessing? Yes
    Are you using the ray-traced 3D renderer? No
    Thanks for the help. If you need any other info, let me know

  • Black border around dialog box, buttons, and everywhere

    It's just started behaving bit crazy. Suddenly black borders started appearing everywhere with Leopard. I have tried to restart the machine a few times but no luck. They appear with OS dialog boxes, around buttons, Safari, Most of the applications, text fields and everywhere.
    Please help if anyone has a solution. Thanks

    I think the issue is caused by the Apple Voiceover Utility. Part of its function for the visually impaired is to highlight the button or text item that it is going to speak. i suggest you turn off Voice over either going to System Preferences -> Universal Access and Making sure that voiceover is turned off. Alternatively press Apple(Command) F5 to turn it on & off. The black rectangles should go away. If you want voiceover but not the black rectangles. You can open the voice over utility and change the settings to the text is still spoken but without the highlighting.

  • CS4 Program Dialog Box Buttons Unclickable

    I am running Windows Vista 64-bit and just installed and updated Adobe Creative Suite 4 Production Premium. It seems that I am unable to use my mouse buttons to click on anything that pops up in a dialog type box (other than the X to close it) in all the programs in the suite (premiere, soundbooth, etc.). The mouse works fine in what I will refer to as the work area. I can navigate the dialog boxes with the tab and enter keys of my keyboard but it's kind of annoying. Anybody come across this before with CS4 or Vista?

    Bob and Dov,
    Thank you for your quick responses to my post. I was just using generic windows drivers apparently so I took your advice and downloaded and installed Vista 64 bit drivers for my Logitech 470 optical mouse. The new drivers didn't seem to make a difference. I have done some more testing. What happens is when I first open Premiere, I can click anywhere on the buttons at the 'Welcome to Adobe Premiere Pro' and they seem to work as expected, except I have to be at the lower right corner to click the new project button. All the buttons on the next screen 'New Prject' seem to work fine. If I click OK a dialog box 'Save As' comes up and I cannot mouse click anywhere to get the Yes or No buttons to respond. I can continue on if I hit tab, then enter. At the 'New Sequence' screen I cannot click in the area to change the name of the sequence, the OK button works fine, and if I try to click on the cancel button it scrolls the area on the lower part of the screen down instead (the area with setting information in it). I also cannot click on the scroll bar in that area. Once I mouse click OK past that everything in the work area seems fine to click with the mouse. Even bringing up boxes like preferences and such from the drop down menus seem to work fine with the mouse. A similar thing happens in Soundbooth. I haven't checked all the programs out but it's pretty weird and seems to at least span more than one program in CS4 but not affect every pop up box. I haven't noticed any similar issues with any other programs I'm running.

  • Preferences dialog box: buttons without text

    Since updating Dreamweaver CC from 13.0 to 13.1, the buttons "Apply" and "Cancel" of the preferences dialog box are without text. Also clicking "Apply" has no effect, only "Cancel" works.
    Disable sync settings, and also a reset of Dreamweavers preference files within ~/Library/Application Support/Adobe and ~/Library/Preferences/ did not solve this issue.

    Just to update: Issue got resolved on a re-install .

  • Keyboard control of dialog box buttons

    Terribly sorry because I'm sure this must be answered more than a few times, but I just can't seem to find it!
    Can AppleScript dialog boxes activate buttons in response to keyboard input?
    Lots of Aqua apps let me use tab to move through the controls in a dialog box, then press space to activate. Even back before OS X, I could activate a button by typing the first letter (probably while holding down the command key).
    Can I script that sort of behaviour without using Studio?

    Thanks Cam -- Yes, you're right: I can use tab and space.
    I'm just using the display dialog command (e.g., 'display dialog "Hello, world" buttons {"Button 1", "Button 2"})
    I could change the prompt for the worse to take advantage of return and escape keys.
    Does Studio let me assign or otherwise use other keyboard controls in dialog boxes?

  • Dialog box buttons appear out of order

    Hello,
    I am developing my app using a Firefox browser & Windows. I have a Javascript pop-up dialog box with OK and Cancel buttons (appearing in this order, OK button to the left of Cancel). When I run my app using Firebox & Unix, sometimes the button order shows up as Cancel and then OK. This has lead to people clicking the wrong button because they are used to seeing the OK button to the left of the cancel button. Is there something I need to do so that when my app is run on a Unix box that the buttons appear consistently with the OK button to the left?
    Thanks, Laura.

    Has anyone else experienced this behavior?

  • Add Folder to Library - No dialog box to select folder

    Hi,
    I wanted to designate a specific folder as the folder where iTunes / my iPhone should import music from. I want to limit iTunes to a specific folder as do not want comingle my Zune data as I have 100 gig of music which will not fit on my 32G 3GS.
    When I click on File-->Add Folder To Library, I don’t get the expected dialog from where I can select the folder.
    I can see from iTunes that its windows dims, meaning that another dialog has the focus however I cannot see this dialog window.
    When I click on iTunes at this time, I get a beep and Browse For Folder outline / dialog flashes on the screen, but it is blank and I can just see the form caption in the top left.
    Hitting ESC returns me to iTunes.
    I am however able to do a file selection File-->Add File To Library without any problems.
    Seems iTunes is a little buggy.
    Any suggestions?

    Here is maybe another clue.
    Whenever any dialog message pops up (got a warning that some .MOV file would not be copied for some reason or another) I hit alt tab and changed to another applications. When I returned to iTunes the dialog had disappeared.
    Again, the focus is not on the main iTunes application window and I can not interact with iTunes. Once I hit escape (which dismisses the dialog) control returns to the iTunes application and I can use it again.
    Just to test, I changed my screen res to 1024 x 768 (I normally run 1920 x 1080) to see if iTunes dislikes my resolution. Same problems....
    Any help much appreciated as I would like to get some music on my iPhone 3GS.
    Thanks
    André

  • Photoshop cc print dialog box image dark

    I'm on a MacBook Pro running Mt. Lion with PS CC, an Eizo monitor, printing with an Epson 3880, calibrated and profiled with a ColorMunki. When I preview an image to print, the image is darker in preview, and the color is much different than the actual image. When I print with the proper paper profile, (photoshop manages color and the space is Adobe 1998) it prints looking like the preview image rather tha the one on the monitor. I also run Snow Leopard on a partition with CS6, and the above does not happen, everything works fine. A photog friend of mine with a similar setup is experiencing the same problem since upgrading to Mt. Loin. Another graphic designer friend is running Mavericks and is has the same problem. I have another photog friend in Nashville who is having THE SAME PROBLEM!! Does anyone know what the heck is going on? I'm the only one who kept Snow Leopard so I can still print, which I do on almost a daily basis. What broke what? Is it a bug with PS CC, or did something in MT. Lion break? This is very frustrating for all of us and I find it totally unacceptable.
    If anyone has a clue and can help, we would be eternally greatfull.
    Thanks,
    Greg Nikas

    Thanks for the tip on inserting photos. I'm new here, won't post a link in the future.
    I'll try to simplify my issue;
    1. In CS6 in Snow Leopard, the original/source image looks just like the image in the print dialog box and prints beautifuly. See images below.
    Original image.
    Print dialog box image.
    2. In PS CC and CS6 in Mt. Lion, the original/source image is redder and more saturated than the image in the print dialog box, but the print looks like the the image in the print dialog box. The image in the print dialog box looks like the original/source image in CS6 in Snow Leopard! See images below.
    Original image.
    Print dialog box image.
    3. The issue seems to be with how the original/source image in PS CC and CS6 renders in Mt. Lion. As I said in my intial post, I have three friends who are having the same problem and none of us can figure it out, and I'm the only one who kept Snow Leopard.
    4. I'm on a MacBook Pro running Snow Leopard and Mt. Lion on a partitioned disk.
    5. I have an Eizo CG222W monitor, which is calibrated with an x-rite ColorMunki. Each OS has it's own calibration profile.
    6. I print on an Epson 3880 using the latest driver, and all papers have thier own profile and look the same when printed from either OS. 
    7. All settings in PS CC, CS6 and Bridge are identical in both OS's.
    I hope this is stated more clearly.
    Greg

  • Adding images in custom dialog box

    Hi!
    Do  you know if it's possibile to insert an image in a custom dialog box? I mean during the custom dialog box design (during the .dre file creation).
    Thanks to all!

    Hi Stemens,
    I'm hesitant to answer your questions anymore because somebody always comes behind and shows everybody how much I don't know   Anyway, I do not know of a way. I remember that there have been other developers discussing this and I think everybody just gave up. I have never seen an image in a dialog box, so that tends to indicate to me that no one has found a way.
    Russ

  • Spreadsheet Add-in connect dialog box do not appear after clean EPM-install

    Clean install of EPM with allmost all values default.
    version 11.1.2.1 on Win server 2008R2 and office 2010 32bit.
    Smartview seems to function properly.
    My impression from the documentation is that an installation of spreadsheet add-in does not require any post configuration, but maybe I am misstaken.
    So what needs to be done for spreadsheet add-in to show connect dialog box?
    Grant some kind of access in shared services?
    Change some environment variable?
    etc etc.
    Edited by: 859699 on 2011-jul-20 05:30

    Seems as if there is something fishy with the Essbase Java API, can this cause trouble for the Add-in?
    When using the foundation diagnostic tool I get:
    FAILED SVR: Essbase Java API Launch external checker with next command: C:\Oracle\MW\user_projects\epmsystem1\config\validation\11.1.2.0\launchEssbaseJavaAPI.bat EssbaseJAPIConnect admin ****** xxxxxxxx:****** http://xxxxxxxx:13080/aps/JAPI
    Error: EPMVLD-01011: Result at EssbaseJAPIConnect.main(EssbaseJAPIConnect.java; Error message: 19)
    Recommended Action: Make sure external checker is working.
    When I try to launch that path manually I get: "The system cannot find the path specified."

Maybe you are looking for