Set Default Button Position

In Question Slide buttons, is there a way to apply a position and size to 'all buttons of this type'?

Thanks -- that worked.
FYI, I did this within the template, too, but a new project based on
that template reverted to the default settings for new question slides.
I guess they're holding back that capability for the next version
I appreciate your time.
Jennifer Thomas
Content Developer/Applications Specialist

Similar Messages

  • Setting default button in JInternalFrame

    hi
    i had JInternalFrame screen which was added to an MDI Frame. when i am invoking my JInternalFrame screen from main menu, the default button is not working.
    i have coded like this in JInternalFrame screen:
    this.getRootPane().setDefaultButton(buttonOk);
    can anybody pls help me regarding this?
    thanx
    sarabh.

    try this
    getRootPane().setDefaultButton(btnOK);
          FocusAdapter resetDefaultButton = new FocusAdapter() {
          public void focusGained(FocusEvent e) {
             JButton button = (JButton) e.getSource();
             getRootPane().setDefaultButton(button);
          public void focusLost(FocusEvent e) {
             getRootPane().setDefaultButton(btnOK);
          };he default button can be set by using: getRootPane().setDefaultButton( button );
    However, the metal LAF and Windows LAF work differently once the default button has been set:
    a) Metal - the default button never changes, even when another button gains focus.
    b) Windows - when another button gains focus it becomes the default button. When you tab off this button, the original default button is never reset.
    Hope this helps
    Raheel

  • How to set default button when press "Enter"

    Hi,
    I have a form and it has only one button (Submit). When I press "Enter", it can submit the form and do the action. However, when I add another button (Normal button, not submit), it cannot perform submit action directly when I press "Enter".
    If we press "Enter" and the form can submit automatically, it is more user-friendly than without this feature. Therefore, may I know the method of set the default button when users press "Enter"?

    At first I thought the order of the form controls might matter.  When I run this code:
    <cfdump var="#GetTickCount()#">
    <form action="TestCfgrid.cfm" method="post">
    <input name="x" type="text" />
    <input type="button" value="x" />
    <input type="submit" />
    </form>
    While I am in the text box, if I press the enter key the form submits.  I originally tried it with the submit and button inputs in the opposite order.
    Note that the enter button will not submit the form if you are in a select control (aka dropdown) or a textarea or if your focus is not on a form element.  That's the default behaviour.  If you want to override that, you'll have to write some javascript.

  • Set default Button and provide a KeyEvent to a component with focus !!!

    What is to do ???
    I have following program:
    public class DefaultButton extends Frame implements ActionListener
         private Button close;
         public DefaultButton()
              super("Default-Button");
              setLayout(null);
              setSize(400, 200);
              setLocation(150, 100);
              setBackground(Color.lightGray);
              addWindowListener(new WindowAdapter()
                   public void windowClosing(WindowEvent e)
                        setVisible(false);
                        dispose();
                        System.exit(0);
              // CloseButton
              close = new Button("Close");
              close.addActionListener(this);
              close.setVisible(true);
              close.setSize(100, 30);
              close.setLocation(290, 160);
              add(close);
              setVisible(true);
         public void actionPerformed(ActionEvent e)
              String cmd = e.getActionCommand();
              if (cmd.equals("Close"))
                   setVisible(false);
                   dispose();
                   System.exit(0);
         public static void main(String [] args)
              DefaultButton wnd = new DefaultButton();
    }If I click on "Close"-button, the window will be closed. But, if the button "Close" has focus, it schold be possibile to close the window with a press on the Enter-Key? How to do it? How can I provide an KeyEvent to button "Close"?
    Tanks for any help.

    Hi pitalica!
    It is possible using KeyListener:
    public class DefaultButton extends Frame implements ActionListener, KeyListener {
    close.addKeyListener(this);
    public void keyPressed(KeyEvent e) {
    if ((e.getSource() instanceof Button)
    && (((Button) e.getSource()).getActionCommand == "Close")) {
    int kc = e.getKeyCode();
    if (kc == KeyEvent.VK_ENTER) {
    performs any action
    public void keyTyped(KeyEvent e) {}
    public void keyReleased(KeyEvent e) {}
    I hope it helps.

  • Setting default button

    I have a JFrame which has many controls like jbutton, jtextfield, jtextpane. I want whenever i press enter key. one JButton is pressed irrespective of the fact whether that jbutton has focus or not. e.g . in any windows application when enter key is pressed, default OK button is pressed even it has not focus.

    frame.getRootPane().setDefaultButton(okButton);

  • Setting Default Label Position

    Hi all
    When I create a Boolean (or anything else), LV defaults to putting the label above the control and left justified. I like to change that so that the default location for a label is just to the right and top justified.
    Anyone know how to do this?

    > Sorry, but don't believe you can--though that would be nice.
    > Personally I seem to spend half my life making contol labels
    > right-justified and aligned to the left of the terminal, and
    > indicators, left-justified and to the right of the control...
    >
    I've heard this advice about the justification before, but many times it
    doesn't seem necessary. If the label is totally above or below the
    control, then the justification will determine which edge of the label
    moves while the top or bottom is maintained. As long as autosizing is
    turned on and the label projected horizontally intersects with the frame
    of the control, the justification doesn't matter since the right or left
    edge, whichever is next to the control will be maintained.
    As for th
    e orginal question, this is something you can change with
    custom controls or typedefs, but the built-in control label position
    cannot be controlled.
    Greg McKaskle

  • How to set default button?

    How can make a button so when I press enter, the button is activated?

    Note: This thread was originally posted in the [New To Java|http://forums.sun.com/forum.jspa?forumID=54] forum, but moved to this forum for closer topic alignment.

  • Applescript bug in setting button positions in iDVD6

    I took the liberty of downloading the project files for Apple's iDVD Companion (http://www.apple.com/applescript/idvd/companion.html) to remove the annoying limitations on setting button positions (the original app would allow a maximum horizontal offset of 512 and vertical offset of 384, which is too constraining in widescreen projects)
    After updating the project in Xcode and fixing some Applescript bugs, I modified the code to allow button positions up to (936, 484) which is the lower right corner in a widescreen project.
    But it turns out Apple hasn't modified iDVD's scripting to allow button positions in excess of (620, 480). No doubt this was set when iDVD was first made scriptable - BEFORE the advent of widescreen projects!
    So in iDVD Companion now, if I set a button position to be (936, 484), the button only moves to (620, 480) and stops. No errors are generated.
    The other curiosity is that in a widescreen project the left hand edge of the screen is not offset 0 but an offset of 80. Explain that!
    I'll report this to Apple.

    Yes, you are right!
    If you write an Applescript to directly address iDVD6 using its Dictionary commands, you can indeed read button positions greater than (620, 480) (eg, if you manually drag a button to the extreme right hand side of a widescreen project) but you can't write button positions greater than (620, 480) - anything over that is truncated.
    Well spotted... definitely a bug.

  • Set default warehouse

    Hi, everybody!
    I want to find the filed that store information about default WH when i click +set default button+. that make type bold warehouse name and warehouse code.
    Thank you!

    its in OITM
    the field is called DfltWH
    if you're happy ...
    regards
    David

  • Buttons set as "free position" change back to default

    In iDVD 6, if you move a button to free position and then save it, when you re-open the project the button position changes back to the default position. I am using the iDVD 6 theme "Reflection Black" and positioned the button in the gray pane at the bottom but it moves back up the pane to the default position no matter how I try to save it. Anyone else having this problem?
    Thanks
    Craig

    The first six slideshows behave themselves and stay where I position them in the area designed for the listing. The remaining six are off to the side right across the moving drop zones, which makes them hard to read.
    I believe all of the menus are defaulted to handle six buttons, while you can add up to twelve on some, maybe this main menu can only "hold" six... I had four on mine.
    How about one button on the main menu that says something like "Slideshows" and when you click on that it takes you to a new menu (the chapter menu) and try to put twelve there.
    G4 DP 1.25 GHz 2GB RAM 4 Drives 770GB   Mac OS X (10.4.6)   2 SuperDrives (SL 8X & DL 16X)

  • How to set a default button in a JFileChooser dialog?

    How do I set the default button in a JFileChooser dialog?
    Thanks in advance!
    Thomas

    public static JButton searchByText(Component comp, String[] texts) {
        if (comp instanceof JButton) {
            JButton btn = (JButton) comp;
            String text = btn.getText();
            for(int j=0; j<texts.length; ++j)
                if (text.equals(texts[j]))
                    return btn;
            return null;
        if (comp instanceof Container) {
            Container cont = (Container) comp;
            for(int j=0, ub=cont.getComponentCount(); j<ub; ++j) {
                JButton result = searchByText(cont.getComponent(j), texts);
                if (result != null)
                    return result;
        return null;
    }You can call this method, passing it your JFileChooser and:
    String[] approves = {"Open", "Save"};

  • How to set the default button of an ALERT

    Can someone help me how to set the alert propety to change the default button from button1 to button2.Not from the prioperty palette, but inside the code using like set_alert_property.I am using the Oracle Forms 10g.
    Thanks in advance.
    Srini

    To the best of my knowledge, the default button cannot be set at runtime. This must be set at design time in the Builder.
    Refer to the Forms Builder online help for details:
    http://www.oracle.com/webapps/online-help/forms/10g/topics/f1_help/builts/setatpro.html

  • Setting default alert button at runtime

    Setting default alert button at runtime
    Sometime I want Button1 to be default and sometimes I want Button2 to be default.
    Please tell me how to change the default button at runtime.
    Thanks
    Claus Hansen [email protected]

    Beware of a slight bug in at least some versions. If the user dismisses the alert using the [X] close window control it fires a particular button which is not neccesarilly the default one. I always ensure that I make the default button the one which the control fires.

  • Ebusiness tax Rule setup - Set default rule button is disabled

    Hi All
    In ebusiness tax rule setup - Tax rule default values are not able to set. I cannot able to access the set default.
    set default value is disabled. can anyone help me know , how i can enabled button set default value in
    Tax Rules
    Thanks
    Venkatesan

    Pl ensure that you have defined all required default values set up. Ex Tax, Tax Status, Tax Jurisdiction, Tax Rate etc.

  • How to set default custom button in af:popup

    Hi,
    I am using JDeveloper 11.1.2. I have popup. In that there are two input fields and one custom button called "Login". At runtime after the popup is been launched , while pressing Enter key it needs to trigger the "Login" button. If I use *<af:subForm>* in jsff file, the default is getting triggered. Apart from <af:subform> Is there any way to trigger default button at runitime?
    Thanks & Regards,
    Praveen.

    You can use an af:dialog of type ok/cancel for your popup. If you hit enter it'll work like the OK button is clicked. In a dialoglistener you can destinguage all other buttons or ESC.
    Check out http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_dialog.html and http://www.oracle.com/technetwork/developer-tools/adf/learnmore/77-ok-cancel-support-in-dialog-351871.pdf for a sample.
    Timo

Maybe you are looking for