Problem in button

hi,
at present i am working in oracle forms
in that while i am running the form, in the MDI window max,min,close button will appear,
my problem is i don't want that button ,that buttons should not appear while running
what to do for that

hi
pls..do not post the same quetion multiple times
follow the link
problem in button
thanks
Kris

Similar Messages

  • Problem placing buttons on top of a background image

    My knowledge of Java isn't the greatest and I am currently having problems placing buttons on top of a background image within a JApplet (this is also my first encounter with Applets).
    I'm using a Card Layout in order to display a series of different screens upon request.
    The first card is used as a Splash Screen which is displayed for 5 seconds before changing to the Main Menu card.
    When the Main Menu card is called the background image is not shown but the button is.
    While the Applet is running no errors are shown in the console.
    Full source code can be seen below;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.net.*;
    // First extend JApplet
    public class WOT extends JApplet {
         //--------------- Variables are declared here -----------------
         private CardLayout contentCardLayout = new CardLayout();  // declare CardLayout
         private Container contentContain;     // declare content Container
         private JPanel contentCard, splashScreen, mainMenu, menuImage; // declare content Panels
         private JLabel splash, menu, map; // declare image labels
         private ImageIcon mapBtn; // declare ImageIcons
         private JButton mapOption; // declare option Buttons
         private Timer timer; // declare Timer
         private ActionListener actionListener, mapOptionListener; // declare ActionListener
    //--------------- Initialise Applet -----------------
      public void init() {
         //--------------- Set-up Card Layout -----------------
         contentCard = new JPanel(contentCardLayout); // assign card panels to CardLayout
         //--------------- Splash Screen -----------------
         splashScreen = new JPanel();
         splash = new JLabel(new ImageIcon(getClass().getResource("img/bg.gif")));
         splashScreen.add(splash);
         splashScreen.setSize(600,800);
         splashScreen.setLocation(0,0);
    //--------------- "View Map" Option Button -----------------
         mapBtn = new ImageIcon(getClass().getResource("img/map.gif"));
         mapOption = new JButton(mapBtn);
         mapOption.setBorder(null);
         mapOption.setContentAreaFilled(false);
         mapOption.setSize(150,66);
         mapOption.setLocation(150,450);
         mapOption.setOpaque(false);
         mapOption.setVisible(true);
    //--------------- Main Menu Screen -----------------
         //menuImage = new JPanel(null);
         //menuImage.add(mainMenu);
         //menuImage.setLocation(0,0);
         mainMenu = new JPanel(null);
         menu = new JLabel(new ImageIcon(getClass().getResource("img/menu.gif")));
         menu.setLocation(0,0);
         mainMenu.add(menu);
         //mainMenu.setBackground(Color.WHITE);
         mainMenu.setLocation(0,0);
         mainMenu.setOpaque(false);
         //mainMenu.setSize(150,66);
         mainMenu.add(mapOption);
         //--------------- Map Image Screen -----------------
         map = new JLabel(new ImageIcon(getClass().getResource("img/map.gif")));
         //--------------- Add Cards to CardLayout Panel -----------------
        contentCard.add(splashScreen, "Splash Screen");
         contentCard.add(mainMenu, "Main Menu");
         contentCard.add(map, "Map Image");
    //--------------- Set-up container -----------------
          contentContain = getContentPane(); // set container as content pane
          contentContain.setBackground(Color.WHITE); // set container background colour
           contentContain.setLocation(0,0);
           contentContain.setSize(600,800);
          contentContain.setLayout(new FlowLayout()); // set container layout
           contentContain.add(contentCard);  // cards added
           //--------------- Timer Action Listener -----------------
           actionListener = new ActionListener()
                    public void actionPerformed(ActionEvent actionEvent)
                             //--------------- Show Main Menu Card -----------------
                             contentCardLayout.show(contentCard, "Main Menu");
         //--------------- Map Option Button Action Listener -----------------
           mapOptionListener = new ActionListener()
                    public void actionPerformed(ActionEvent actionEvent)
                             //--------------- Show Main Menu Card -----------------
                             contentCardLayout.show(contentCard, "Map Image");
         //--------------- Timer -----------------               
         timer = new Timer(5000, actionListener);
         timer.start();
         timer.setRepeats(false);
    }Any help would be much appreciated!
    Edited by: bex1984 on May 18, 2008 6:31 AM

    1) When posting here, please use fewer comments. The comments that you have don't help folks who know Java read and understand your program and in fact hinder this ability, which makes it less likely that someone will in fact read your code and help you -- something you definitely don't want to have happen! Instead, strive to make your variable and method names as logical and self-commenting as possible, and use comments judiciously and a bit more sparingly.
    2) Try to use more methods and even classes to "divide and conquer".
    3) To create a panel with a background image that can hold buttons and such, you should create an object that overrides JPanel and has a paintComponent override method within it that draws your image using the graphics object's drawImage(...) method
    For instance:
    an image jpanel:
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.image.BufferedImage;
    import java.io.File;
    import java.io.IOException;
    import java.net.URISyntaxException;
    import java.net.URL;
    import javax.imageio.ImageIO;
    import javax.swing.JButton;
    import javax.swing.JPanel;
    public class BackgroundImage
        // **** this will have to be changed for your program:
        private static final String IMAGE_PATH = "../../m02/a/images/Forest.jpg";
        private BufferedImage myImage = null;
        private JPanel imagePanel = new JPanel()
            @Override
            protected void paintComponent(Graphics g)
            {   // *** here is where I draw my image
                super.paintComponent(g);  // **** don't forget this!
                if (myImage != null)
                    g.drawImage(myImage, 0, 0, this);
        public BackgroundImage()
            imagePanel.setPreferredSize(new Dimension(600, 450));
            imagePanel.add(new JButton("Foobars Rule!"));
            try
                myImage = createImage(IMAGE_PATH);
            catch (IOException e)
                e.printStackTrace();
            catch (URISyntaxException e)
                e.printStackTrace();
        private BufferedImage createImage(String path) throws IOException,
                URISyntaxException
            URL imageURL = getClass().getResource(path);
            if (imageURL != null)
                return ImageIO.read(new File(imageURL.toURI()));
            else
                return null;
        public JPanel getImagePanel()
            return imagePanel;
    }and an applet that uses it:
    import java.lang.reflect.InvocationTargetException;
    import javax.swing.JApplet;
    import javax.swing.SwingUtilities;
    public class BackgrndImageApplet extends JApplet
        @Override
        public void init()
            try
                SwingUtilities.invokeAndWait(new Runnable()
                    @Override
                    public void run()
                        getContentPane().add(new BackgroundImage().getImagePanel());
            catch (InterruptedException e)
                e.printStackTrace();
            catch (InvocationTargetException e)
                e.printStackTrace();
    }

  • Strange solution to problem of buttons dissappearing in Encore 2.0

    I've pulled my hair over a problem with buttons dissappearing at preview. They are nice looking in the menu window, I can route them and so on, but when previewing they simply dissappear, or sometimes become partly visible, or sometimes become displaced.
    Now, I found that one solution to this is to place a new button in the menu, possibly onto the same place as another button already there. Then a immediately remove the newly placed button. After that problem seems solved, at least until I move or handle my buttons again. Might someone explain how this is possible? What in Encores internal workings can explain this? Deleting the cache folder didn't solve it. mind you.
    Regards,
    Nikolaj

    I have not analyzed the buttons in PS. How do I do that? I'll have to export the buttons as PS-files first, right?
    You are correct. Just use Edit in Photoshop, and the program will launch, and then Open your Menu.
    Once in PS, you will want to make sure that the Layers Palette is Open and visible. You will see several Layer Sets. Most will be your Buttons. When you click on the little triangle, at the left-side of the Button Layer Set, it will "twirl-down" all of the included Layers. Note that the Button Layer Sets, and each enclosed Layer will have some odd names. The first several characters in those names are VERY important. These MUST be correct, for the PSD file to function as a Menu.
    Also, don't worry about any mis-steps. That comes from not knowing the program yet.
    Take note that just because I have not encountered a problem with EncoreDVD 2.0, does not mean that it does not exist. I have done many, many Projects, and burned many successful discs, but then I do things the same exact way for each Project. Pretty boring, I will admit, but if it works, then I have few reasons to change anything.
    Now, I do get to exercise my artistic side with the Menus and the navigation, but the rest of it is rather "by the numbers."
    One note on Edit in Photoshop: this operation will create a TMP file of your Menu. It is THAT file, that is Opened. Look at the name. It'll be rather cryptic. When you make a change, in PS, and hit Save (Ctrl+S), those changes are transferred back to Encore. Do not do a Save_As, unless you have a good reason to do so, or Encore will still have the old Menu, and it will not update.
    Also, there are instances, where a simple Save does NOT update Encore. Through trial and error, I have found that if one does three (3) Saves, this gets past whatever that glitch is. Normally, I just use Ctrl+S, at least 3x, during the editing process, whether I have any indication that the Save is not working, as it should. It has now become habit for ALL Menus in my workflow, though the problem seems to only happen about 1:8 Menus.
    Good luck,
    Hunt
    PS - If you have any questions on your Menu and your Button Layer Sets, do not hesitate to do a screen-cap, and attach that. Hint: use the little "camera" icon in the lower-middle of the editing screens Toolbar. We'll all take a good look at it. I'd Save that as a JPEG @ ~ a compression of 9 on the PS scale, so we can read the "fine print."

  • I have problems with buttons and Forms in my trial proof of Indesign CC, how can I fix it?

    I have problems with buttons and Forms in my trial proof of Indesign CC, how can I fix it?

    Moved to InDesign forum.
    You can start by telling us what the problem is.

  • Problem with buttons in my screens

    hi
    i have two buttons in my screen say button1 and button2
    by default when i display this screen as per my requirement only button1 should be visible and button2 should be invisible
    button2 should only be visible when i click on my first button i.e. button1.
    where and how to code this
    vamsi

    Hello Sir,
    This is Ravi and Saras this side.
    Remember?
    TCS.....SAP Training.....Lemon Tree...
    Ok.
    As far as ur question is concerned.....
    1. At selection-screen output
         loop at screen.....then make the 2nd button invisible by modifying the screen.
    2. At selection-screen
         Between an if endif condition check whether the 1st button has been clicked.
         If yes then again loop at screen and make the 2nd button visible.
    That will solve ur problem.
    Regards,
    Ravi and Saras

  • Problem with Buttons/Form Fields in Acrobat PDF when created in InDesign CS4

    So I have been working for quite some time on an interactive form for an internal client at my job. It has two major components, one is the side bar navigation, which I created using buttons in InDesign which link to bookmarks in the document. The second aspect is that I also created "check boxes" accoring to this video: http://www.adobe.com/designcenter/cs4/articles/lrvid4434_ds.html
    I have two major issues:
    1. Whenever I try to convert my boxes to form fields in Acrobat it will not recognize them unless I save out 4 pages at a time (rather than the whole document).
    2. I then have to combine the document and get multiple sets of bookmarks, and some bookamrks are corrupted (not working properly). Even when I try to convert the whole document some of the buttons are corrupted.
    UGH tired of this project, I am really bastardizing the whole thing to get it done, but want to figure out the problem as this is an ongoing document that we will be using over and over again in future years.
    I am attaching the pdf file--this is a pieced together one (saved out 4 pages at a time) (which I did do some fixes to to get buttons to go to proper locations) and the original indesign file (partial file due to size).
    PLEASE OH PLEASE HELP ME!

    Acrobat's Form Wizard is good but not perfect when creating form data from a PDF. I have never encountered Acrobat not able to finish the process of creating all form fields, but have encountered very slugish performance afterwards when there was a lot of forms, buttons, and other elements within the pages. And I would say, from your attached PDF, it is pretty heavy with content. I am going to suggest an idea, but I have not tested this to see if it would work.
    In InDesign, create a layer for your navigation tabs, and a layer for your text with the check boxes. Create two PDFs from ID, one PDF with just your-nav tabs, the second with just your text with check boxes. In Acrobat, perform the Form Wizard on the second PDF and see if this will finish, the idea here is to reduce the cllutter for the Form Wizard to finish. If it does, you can merge the first PDF as a layer with the second to have a completed document. Again, I have not tested this theory.

  • Problem with buttons in repeated table header

    I have a bunch of tables that expand/contract at the click of a button in their respective header rows.
    The problem I'm having is when a table breaks to another page the button doesn't work properly in the repeated header - the scripted value isn't making it to the repeated button (I've also tried checkboxes).
    Is there any way to make this happen? Should I try using variables to store a flag or something like that?
    https://acrobat.com/#d=m7zuQYiUoFrtz5isD7rErQ

    This issue is that the second header is an instance of the first, so all unmanaged relative code breaks. I would hazzard a guess to say that your add code looks like "$.parent.row1.instanceManager.addInstance(1)." This will break, as the "second" header row no longer sees the 'table' element as it's parent.
    Changing to code to a static reference will fix it... i.e. xfa.form.form1.table1.row1.instanceManager.addInstance(1).
    This should solve it for you... if not, let me know.
    - Scott

  • Problem with buttons in background

    Viewing the problem problem:
    http://www.ucsdkya.com/ >
    (you can skip the intro via link in top right) > cilck on the
    moon in upper right .
    When the new movie has loaded (its on Level 1), the buttons
    below it (on Level 0) still make their noises. How do I stop the
    response of these buttons?

    Mr. Rish wrote:
    > Viewing the problem problem:
    http://www.ucsdkya.com/ >
    (you can skip the intro
    > via link in top right) > cilck on the moon in upper
    right .
    >
    > When the new movie has loaded (its on Level 1), the
    buttons below it (on Level
    > 0) still make their noises. How do I stop the response
    of these buttons?
    Buttons remain their full functionality across multiple
    levels, always.
    There is few things you can do to avoid it:
    1)
    While loading something in level 1, send level0 timeline to
    an empty frame
    w/o any content using regular gotoAndStop() action.
    2)
    Place big button on bottom layer of the movie in level1.
    Buttons can't work across
    buttons so the big one will eliminated any button below, they
    still there tho
    you can't click them. You can then deactivate the hand
    pointer so the mouse cursor
    won't react to that big button using action like
    btn.useHandCursor = false;
    3)
    You could deactivate the buttons directly using btn.enabled =
    false; while to content
    is loaded and activated them when you need it back using
    btn.enabled = true;
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Problem with buttons in page fragment

    Hi,
    I'm developing a jsp-page, which has two page-fragments and one inline frame..
    I've a problem with one page-fragment. This one contains three buttons, for changing the language. When someone pushes the button, it seems that there is no action triggered...
    Here is my code:
    <?xml version="1.0" encoding="UTF-8"?>
    <div style="-rave-layout: grid" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:j="http://www.sun.com/creator/jsfcl">
        <f:loadBundle basename="oltbwebapplication.bundle" var="bundle"/>
        <h:outputText binding="#{OltbStatus.mnuBanksys}" id="mnuBanksys" style="left: 96px; top: 0px; position: absolute" value="#{bundle.mnuLac}"/>
        <h:commandButton action="#{OltbStatus.choseNl}" actionListener="#{OltbStatus.btnNl_processAction}" binding="#{OltbStatus.btnNl}" id="btnNl"
            style="left: 432px; top: 0px; position: absolute" value="NL"/>
        <h:commandButton action="#{OltbStatus.choseFr}" binding="#{OltbStatus.btnFr}" id="btnFr" style="left: 480px; top: 0px; position: absolute" value="FR"/>
        <h:commandButton action="#{OltbStatus.choseEn}" binding="#{OltbStatus.btnEn}" id="btnEn" style="left: 528px; top: 0px; position: absolute" value="EN"/>
    </div>Thx in advance
    Ann Carpentier

    Hi Ann,
    I was working with dropdowns in pagefragments consequent to your query. I noticed that there is a problem with the dropdowns too. This especially happens if you have the same components in both the page fragments. For example buttons in both the page fragments or dropdowns in both page fragments etc.
    I have filed a change request on your behalf for the same.
    We thank you for bringing this to our notice.
    Thanks and
    Cheers :-)

  • Problem with buttons in Content Viewer iPad app

    Hi,
    I'm having a problem with my navigation once my app is viewed on the iPad. All pages in all of my articles are using the same master page for a menu button, and they all work when I view the app through the Content Viewer on my desktop. Once I log in to the Content Viewer on my iPad, however, the menu button on the first page of every article doesn't work. I did a test of swapping the first page with the second page in one of the articles, and the original page's menu button then worked while the second page's (now located at the beginning) wasn't being read. Other buttons on the first page work (which are also from the master page), it's just the menu button that makes my table of contents box appear. I have eleven articles in my folio and it's happening on the first page of every single one. Not too sure what's going on here, any help is appreciated.
    Thanks.

    I also figured out after playing around with it a bit more that this only happens when "Horizontal swipe only" is checked in the properties.

  • Zen Style M300 problem lock button

    Hi,
    I have my new Zen Style M300 with a problem. The lock button is not working. If I move the button to the right position the device is not blocked, so if I touch any other button (an arrow...) it is possible to modify the music, radio or wathever.
    Another question is about the "idle shutdown" feature. I think is not working as a sleep feature, I mean, I would like to listen to?the radio at nigth and enable the sleep mode to shutdown the device in 30 minutes (for example). That's something not possible to do with de idle shutdown.
    I know a lot of creative mp3 players have this feature, but the M300 device.
    Thanks and regards

    &Hi,
    Sounds like something's wrong with the power switch, you might want to check with the place of purchase or contact Customer Support. In order for idle shutdown to happen, there must be no activity on the player.

  • Specific problem with buttons and states

    Hello,
    I first apologize for using Google Translate :-(
    I have a problem with InDesign not solve. It is for a digital publication.
    My goal is:
    A 'gallery' button is pressed and the ball image appears with three buttons: "Previous image", "Next image" and "close gallery".
    I do not want the gallery to be visible, or buttons that control, until the button is pressed "gallery", so I think all buttons except "gallery" with the "hidden until activated" option selected.
    I want the gallery, and buttons that control it, disappears when I press the button "close gallery".
    What I call "Gallery" is an image that fills the screen.
    After placing the image on your site have become the property button "Hidden until activated."
    Then convert this button in order to several states (what I will call "button states") and by the successive states with the images I want to show in the gallery.
    I think the interactions of the buttons.
    When button "gallery" I assign the following "I click the"
    - "Go to state"
    - Hide "gallery"
    - Show "close gallery"
    - Show "previous picture"
    - Show "next image"
    - Show "button states."
    The buttons "Previous Image" and "Next Image" are assigned, respectively, to go to previous state and go to the next state.
    When button "close gallery" I assign the following "I click the"
    - Show "gallery"
    - Hide "close gallery"
    - Hide "previous picture"
    - Hide "next image"
    - Show "button states."
    The buttons "Previous Image" and "Next Image" are assigned, respectively, to go to previous state and go to the next state.
    When button "close gallery" I assign the following "I click the"
    - Show "gallery"
    - Hide "close gallery"
    - Hide "previous picture"
    - Hide "next image"
    - Hide "button states."
    I put it up and working properly until I press "close gallery". Then I hide the buttons "close gallery", "previous image" and "next picture" but it keeps me visible "button states" showing the last image that was shown.
    Do not know how to fix this and I'm going crazy!
    Please can anyone help me?
    The solution may be another approach but without using "Folio Overlays".
    Thank you very much.

    I've moved your post to the DPS forum.
    I'm afraid the way you're doing this is not going to work with DPS.
    This should all be done with a multi state object. The first state would contain nothing but a button to go to the first state. After that set up each state with the proper buttons. Without seeing the file it's a bit difficult for me to envision exactly what you want to do.

  • PLEASE HELP!  I'm desperate!  Problems with buttons.

    Hi there,
    I've tried a few different forums on the net and so far there has been no reponse to my problem below.  My coursework is due in tomorrow and I'm at my wits end.
    I am really new to Flash and am having a problem with my application. I have created a button that I want to use to activate some pre-recorded film. I know I need to use some code to do this, however I can't seem to get it right.
    I have deleted the film from the library as I thought it may be a problem in how I imported the .flv files, so I will need to reimport these (with some advice on how to do it right).
    Any help you can give would be greatly appreciated.
    Thanks
    Allie

    You can play an .flv as an external file or you can import it into your movie. Using an external file is preferable for many reasons. Here's a good tutorial on how to play an .flv: http://layersmagazine.com/flash-cs5-flv-playback.html

  • Nokia Maps & problem with '#' button

    It looks like my '#' button changed its working in the Nokia Maps application. The pressing causes unpress and vice versa. So, when I release the button, it keeps zooming out until I press it again. Strange, because it works incorrectly only in this application.
    Maybe someone clever could give me a hint to solve my problem?
    I can observe it in the newest version of Nokia Maps and hard reset doesn't solve my problem.
    Please for some clues.

    Is it just a problem in the maps application? It sounds rather odd... the button may be sticking, so I'd recommend getting it to your nearest Nokia Service Centre as soon as possible
    Nokia History: 3110, 5110, 7110, 7110, 3510i, 6210, 6310i, 5210, 6100, 6610, 7250, 7250i, 6650, 6230, 6230i, 6260, N70, N70, 5300, N95, N95, E71, E72
    Android History: HTC Desire, SE Xperia Arc, HTC Sensation, Sensation XE, One X+, Google Nexus 5

  • Problem drag buttons on bottom toolbar in IB

    I add a toolbar in the bottom view by IB. But I can not drag UIBarItem or button on the toolbar. The button bounced back and did not appeared on the toolbar. It also happened for Navigation Bar. Anything wrong?

    Thanks for the thorough answers to my questions, Charlie.
    CharlieCL wrote:
    I set the toolbar in the view selection from unspecified to toolbar. There is no
    button on the toolbar.
    I think you've been trying to add a real toolbar object by asking IB to display a simulated toolbar at the bottom of your view.
    When you select your content view in IB, open the Attributes Inspector and expand the "Simulated User Interface Elements" panel, you have the choice of adding placeholders to your view. These can be very useful when the view controller's edit window doesn't display a bar which will be visible at run time.
    For example, if you create a nav controller in your code, its nav bar will normally be visible at the top of every controlled view--i.e. the view of each controller on the stack--at runtime. But you won't see that bar in the xib file belonging to each of those controllers. That's when you might want to add a "simulated nav bar" to the edit window. The placeholder keeps you from accidentally putting some of your view content where it will be covered by the bar, and lets you see how the screen will look at runtime.
    Since a simulated bar never causes a real bar to be created at runtime, IB won't let you add controls to that bar.
    So the solution to your question is to always drag a bar object from the IB Library when you intend to specify creation of a real bar at runtime. You shouldn't have any problem adding controls to a bar you obtain from the Library (as you confirmed in the answer to question 4).
    \- Ray

Maybe you are looking for