Changing quiz button text

I am working on a series of tutorials and quizzes for our
client, I want to change the text on the "Next" button on the
quizzes. It appears easy enough, in the options, Next button text
field, I have entered what I want, but it still appears as "Next"
when I publish it. Am I an idiot?
Please help.

This may be a stupid question, but did you save the file
before you published? I have sometimes had instances of not saving
and publishing first and my changes are not reflected.
Also, if the buttons were already on the screen with the text
"Next" when you decided to change the button text, you'll need to
delete those buttons and then add them again. The text does not
update dynamically.
Worst comes to worst, you can manually change the button text
with a double-click or through properties...
Hope that helps.

Similar Messages

  • Dynamicaly change submit button text?

    Is there a way to do this based on what screen you are on inside of web determinations?, I attempted editing messages.en.properties and using a substitute attribute %textSubmitButton% instead of submit and set that attribute to "testing" within the rulebase, but the submit button displayed %textSubmitButton%, Is there another way to do this?

    You can override the default text displayed for the submit button by subscribing to the OnApplyTemplatesEvent and altering the value of the 'submit-button-text' property in the screen context based on the current screen being rendered.

  • Change Quiz Buttons

    Should be as simple as a nursery rhyme, but I can't make the
    gray buttons go away on a quiz slide. If I go to a button's
    properties and change it to an image button, scroll until I find
    one approriately colored for my presentation and click OK, the
    button shape/color changes. However, I need it to say Submit,
    Clear, Back, etc. Since those buttons in my color are not in the
    standard list, I think I have to create a transparent label and set
    it on top of the colorful button.
    1. The label won't go on top.
    2. There has to be an easier way to do this. Should I be
    deleting all the standard buttons and inserting a colorful image,
    merging with the background, applying text, merging that, and
    placing a transparent button over the lot of them? If so, how does
    Clear work?

    Hi all
    If you do a bit of Googling, you can come up with some free
    to use on-line button creator tools. Kevin Siegel's last Captivate
    newsletter lists a site called
    ButtonGenerator.com as
    one to use.
    Personally, I tend to opt for specialized software. Two of my
    favorites are Xara WebStyle
    Xara.com and Vista
    Buttons
    Vista-Buttons.com.
    Cheers... Rick

  • How to change action button text in UWL?

    Hi All,
    I want to change the text of Action buttons like Resubmit, Forward, Assign To Me in UWL.
    Is it possible to change thru custom configuration file for a specific workitem?
    Thanks
    Sundar

    Hi Sundar,
    For the forward button , you are getting this message because you are using the handler dummy, ie no handler . For forward, write like this:
            <Action name="forward" handler="ProviderActionHandler">
              <Properties>
               <Property name="userIdList" value="${users}"/>
            <Property name="display_order_priority" value="3"/>
              </Properties>
              <Descriptions default="My Forward"/>
            </Action>
    If you provide this handler and these properties, then you must have the forward functionality screen, as defined by SAP.
    In case you want anything else to launch, like any web dynpro application, you need to have webdynprolauncher...and so the properties will be different.
    Let me know if your forward functionality is happening well or not?
    Regarding Assign to Me, do not put any extra action tag for that.
    Go to portal content and select 'Yes' for the Display UWL support Information. Log into portal and click on the task which you want to check. Below UWL  you will see a lot of information. In the section 'Supported Actions for this Item'(last section), Find the action Id for the 'Assign to Me' Display Text. I guess that action will be there in the uwl.standard file. Copy that action section and paste in your file. Just add one extra line: 
    <Descriptions default="My Forward"/> at the end of the </Properties> tag. Bo not create any new name, just add this default text. In this way functionality will remain same, only text will change.
    Log off and login to the portal. Hope you will see what you want.
    Thanks,
    Sonali.

  • Changing buttons text in Report

    Hi !
    I am using a standard Region report in my application.
    There are some buttons in this Region:
    "Next button" and "Previous button".
    How to change the buttons text ?
    I want to get empty text on this buttons.
    Thanks,
    Roman

    Hi user....
    I am sorry,
    but I want to change a text of link label inside the Region.
    There are two links inside the Region: Next link and Previous link.
    I want to get the links without text label.
    Thanks, Roman.

  • On Button click change the button display text from LOCK to UNLOCK

    Hi Freinds,
    I am rendering a TreeByNestingTableColumn with two columns  like:  Name , Status as below shown. In The status column I inserted a Table Cell editor Button type and  the button element property text mapped to the context attribute called statusButton and set the button name in the code to display as LOCK. When the tree renders all the vales are displaying in status column as LOCK. Now whrn the user click on LOCK i should fire the event and change the button text from LOCK to UNLOCK. The same way when they click on UNLOCK and i have change to LOCK. please help how to do this.
       Name                          Status
    |> Employee1------------------LOCK (when i click on lock  button here, his and under neath of him button status should                 
            |>Employee2-----------LOCK    change from LOCK status to UNLOCK)                                                     
                   |>Employee3----LOCK
    Thanks in advance.
    Thanks
    Srini

    Armin,
    Yes I removed the method and created the calicualted value as you suggested and I able to get the out put what i have asked.
    My complete scenario is some thing like this, i able to complete upto certain level but not able to make it work for complete scenario, I appreicate your comments or advice for getting me the below output
    I have a TreeByNestingTableColum UI rendering with three columns as NAME(node |>), STATUS(Toggle Button) and PLANNING (Text view)  (developed based on sample tutorial Integration of a Tree Structure in a Web Dynpro Table.pdf)
    I am trying to get this output:
    From the sap backed i am getting flag value, based on that i have to render Tree UI columns NAME,  STATUS(Toggle Button) and PLANNING (Text view). if the flag is null i have to show as LOCK and In Planning else Unlock and Submitted  (please see the below picture for clear idea)*
    if (statusflag = ""){
    i have to show values in two columns like Lock ...Planning
    } else
    show values in two columns like Un Un Lock ...Submitted
    One more thing is , If i lock a record at secound node level , then all the records should locked underneath of that node (it could be 2 nodes or 10 nodes) and then the status column values should change from lock to Unlock and Planning column values should change from In Planning to Submitted. where as when i Click on Unlock , only that perticular record (not node level) should changed from unlocked to Lock and planning is  from Submitted to In Planning.
    This is the functionality actually I am looking for.
    Here the tree sample:
    Name                        Status              Planning
    |>M1                         Lock                 In Planning
       |>M2                      Lock                 In Planning
         *M2a                    Lock                 In Planning
       |>M3                    Un Lock                Submittd
    Thank you.
    Srini

  • Changing Prompt Button Name "Go" to "Apply"

    Hi,
    I want to change the prompt button name from "Go" to "Apply".
    How to achieve this?
    Thanks,
    Satheesh

    Hi, you can refer to http://bischool.wordpress.com/2009/07/18/change-go-button-name-of-obiee-dashboard-prompt/
    or
    http://www.obinotes.com/2010/09/change-go-button-text-in-prompt-only.html
    I hope this helps.
    J.-

  • Change the button(SAVE) name in Bank information in ESS

    Dear experts,
    I want to change the button name in Bank information in ESS like SAVE to SUBMIT.
    This where i can do it in NWDS? In the message pool i'm able to change ROAD MAP text, but i'm unable to change the text button under labels in bank information in ESS.
    We are into ERP 2004 so personalization editor won't come, additionally we have to do it through NWDS.
    So in NWDS where can i change this button text?
    Regards,
    Devi.

    Hi Devi,
    In ESS applications, the buttons are present in the DC ess/per. The Text of 'Save' button is mapped to context attribute Text.ReviewButton. The node 'Text' present in FcPersInfoInterface can be mapped to the view and the text of button can be changed as
    wdContext.currentTextElement().setReviewButton("Submit");
    The text 'Submit' should appear only while creating or editing records. 
    While deleting a record, the text of the button should be 'Delete'.
    Regards,
    Anushree

  • Toggle button text

    Hi there,
    I have a button that is rendered using an alternative template, I am trying to toggle the text when it is clicked, using javascript, in the optional url redirect section I call a javascript fuction like so...
    javascript: myfunction(this)
    in the function, I have tried changing the text of the button, but the this parameter appears to be undefined, and there is no way to access the page item via the +$x+ function because there is no id rendered on the page for the item. Any help woudl be much appreciated, thanks... Anil
    Edited by: aparm on 29-Apr-2010 08:01

    I don't have an onclick event because the button is template based and is rendered as an anchor, and the function show/hides a control in addition to which I would like to change the button text. Is this possible in apex?
    Thanks...

  • Simple Button.Text not changing properly

    Hi all,
    The WPF learning curve is steep.
    I have pulled my hair over this simple Button.Text change and I can't get it to work.
    In WinForms this works:
    Public Class Form1
    Private Sub BTN_1_Click(sender As Object, e As EventArgs) Handles BTN_1.Click
    BTN_1.Text = "CLICKED BUTTON 1"
    BTN_2.Text = "CHANGED BY BUTTON 1"
    End Sub
    Private Sub BTN_2_Click(sender As Object, e As EventArgs) Handles BTN_2.Click
    BTN_2.Text = "CLICKED BUTTON 2"
    BTN_1.Text = "CHANGED BY BUTTON 2"
    End Sub
    End Class
    I want to do the same thing in WPF
    <Window x:Class="MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow" Height="350" Width="525">
    <Grid>
    <Grid.RowDefinitions>
    <RowDefinition/>
    <RowDefinition/>
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
    <ColumnDefinition/>
    <ColumnDefinition/>
    </Grid.ColumnDefinitions>
    <Grid Grid.Column="0" Grid.Row="0">
    <Button Name="BTN_1" Click="CLICK_BTN_1">
    <StackPanel>
    <TextBlock Name="CLICK_BTN_1_LABEL_1" Text="Button 1 text" VerticalAlignment="Top" Foreground="#BF000000" >
    </TextBlock>
    <TextBlock Name="CLICK_BTN_1_LABEL_2" VerticalAlignment="Top" Foreground="#BF000000">
    <Run FontSize="25">Button 1</Run>
    <Run FontSize="12">Label 2</Run>
    </TextBlock>
    </StackPanel>
    </Button>
    </Grid>
    <Grid Grid.Column="1" Grid.Row="0">
    <Button Name="BTN_2" Click="CLICK_BTN_1">
    <StackPanel>
    <TextBlock Name="CLICK_BTN_2_LABEL_1" Text="Button 2 text" VerticalAlignment="Top" Foreground="#BF000000">
    </TextBlock>
    <TextBlock Name="CLICK_BTN_2_LABEL_2" VerticalAlignment="Top" Foreground="#BF000000">
    <Run FontSize="25">Button 2</Run>
    <Run FontSize="12">Label 2</Run>
    </TextBlock>
    </StackPanel>
    </Button>
    </Grid>
    </Grid>
    </Window>
    Class MainWindow
    Private Sub CLICK_BTN_1(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles BTN_1.Click
    ' CHANGE LABEL 1 ON BUTTON 1
    CLICK_BTN_1_LABEL_1.Text = "CLICKED BUTTON 1"
    ' CHANGE LABEL 1 ON BUTTON 2
    CLICK_BTN_2_LABEL_1.Text = "CHANGED BY BUTTON 1"
    End Sub
    Private Sub CLICK_BTN_2(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles BTN_2.Click
    ' CHANGE LABEL 1 ON BUTTON 1
    CLICK_BTN_1_LABEL_1.Text = "CHANGED BY BUTTON 2"
    ' CHANGE LABEL 1 ON BUTTON 2
    CLICK_BTN_2_LABEL_1.Text = "CLICKED BUTTON 2"
    End Sub
    End Class
    This used to be so simple with WinForms, what am I doing wrong here?
    New to WPF

    Yeah, I saw that as well but now I am stuck again:
    Same project but I have put the buttons in a usercontrol
    <Window x:Class="MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Component_Changes"
    Title="MainWindow" Height="350" Width="525">
    <Grid>
    <Grid.RowDefinitions>
    <RowDefinition/>
    <RowDefinition/>
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
    <ColumnDefinition/>
    <ColumnDefinition/>
    </Grid.ColumnDefinitions>
    <Grid Grid.Column="0" Grid.Row="0">
    <Viewbox Stretch="Fill">
    <ContentControl Name="UC_BTN1">
    <ContentControl.Content>
    <local:btn1 Margin="20"/>
    </ContentControl.Content>
    </ContentControl>
    </Viewbox>
    </Grid>
    <Grid Grid.Column="1" Grid.Row="0">
    <Viewbox Stretch="Fill">
    <ContentControl Name="UC_BTN2">
    <ContentControl.Content>
    <local:btn2 Margin="20"/>
    </ContentControl.Content>
    </ContentControl>
    </Viewbox>
    </Grid>
    </Grid>
    </Window>
    btn1.xaml
    <UserControl x:Class="btn1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
    <Button Name="BTN_1" Click="CLICK_BTN_1">
    <StackPanel>
    <TextBlock Name="CLICK_BTN_1_LABEL_1" Text="Button 1 text" VerticalAlignment="Top" Foreground="#BF000000" >
    </TextBlock>
    <TextBlock Name="CLICK_BTN_1_LABEL_2" VerticalAlignment="Top" Foreground="#BF000000">
    <Run FontSize="25">Button 1</Run>
    <Run FontSize="12">Label 2</Run>
    </TextBlock>
    </StackPanel>
    </Button>
    </Grid>
    </UserControl>
    btn1.xaml.vb
    Public Class btn1
    Dim CL_BTN2 As btn2
    Private Sub CLICK_BTN_1(sender As Object, e As RoutedEventArgs) Handles BTN_1.Click
    ' CHANGE LABEL 1 ON BUTTON 1
    CLICK_BTN_1_LABEL_1.Text = "CLICKED BUTTON 1"
    ' CHANGE LABEL 1 ON BUTTON 2
    CL_BTN2.CLICK_BTN_2_LABEL_1.Text = "CHANGED BY BUTTON 1"
    End Sub
    End Class
    btn2.xaml
    <UserControl x:Class="btn2"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
    <Button Name="BTN_2" Click="CLICK_BTN_2">
    <StackPanel>
    <TextBlock Name="CLICK_BTN_2_LABEL_1" Text="Button 2 text" VerticalAlignment="Top" Foreground="#BF000000">
    </TextBlock>
    <TextBlock Name="CLICK_BTN_2_LABEL_2" VerticalAlignment="Top" Foreground="#BF000000">
    <Run FontSize="25">Button 2</Run>
    <Run FontSize="12">Label 2</Run>
    </TextBlock>
    </StackPanel>
    </Button>
    </Grid>
    </UserControl>
    btn2.xaml.vb
    Public Class btn2
    Dim CL_BTN1 As btn1
    Private Sub CLICK_BTN_2(sender As Object, e As RoutedEventArgs) Handles BTN_2.Click
    ' CHANGE LABEL 1 ON BUTTON 1
    CL_BTN1.CLICK_BTN_1_LABEL_1.Text = "CHANGED BY BUTTON 2"
    ' CHANGE LABEL 1 ON BUTTON 2
    CLICK_BTN_2_LABEL_1.Text = "CLICKED BUTTON 2"
    End Sub
    End Class
    No warnings in the code but the error is: 'Object reference not set to an instance of an object' and I thought I did, obviously not in the right way.
    New to WPF

  • Change the Standard ALV Export button text

    Hi Expert,
    I want to change the standard button ( Export Button ) text in ALV table. I had gone through some threads already but still i am not getting a clear idea on this. Could you please any one give me a clear structure on this.
    Regards,
    Sarathy.

    Here is the new solution with out creating ZCLASS.
    DATA: lo_function_dpwty       TYPE REF TO cl_prs_std_alv_funct,
            lr_functions            TYPE REF TO if_salv_wd_function_settings,
            lr_function_std         TYPE REF TO cl_salv_wd_a_function_std.
      CREATE OBJECT lo_function_dpwty
        EXPORTING
          id = 'X'.
      lr_functions = l_ref_interfacecontroller->get_model( ).
      " append row rename
      lr_function_std = lr_functions->get_function_std( if_salv_wd_c_std_functions=>edit_append_row ).
      lv_button_text = 'Add Item'.
      lo_function_dpwty->change_text( EXPORTING text        = lv_button_text
                                                           CHANGING  std_function  = lr_function_std ).
      "Delete row item rename
      lr_function_std = lr_functions->get_function_std( if_salv_wd_c_std_functions=>edit_delete_row ).
      lv_button_text = 'Delete Item'.
      lo_function_dpwty->change_text( EXPORTING text        = lv_button_text
                                                           CHANGING  std_function  = lr_function_std ).

  • External ITS change button text

    We are just implementing ESS 50.4 using WAS 4.7, Portal 6.0, and external ITS.
    In the Enrollment IAC, transaction PZ14,
    SAP Template Button href=URLPLAN
    button=TXT_INFO
    iconName=b_info
    The button displays the word 'Information' and we need to change that word.  Where does one change the text for a button on external ITS?
    I have tried SE93.
    Thank you,
    D. Maupin
    University of Kentucky

    Hello Donna,
    normally the button texts are set by the application. But did you try to override it by providing the parameter buttonLabel="something" to the function that renders the button?
    With best regards,
      TJ

  • JFileChooser's approve button text changes when file

    I have a JFileChooser used for loading some XML file(s). We want the approve button's text to be "Load". When I bring up the dialog, the button text initially reads "Load", when I select a directory, it reads "Open", if I select a file again, it goes back to "Load". So far, so good.
    The problem comes when using it in a non-English language. When I bring up the dialog, the button text initially reads the appropriately translated "Load". However, when I select a directory, it changes to the English "Open". I do not see a method to use to adjust this text. Am I missing something, or is this a bug?
    Any help is greatly appreciated.
    Jamie

    Here's some code I'll put into the public domain:
    package com.graphbuilder.desktop;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.Stack;
    import java.util.Vector;
    import java.util.StringTokenizer;
    import java.io.File;
    <p>Attempt to improve the behaviour of the JFileChooser.  Anyone who has used the
    the JFileChooser will probably remember that it lacks several useful features.
    The following features have been added:
    <ul>
    <li>Double click to choose a file</li>
    <li>Enter key to choose a file after typing the filename</li>
    <li>Enter key to change to a different directory after typing the filename</li>
    <li>Automatic rescanning of directories</li>
    <li>A getSelectedFiles method that returns the correct selected files</li>
    <li>Escape key cancels the dialog</li>
    <li>Access to common GUI components, such as the OK and Cancel buttons</li>
    <li>Removal of the useless Update and Help buttons in Motif L&F</li>
    </ul>
    <p>There are a lot more features that could be added to make the JFileChooser more
    user friendly.  For example, a drop-down combo-box as the user is typing the name of
    the file, a list of currently visited directories, user specified file filtering, etc.
    <p>The look and feels supported are Metal, Window and Motif.  Each look and feel
    puts the OK and Cancel buttons in different locations and unfortunately the JFileChooser
    doesn't provide direct access to them.  Thus, for each look-and-feel the buttons must
    be found.
    <p>The following are known issues:  Rescanning doesn't work when in Motif L&F.  Some
    L&Fs have components that don't become available until the user clicks a button.  For
    example, the Metal L&F has a JTable but only when viewing in details mode.  The double
    click to choose a file does not work in details mode.  There are probably more unknown
    issues, but the changes made so far should make the JFileChooser easier to use.
    public class FileChooserFixer implements ActionListener, KeyListener, MouseListener, Runnable {
         Had to make new buttons because when the original buttons are clicked
         they revert back to the original label text.  I.e. some programmer decided
         it would be a good idea to set the button text during an actionPerformed
         method.
         private JFileChooser fileChooser = null;
         private JButton okButton = new JButton("OK");
         private JButton cancelButton = new JButton("Cancel");
         private JList fileList = null;
         private JTextField filenameTextField = null;
         private ActionListener actionListener = null;
         private long rescanTime = 20000;
         public FileChooserFixer(JFileChooser fc, ActionListener a) {
              fileChooser = fc;
              actionListener = a;
              fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
              okButton.setMnemonic('O');
              cancelButton.setMnemonic('C');
              JButton oldOKButton = null;
              JButton oldCancelButton = null;
              JTextField[] textField = getTextFields(fc);
              JButton[] button = getButtons(fc);
              JList[] list = getLists(fc);
              String laf = javax.swing.UIManager.getLookAndFeel().getClass().getName();
              if (laf.equals("javax.swing.plaf.metal.MetalLookAndFeel")) {
                   oldOKButton = button[0];
                   oldCancelButton = button[1];
                   filenameTextField = textField[0];
                   fileList = list[0];
              else if (laf.equals("com.sun.java.swing.plaf.windows.WindowsLookAndFeel")) {
                   oldOKButton = button[0];
                   oldCancelButton = button[1];
                   filenameTextField = textField[0];
                   fileList = list[0];
              else if (laf.equals("com.sun.java.swing.plaf.motif.MotifLookAndFeel")) {
                   oldOKButton = button[0];
                   oldCancelButton = button[2];
                   button[1].setVisible(false); // hides the do-nothing 'Update' button
                   button[3].setVisible(false); // hides the disabled 'Help' button
                   filenameTextField = textField[1];
                   fileList = list[0];
              fix(oldOKButton, okButton);
              fix(oldCancelButton, cancelButton);
              okButton.addActionListener(this);
              cancelButton.addActionListener(this);
              fileList.addMouseListener(this);
              addKeyListeners(fileChooser);
              new Thread(this).start(); // note: rescanning in Motif feel doesn't work
         public void run() {
              try {
                   while (true) {
                        Thread.sleep(rescanTime);
                        Window w = SwingUtilities.windowForComponent(fileChooser);
                        if (w != null && w.isVisible())
                             fileChooser.rescanCurrentDirectory();
              } catch (Throwable err) {}
         public long getRescanTime() {
              return rescanTime;
         public void setRescanTime(long t) {
              if (t < 200)
                   throw new IllegalArgumentException("Rescan time >= 200 required.");
              rescanTime = t;
         private void addKeyListeners(Container c) {
              for (int i = 0; i < c.getComponentCount(); i++) {
                   Component d = c.getComponent(i);
                   if (d instanceof Container)
                        addKeyListeners((Container) d);
                   d.addKeyListener(this);
         private static void fix(JButton oldButton, JButton newButton) {
              int index = getIndex(oldButton);
              Container c = oldButton.getParent();
              c.remove(index);
              c.add(newButton, index);
              newButton.setPreferredSize(oldButton.getPreferredSize());
              newButton.setMinimumSize(oldButton.getMinimumSize());
              newButton.setMaximumSize(oldButton.getMaximumSize());
         private static int getIndex(Component c) {
              Container p = c.getParent();
              for (int i = 0; i < p.getComponentCount(); i++) {
                   if (p.getComponent(i) == c)
                        return i;
              return -1;
         public JButton getOKButton() {
              return okButton;
         public JButton getCancelButton() {
              return cancelButton;
         public JList getFileList() {
              return fileList;
         public JTextField getFilenameTextField() {
              return     filenameTextField;
         public JFileChooser getFileChooser() {
              return fileChooser;
         protected JButton[] getButtons(JFileChooser fc) {
              Vector v = new Vector();
              Stack s = new Stack();
              s.push(fc);
              while (!s.isEmpty()) {
                   Component c = (Component) s.pop();
                   if (c instanceof Container) {
                        Container d = (Container) c;
                        for (int i = 0; i < d.getComponentCount(); i++) {
                             if (d.getComponent(i) instanceof JButton)
                                  v.add(d.getComponent(i));
                             else
                                  s.push(d.getComponent(i));
              JButton[] arr = new JButton[v.size()];
              for (int i = 0; i < arr.length; i++)
                   arr[i] = (JButton) v.get(i);
              return arr;
         protected JTextField[] getTextFields(JFileChooser fc) {
              Vector v = new Vector();
              Stack s = new Stack();
              s.push(fc);
              while (!s.isEmpty()) {
                   Component c = (Component) s.pop();
                   if (c instanceof Container) {
                        Container d = (Container) c;
                        for (int i = 0; i < d.getComponentCount(); i++) {
                             if (d.getComponent(i) instanceof JTextField)
                                  v.add(d.getComponent(i));
                             else
                                  s.push(d.getComponent(i));
              JTextField[] arr = new JTextField[v.size()];
              for (int i = 0; i < arr.length; i++)
                   arr[i] = (JTextField) v.get(i);
              return arr;
         protected JList[] getLists(JFileChooser fc) {
              Vector v = new Vector();
              Stack s = new Stack();
              s.push(fc);
              while (!s.isEmpty()) {
                   Component c = (Component) s.pop();
                   if (c instanceof Container) {
                        Container d = (Container) c;
                        for (int i = 0; i < d.getComponentCount(); i++) {
                             if (d.getComponent(i) instanceof JList)
                                  v.add(d.getComponent(i));
                             else
                                  s.push(d.getComponent(i));
              JList[] arr = new JList[v.size()];
              for (int i = 0; i < arr.length; i++)
                   arr[i] = (JList) v.get(i);
              return arr;
         public File[] getSelectedFiles() {
              File[] f = fileChooser.getSelectedFiles();
              if (f.length == 0) {
                   File file = fileChooser.getSelectedFile();
                   if (file != null)
                        f = new File[] { file };
              return f;
         public void mousePressed(MouseEvent evt) {
              Object src = evt.getSource();
              if (src == fileList) {
                   if (evt.getModifiers() != InputEvent.BUTTON1_MASK) return;
                   int index = fileList.locationToIndex(evt.getPoint());
                   if (index < 0) return;
                   fileList.setSelectedIndex(index);
                   File[] arr = getSelectedFiles();
                   if (evt.getClickCount() == 2 && arr.length == 1 && arr[0].isFile())
                        actionPerformed(new ActionEvent(okButton, 0, okButton.getActionCommand()));
         public void mouseReleased(MouseEvent evt) {}
         public void mouseClicked(MouseEvent evt) {}
         public void mouseEntered(MouseEvent evt) {}
         public void mouseExited(MouseEvent evt) {}
         public void keyPressed(KeyEvent evt) {
              Object src = evt.getSource();
              int code = evt.getKeyCode();
              if (code == KeyEvent.VK_ESCAPE)
                   actionPerformed(new ActionEvent(cancelButton, 0, cancelButton.getActionCommand()));
              if (src == filenameTextField) {
                   if (code != KeyEvent.VK_ENTER) return;
                   fileList.getSelectionModel().clearSelection();
                   actionPerformed(new ActionEvent(okButton, 0, "enter"));
         public void keyReleased(KeyEvent evt) {}
         public void keyTyped(KeyEvent evt) {}
         public void actionPerformed(ActionEvent evt) {
              Object src = evt.getSource();
              if (src == cancelButton) {
                   if (actionListener != null)
                        actionListener.actionPerformed(evt);
              else if (src == okButton) {
                   File[] selectedFiles = getSelectedFiles();
                   Object obj = fileList.getSelectedValue(); // is null when no file is selected in the JList
                   String text = filenameTextField.getText().trim();
                   if (text.length() > 0 && (obj == null || selectedFiles.length == 0)) {
                        File d = fileChooser.getCurrentDirectory();
                        Vector vec = new Vector();
                        StringTokenizer st = new StringTokenizer(text, "\"");
                        while (st.hasMoreTokens()) {
                             String s = st.nextToken().trim();
                             if (s.length() == 0) continue;
                             File a = new File(s);
                             if (a.isAbsolute())
                                  vec.add(a);
                             else
                                  vec.add(new File(d, s));
                        File[] arr = new File[vec.size()];
                        for (int i = 0; i < arr.length; i++)
                             arr[i] = (File) vec.get(i);
                        selectedFiles = arr;
                   if (selectedFiles.length == 0) {
                        Toolkit.getDefaultToolkit().beep();
                        return;
                   if (selectedFiles.length == 1) {
                        File f = selectedFiles[0];
                        if (f.exists() && f.isDirectory() && text.length() > 0 && evt.getActionCommand().equals("enter")) {
                             fileChooser.setCurrentDirectory(f);
                             filenameTextField.setText("");
                             filenameTextField.requestFocus();
                             return;
                   boolean filesOnly = (fileChooser.getFileSelectionMode() == JFileChooser.FILES_ONLY);
                   boolean dirsOnly = (fileChooser.getFileSelectionMode() == JFileChooser.DIRECTORIES_ONLY);
                   if (filesOnly || dirsOnly) {
                        for (int i = 0; i < selectedFiles.length; i++) {
                             File f = selectedFiles;
                             if (filesOnly && f.isDirectory() || dirsOnly && f.isFile()) {
                                  Toolkit.getDefaultToolkit().beep();
                                  return;
                   fileChooser.setSelectedFiles(selectedFiles);
                   if (actionListener != null)
                        actionListener.actionPerformed(evt);

  • WPF: How to change the radio button text background?

    Is there a simple way that we can change the radio button text background? thx!
    JaneC

    If you literally mean the text background.
    It's a contentcontrol.
    You can put whatever you like in it to hold the text.
    As illustrated by my article:
    http://social.technet.microsoft.com/wiki/contents/articles/30173.wpf-tips-radiobutton-alignment.aspx
    Thus:
    <RadioButton Name="rbnIsolated">
    <TextBlock Text="Isolated Storage" Margin="0,-10,0,0" FontSize="22" Background="Pink"/>
    </RadioButton>
    Makes just the text background pink
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • Can I change the language for quiz buttons and messages?

    Not sure if this has been covered but I have a Spanish ppt deck and need to make sure the quiz buttons and messages are in Spanish too, how can I do this, please?

    The style of the buttons can only be changed in the Object Style Manager (or using the Properties panel after inserting). But the labels on the button are in the Preferences. But you are correct, the Quiz Preferences are not available when a file is not open, excuse me, only the Recording preferences are there.
    So only the two other ways are possible not to have to repeat this action every time: either export/import the proper preferences from one file to another or use the template approach (which I'm always using, because I also want to have some advanced actions ready).
    Exporting Preferences can be done using the File, Export option. Templates cannot be created from a file in CP5.5 - is possible in CP6. But if you change the extension from cptx to cptl, you have a template.
    Again, very sorry for the confusion, Andy
    Lilybiri

Maybe you are looking for

  • Can any help me i want to downgrade iphone ios 6.1.1 back to 5.1.1

    i am having issue with iOS 6.1.1 it give me so much touble and issues. most time it chashes while in the middle of something i would be doing text, calling, listen to music , etc.. it happened with i installed iOS 6.0 the to 6.0.1 and the last one wa

  • Report looks like.

    HI Gurus, 0FIGL_O02  : General Ledger: Line Items 0FIAP_O03  :  FIAP: Line item 0FIGL_O02 having fields:- Company code,  fiscal year,  Document No., Profit Centor 100,                    05,                 10001,                un01 100,            

  • Hair in Zen mi

    Ok I bought a 6gb zen micro today. When i opened it from my box, there was a hair between the LCD screen and the glass? ANyway, I can't seem to see a way to take it out. I think it's just under the glass. Any suggestions? What a funny situation..

  • Status 69c2 on Verify APDU command

    Hi, I have successfully complete the APDU command new CommandAPDU(0x00, 0x20, 0x00, 0x01, new byte[]{ 0x31, 0x32, 0x33, 0x34, (byte)0xFF, (byte)0xFF, (byte)0xFF, (byte)0xFF, (byte)0xFF, (byte)0xFF } ) for verify with the correct pin code (1234). I ge

  • Potege S100: Advanced Port Replicator/Docking Station

    I need to know which docking station to use please. Advanced Port Replicator III Docking Station Will this one work?