Smooth Content Transition on Button Click?

Hello,
I am creating a website with a content box and 4 buttons which activate 4 different pages of content. I would like the content box to resize smaller on one page when activated by a button and resize back to normal when clicked on any other button. I figure I will use a shape tween to resize the box to avoid distortion. So, how do I program each button to transition properly if the page with the smaller box is displayed?
Thanks

All Tweens are coded pretty much the same, where you specify the starting value of the property of the object and the final value it should reach for that property at the end of the Tween.
example = Tween(instanceName, propertyToChange, easingMethod, startingValue, finalValue, changeDuration, durationBasis (secs or frames))
Since you're not really scaling the area, just reducing the width (I think), you don't have to Tween the scale property, but can tween the width property instead.
So if your clicking a button that's related to a display that's gonna be 960 wide, then that's the final value that you assign.  If it's gonna be the 760 display, then that's the value you assign.
If you did want to go with tweening the scale, and you end up picking the 960 to represent the 100% scale, you want to specify the percent scale for the finalValue (100x760/960 = 79.2%)... so the finalValue would be either 1.0 or 0.792

Similar Messages

  • Embedding a text file to display its contents on a button click

    I am quite a beginner in this platform. I have text file with me and I want to display its contents to the user(Read Only) on a button click event in my app.(using C#)
    I wish to know how to link/ embed this text file to my app and once it is embedded, how to deploy the file reading.
    P.S. i would really appreciate it if you can provide some sample code.

    thx Rob..plz check this piece of code..
    namespace Syllabus
        public partial class MainPage : PhoneApplicationPage
            public MainPage()
                InitializeComponent();
            private async Task Button_Click(object sender, RoutedEventArgs e)
                try
                      System.IO.Stream src = Application.GetResourceStream(new Uri("Syllabus;vbu.txt", UriKind.Relative)).Stream;
                      string text;
                      using (StreamReader sr = new StreamReader(src))
                          text = sr.ReadToEnd();
                      TextBlock t = new TextBlock();
                      t.Text = text;
                  catch
                      MessageBox.Show("File Not Found");
    On running the code always chokes within the constructor itself ...what's wrong?

  • Select part of jtextarea content over a button click

    Hi,
    i would like to do something quite simple, but i don't manage to do it and don't understand why my code doesn't work :s
    Actually, i would like to select a part of the text contained in a jtextarea when the user clicks over a jbutton ; here is my code:
    import java.awt.GridLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JTextArea;
    public class BasicFrame extends JFrame implements ActionListener {
         private static final long serialVersionUID = 1L;
         private JTextArea jta;
         private JButton b;
         public BasicFrame() {
              this.setSize(400,400);
              this.getContentPane().setLayout(new GridLayout(2,1));
              this.getContentPane().add(this.jta = new JTextArea());
              this.getContentPane().add(this.b = new JButton("foo"));
              this.b.addActionListener(this);
              this.setVisible(true);
              this.setDefaultCloseOperation(EXIT_ON_CLOSE);
              this.setLocationRelativeTo(null);
         @Override
         public void actionPerformed(ActionEvent arg0) {
         //     this.jta.select(2, 5);
              this.jta.setCaretPosition(2);
              this.jta.moveCaretPosition(5);
         public static void main(String [] args) {
              BasicFrame bs = new BasicFrame();
              bs.jta.setText("this crap won t work");
    }notice that this solution doesn't work, but if the "select" (or setcaret+movecaret) instruction is put directly in the main, it will work
    Suggestions? Advices? Answers?
    Thanks in advance!

    the code does work, problem is the textArea needs the focus to show the highlighted (selected) text,
    but when you click the button, focus goes to the button.
    run the code then tab (not click) to the textArea, you will see the text selected
    simple fix is to add this line at the end of the constructor
    b.setFocusable(false);

  • Change Button content when Radio button clicked...

    Within my BSP code I have an OnClientClick event against the Radio button tag.
    What I need to do is to have some kind of Javascript that changes the context (text) or colour of a button if the Radio button is clicked.
    I know very little of how to achieve this and would relish any guidance about how I can get this to work.
    I understand that I need to use a reference/handle to the button and change it's values via javascript, but how can I embed this code into my BSP code, what code do I use, and more importantly how can I obtain this reference/handle on the buttion?.
    Jon

    Hi Jon,
    below an Example to do this
    (due to security forum restriction replace scrip t with script and o nclick with onclick)
    <html>
    <head>
    <scrip t>
    function change_button_text(v_object){
    var button = document.getElementById("id_button");
    var new_text = v_object.value + ' Clicked!';
    if (button.childNodes[0])
            button.childNodes[0].nodeValue=new_text;
        else if (button.value)
            button.value=new_text;
    </scrip t>
    </head>
    <body>
    <form>
    <input type="radio" name="***" value="male" o nclick="change_button_text(this)"/> Male<br />
    <input type="radio" name="***" value="female" o nclick="change_button_text(this)"/> Female
    </form>
    <button id="id_button">Button Text</button>
    </body>
    </html>
    Edited by: alessandro spadoni on Apr 28, 2011 9:56 AM

  • How to display the content once the button is clicked

    Hello!  Just joined today, and my apologize for my huge noobness.
    I'm still learning how to use Flash... and am still struggling on one thing.  It may seem simple to the most of you -- how exactly do you have the content displayed once you click the button?  I'm attempting to have the content for each navigation link button to show up each time it's clicked.  Still a failure.
    Thank you in advance!

    The four frames of a button are related to the button's interactivity and have nothing to do with using the button to display anything beyond itself.   The first three frames ((Up, Over, Down) are used to depict how the button appears for the three possible states of interaction (None, Hover, Press). The "Hit" frame of a button is used to define the interactive area of a button but does nothig as far as contributing to the visual elements of the button.
    As far as getting step-by-step instruction goes, you should try visiting a site like Lynda.com to get some training in using Flash.  You can also try searching Google to find tutorials that others have already written.

  • Smooth page transitions?

    I've been trying to find out how you make smooth page
    transitions
    on top of my currentpage no matter which page I got loaded
    and
    no matter what section I go to next.
    What I mean is that I wanna use the same animation ON TOP of
    the
    current page so that it gets covered while swithing to
    another section
    of the website. I dont want help with the actual animation
    but I wanna
    know how I apply it easily and correctly to my webpage.
    To show you what I mean check these professional web
    templates
    (just click on the different sections a few times and you'll
    understand
    what Im talking about:
    http://www.template-help.com/screenshots/13400/13416.swf
    http://www.template-help.com/screenshots/13600/13613.swf
    Thx for listening/ AquaStealth

    Wow, those transitions chugged on my machine.
    Anyway, there are probably several ways to accomplish the
    same effect. Looks like they just chose to run their "transition"
    movie clip on top of the other stuff. So, if you clicked on a
    button to go to another section, your transition movie clip plays,
    covering the other images. When it hits the keyframe that it's
    completely covering the images underneath, actionscript tells the
    main timeline (or loaded swfs/jpegs) to advance to the next
    section. Once there, the movie clip on top is told to continue,
    therefore revealing the new section.

  • How can I display a new scene in JavaFX 2.2? For example after button click

    how to display new scene after button click in the main window, I want the main window and the new scene are in one stage. thx

    You can change the scene by calling stage.setScene(new Scene(newContentParent));
    I don't think you are quite asking for a complete scene change though as you "want the main window and the scene in one stage". The main window is a stage (as Stage extends Window). And a given stage can only contain one scene at a time (though you can swap it out by calling setScene as described earlier).
    What I think you are really asking for how can you replace some content part of the active Scene on the Stage. To do that you can set a layout manager like a HBox or a BorderPane as the root of your scene, then change out the content of the layout manager. For example:
    final BorderPane layout = new BorderPane();
    layout.setCenter(new Label("Dogbert");
    final Button nav = new Button("Next");
    layout.setLeft(nav);
    nav.setOnAction(new EventHandler<ActionEvent>() {
      @Override public void handle(ActionEvent actionEvent) {
        layout.setCenter(new Label("Dilbert"));       
    });In the above short sample code, if you wanted to change the scene rather than the a pane, then you would call stage.setScene rather than layout.setCenter.
    There is a complete executable example with multiple content panes and some styling here:
    http://stackoverflow.com/questions/13556637/how-to-have-menus-in-java-desktop-application

  • Download the PDF Form as a attachment when button click in BSP application

    Hi All,
    I have scenario, when button click in the BSP application PDF Form want to download in the IE (like one window open with Open,Save and cancel button).
    I have written this code:
    data: pdf type fpformoutput-pdf.
    < Logic for populate value to pdf field ....
    .>
    response->set_header_field(
                         name  = 'cache-control'
                         value = 'max-age=0' ).
      response->set_header_field(
                         name  = 'content-disposition'
                         value = 'attachment; filename=webforms.pdf' ).
      response->set_data( data   = pdf ).
    Once button is clicked pop up is opened and closed automatically because of browser or adobe reader issue.
    How can I resolve this problem ?
    In the IE i need to change any settings ?
    IE version = 7.0
    Adobe reader = 9.0
    I have tried in the same code with IE = 6.0 and adobe reader 8.1.2 its getting download the pdf form working fine.
    The same think i want in IE 7.0 and adobe reader 9.0, what needs to be done ?
    Regards,
    Boopathi M

    Hello Ravi,
    Best would be to bind the dataSource of the InteractiveForm ui element to the parent node containing the table's data. Then specify a name of a template to be created in the templateSource and hit <enter>. Some popups later, the system will have created a template from the structure of the context. All you need to do now is to drag&drop the data structure inside the template designer to the template itself. This will result in a table. Save, activate and return the Web Dynpro view. Don't forget to unbind the pdfSource and enjoy.
    Best regards,
    Thomas

  • Resizing JFrame on button click to show an image on the JFrame

    Dear All,
    I have a JFrame which has an empty label. On button click I want to set an icon for the label and want the JFrame to be resized to show that icon. I am using frame.pack() and I am not using any other sizing function. The code that I have right now, prints the image on the panel, but does not resize the frame to show the image. Pleae could someone help.package gui;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.Font;
    import java.awt.Toolkit;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.ItemEvent;
    import java.awt.event.ItemListener;
    import java.awt.event.KeyEvent;
    import java.awt.event.KeyListener;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import javax.swing.ImageIcon;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    public class ComponentDemo extends JPanel implements ActionListener,
    ItemListener, MouseListener, KeyListener {
         private JTextArea textarea;
         private JButton button;
         private final static String newline = "\n";
         private JLabel imageIcon;
         public ComponentDemo() {
              button = new JButton("JButton welcomes you  to CO2001");
              button.addActionListener(this);
              add(button);
              textarea = new JTextArea(10, 50);
              textarea.setEditable(false);
              addMouseListener(this);
              textarea.addKeyListener(this);
              JScrollPane scrollPane = new JScrollPane(textarea);
              add(scrollPane);
              imageIcon = new JLabel();
              add(imageIcon);
              setBackground(Color.pink);
              new JScrollPane(this);
          * Create the GUI and show it. For thread safety, this method should be
          * invoked from the event-dispatching thread.
         private static void createAndShowGUI() {
              // Create and set up the window.
              JFrame frame = new JFrame("Simple FrameDemo");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
              frame.setLocation(700, 200);
              // get the content pane and set the background colour;
              frame.add(new ComponentDemo());
         //     frame.setSize(screenSize);
              // frame.getContentPane().setBackground(Color.cyan);
              // Display the window.
              frame.pack();
              frame.setVisible(true);
              frame.setResizable(true);
         public static void main(String[] args) {
              // Schedule a job for the event-dispatching thread:
              // creating and showing this application's GUI.
              javax.swing.SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        createAndShowGUI();
         @Override
         public void actionPerformed(ActionEvent e) {
              // TODO Auto-generated method stub
              if (e.getSource() instanceof JButton) {
                   // System.out.println(e.getSource());
                   String text = ((JButton) e.getSource()).getText();
                   textarea.append(text + newline);
                   textarea.setBackground(Color.cyan);
                   textarea.setForeground(Color.BLUE);
                   textarea.setCaretPosition(textarea.getDocument().getLength());
                   imageIcon.setIcon(createImageIcon("SwingingDuke.png",
                   "Image to be displayed"));
         @Override
         public void itemStateChanged(ItemEvent arg0) {
              // TODO Auto-generated method stub
         @Override
         public void mouseClicked(MouseEvent arg0) {
              textarea.append("A Mouse click welcomes you to CO2001" + newline);
              textarea.setBackground(Color.green);
              textarea.setCaretPosition(textarea.getDocument().getLength());
         @Override
         public void mouseEntered(MouseEvent arg0) {
              // TODO Auto-generated method stub
         @Override
         public void mouseExited(MouseEvent arg0) {
              // TODO Auto-generated method stub
         @Override
         public void mousePressed(MouseEvent arg0) {
              // TODO Auto-generated method stub
         @Override
         public void mouseReleased(MouseEvent arg0) {
              // TODO Auto-generated method stub
         @Override
         public void keyPressed(KeyEvent e) {
              System.out.println(e.getKeyChar());
              textarea.append("The key " + e.getKeyChar()
                        + " click welcomes you to CO2001" + newline);
              textarea.setBackground(Color.YELLOW);
              textarea.setFont(new Font("Arial", Font.ITALIC, 16));
              textarea.setCaretPosition(textarea.getDocument().getLength());
         @Override
         public void keyReleased(KeyEvent e) {
              System.out.println(e.getKeyChar());
              // textarea.append("The key "+
              // e.getKeyChar()+" click welcomes you to CO2001" + newline);
              // textarea.setBackground(Color.green);
              // textarea.setCaretPosition(textarea.getDocument().getLength());
         @Override
         public void keyTyped(KeyEvent e) {
              // TODO Auto-generated method stub
              System.out.println(e.getKeyChar());
              // textarea.append("The key "+
              // e.getKeyChar()+" click welcomes you to CO2001" + newline);
              // textarea.setBackground(Color.blue);
              // textarea.setCaretPosition(textarea.getDocument().getLength());
         /** Returns an ImageIcon, or null if the path was invalid. */
         protected ImageIcon createImageIcon(String path, String description) {
              java.net.URL imgURL = getClass().getResource(path);
              if (imgURL != null) {
                   System.out.println("found");
                   return new ImageIcon(imgURL, description);
              } else {
                   System.err.println("Couldn't find file: " + path);
                   return null;
    }

    myJPanel.setPerferredSize(new Dimension(new_width, new_hight));
    myJFrame.pack();

  • How do you fire a button click event on apex page from fancybox iframe that was created by page

    I am trying to fire off the button click event from fancybox iframe. The apex page has a button that launches a fancybox iframe which is loaded with an APEX form. On close of that fancy box, I am trying to fire a click event on the parent page which will refresh a div with html that is created with plsql. The button on the page works as expected when clicked from the page. It will show a debug alert message to prove it was called and then load the div with the correct data. I am unable to fire off this button click from the fancybox iframe when it closes.
    A couple of points:
    I using Plug-in: Execute PL/SQL Code and Return Content ("PLUGIN_MULEDEV.SERVER_REGION_REFRESH") to place the create fancybox statement. It is used to populate a div using plsql.
    The name of the button on the main page is P2020_REFRESH_SECTION_BUILDER_BTN.
    The click dynamic action on the button is calling the plugin to replace the html in the div.
    The data in the form in the fancybox is being saved to the database. On close of the fancybox box I want to refresh the div so the new record is included in the div html.
    Can anyone help. Here is the fancybox code:
      function customProcessOnReadyState4(){
        for (var i=0;i<11;i++){
          $( "#tabs"+i ).tabs();
          $("#createNewExerciseLink"+i).fancybox({
              ''width''         : ''60%'',
              ''height''        : ''70%'',
              ''autoScale''     : true,
              ''transitionIn''  : 200,
              ''transitionOut'' : 200,
              ''type''          : ''iframe'',
              ''onClosed''         : function() {
                                         window.parent.$(''#P2020_REFRESH_SECTION_BUILDER_BTN'').click();
    Here are the dynamic actions assigned to the button:
    5 - Execute JavaScript Code
    alert("Starting refresh");
    10 - Execute PL/SQL Code and Return Content [Plug-in]
    begin
      SCTUI.create_sct_tabs2(:P2020_CREATE_SECTION_LOV, '1');
    end;

    user setActionListener...
    <af:setActionListener from="#{bindings.XXX.inputValue" to="#{backingbean.variable}"
                  <af:inputText value="#{bindings.Email.inputValue}"
                                label="#{bindings.Email.hints.label}"
                                binding="#{backingBeanScope.backing_ShuttlePage.it2}"
                                id="it2">
                    <f:validator binding="#{bindings.Email.validator}"/>
                  </af:inputText>
                  <af:commandButton text="commandButton 2"
                                    binding="#{backingBeanScope.backing_ShuttlePage.cb2}"
                                    id="cb2" action="passing">
                    <af:setActionListener from="#{bindings.Email.inputValue}"
                                          to="#{processScope.detail}"/>
                  </af:commandButton>next jsf page:
                <af:outputText value="#{processScope.detail}"
                               binding="#{backingBeanScope.backing_ProcessScope.ot1}"
                               id="ot1"/>setPropertyListener also should work
    <af:setPropertyListener from="#{bindings.Email.inputValue}" to="#{processScope.detail}" type="action"/>

  • Content Player navigation buttons not working for everyone

    Hi,
    Some of the participants are experiencing the issue with Content Player navigation buttons 'Continue' , 'End Test' etc..
    We suspect it is because of the version of Java runtime environment on thier PC after eliminating the browser cache, or IE version issues.
    Could anyone please tell me what are the supported Java versions for proper functioning of LSO600 Content player?
    We are on ECC 6.0, LSO600 and SAP portal version EP7.
    Any help is highly appreciated.
    Thanks,
    Jaya

    Hello Jaya,
    java supported version is more than JRE 1.4.2._07
    and IE is IE6 and IE7
    LSO supports Java 1.4.02_07 to java 1.6
    Browsers:
    Micorsoft IE6 and IE7.
    Firefox from 2.2
    If there is more than one Java version on the pc, try forcing the browser to use a certain version of Java by going to the control panel -> Java -> in java control panel go to -> java tab -> Click view in Java Applet run time settings -> Select one of the JRE to enable it and force the browser to use this version of Java.
    Regards,
    Manny

  • Control two functions on one button click

    Hello,
    first off, I am relatively new to actionscript 3.0. I was
    wondering if anyone knows how I can control two events on one (the
    same) button click. On click, the first function must jump the user
    to a particular frame label and at the same time trigger a second
    function which is a movie clip on that particular frame. I must
    note that the event listener is attached to an actual Button and
    not a movie clip.
    Any help would be greatly appreciated.

    Thanks for the quick response. I tried out your solution but
    I get the following error...
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at index_fla::MainTimeline/rev()
    at index_fla::MainTimeline/resources()
    I also tried to create another event listener on Mouse_UP
    ex:
    topNav1_btn.addEventListener(MouseEvent.CLICK, resources);
    topNav1_btn.addEventListener(MouseEvent.MOUSE_UP, rev);
    but I get another strange error...
    ## [Tweener] Error: [object MovieClip] raised an error while
    executing the 'onComplete'handler.
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at MethodInfo-218()
    at Function/
    http://adobe.com/AS3/2006/builtin::apply()
    at caurina.transitions::Tweener$/updateTweenByIndex()
    at caurina.transitions::Tweener$/updateTweens()
    at caurina.transitions::Tweener$/onEnterFrame()
    ## [Tweener] Error: [object MovieClip] raised an error while
    executing the 'onComplete'handler.
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at MethodInfo-241()
    at Function/
    http://adobe.com/AS3/2006/builtin::apply()
    at caurina.transitions::Tweener$/updateTweenByIndex()
    at caurina.transitions::Tweener$/updateTweens()
    at caurina.transitions::Tweener$/onEnterFrame()
    any other thoughts? Thanks in advance.

  • Invoking another form from a button click..

    Hi,...
    I am a beginner in Java Swing Programming using the Netbeans IDE.I want to invoke a form from an existing form thru a button click; thnx...
    Code:
    1st form : NewJFrame.java
    public class NewJFrame extends javax.swing.JFrame {
    /** Creates new form NewJFrame */
    public NewJFrame() {
    initComponents();
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {
    jButton1 = new javax.swing.JButton();
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    jButton1.setText("jButton1");
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(layout.createSequentialGroup()
    .addGap(151, 151, 151)
    .addComponent(jButton1)
    .addContainerGap(176, Short.MAX_VALUE))
    layout.setVerticalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(layout.createSequentialGroup()
    .addGap(130, 130, 130)
    .addComponent(jButton1)
    .addContainerGap(147, Short.MAX_VALUE))
    pack();
    }// </editor-fold>
    * @param args the command line arguments
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new NewJFrame().setVisible(true);
    // Variables declaration - do not modify
    private javax.swing.JButton jButton1;
    // End of variables declaration
    2nd Form:
    public class NewJFrame1 extends javax.swing.JFrame {
    /** Creates new form NewJFrame1 */
    public NewJFrame1() {
    initComponents();
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGap(0, 400, Short.MAX_VALUE)
    layout.setVerticalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGap(0, 300, Short.MAX_VALUE)
    pack();
    }// </editor-fold>
    * @param args the command line arguments
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new NewJFrame1().setVisible(true);
    }

    shelton141 wrote:
    using the Netbeans IDE.I want to invoke a form from an existing form thru a button clickNote that, instead of JFrame, we normally use JDialog (either a modal or a non modal) for secondary windows.
    We can add an actionPerformed event to the jButton1 in design mode, or manually like this:
    public NewJFrame() {
        initComponents();
        jButton1.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                new NewJFrame1().setVisible(true);
    }

  • Creating tables with a button click

    can anyone give me a sample code for creating multiple tables in a scrollpane
    with a button click.
    Thanks

    Here is an example that returns a JTable in a JScrollPane in a JInternalFrame:
    import java.awt.*;
    import javax.swing.JFrame;
    import javax.swing.JInternalFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import java.awt.GridLayout;
    public class TablaJ extends JPanel{
         public TablaJ(){
         public TablaJ(String data[][], String columnNames[]){
             super(new GridLayout(1,0));
             final JTable table = new JTable(data, columnNames);
            //Create the scroll pane and add the table to it.
            JScrollPane scrollPane = new JScrollPane(table);
            //Add the scroll pane to this panel.
            add(scrollPane);
        static JInternalFrame crearFrameConTabla(String data[][], String columnNames[], String tabla) {
            //Create and set up the window.
            JInternalFrame frame = new JInternalFrame(tabla,true,true,true,true);
            frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
            //Create and set up the content pane.
            TablaJ newContentPane = new TablaJ(data, columnNames);
            newContentPane.setOpaque(true); //content panes must be opaque
            frame.setContentPane(newContentPane);
            frame.pack();
            return frame;
    }

  • Active Content W/ Rollover Buttons Help

    I'm pretty new to web design, and I've been using dreamweaver
    to create webpages. My problem is I have some rollover buttons I
    made in fireworks and imported to dreamweaver as fireworks html,
    and in IE7 I get the "activate active content" error. I installed
    the dreamweaver 8.2 update, thinking that would fix it, but
    although I can see that the extension to automatically change the
    code so it'll work in IE in my preferences, the option to do so
    never comes up. I read somewhere that it doesn't support image
    tags, which I think mine are. So my question is: is there an easy
    fix for this other than the update, or at least a fix for a
    beginner who doesn't know javascript? I've googled to my heart's
    content, and everything I've come across has been over my head.
    Please someone help me with this. I can also post the code if
    that'll help, just let me know. Thanks in advance!
    Hiram

    I'm not quite sure what the actual issue is here but several
    things seem to
    be confused.
    My problem is I have some rollover buttons I made in
    fireworks and
    > imported to dreamweaver as fireworks html, and in IE7 I
    get the "activate
    > active content" error.
    Buttons made in Fireworks and activated with Javascript are
    not related to
    the "activate active content" issue.
    Do you have some Flash or other active content on your page
    which is
    triggering the "click to activate" which you're confusing
    with your
    Fireworks buttons?
    I installed the dreamweaver 8.2 update, thinking that
    > would fix it, but although I can see that the extension
    to automatically
    > change
    > the code so it'll work in IE in my preferences, the
    option to do so never
    > comes
    > up. I read somewhere that it doesn't support image tags,
    which I think
    > mine
    > are.
    I don't quite follow this part.
    So my question is: is there an easy fix for this other than
    the update, or
    > at least a fix for a beginner who doesn't know
    javascript?
    Web content driven by Javascript is not active content so I'm
    not sure what
    the issue is or what needs fixing.
    Can you post a link to your page?
    Regards
    John Waller

Maybe you are looking for

  • New Computer, lost disc, have serial, can I put on new computer

    Does anyone know if I can download the software for elements 2.0 from their site. I have my serial number, lost the disc and want to install in n my new computer. I just got 7.0 and dont like it, it doesnt have the photomerge that 2.0 elements had. a

  • How to open a password-protected PDF in Safari on iPad(3)?

    I have some password-protected PDFs available on my public-facing website (hosted by MS Office365) that I'm unable to open in Safari on my iPad(3). When attempting to open these files using Safari on my iPad, I receive a grey screen with no presentat

  • Folio Producer _Export to Desktop

    Windows XP (soon to be Windows 7) InDesign CS5.5 Fully updated. Only downloaded Extensions for Folio Builder today. I made a sample Folio and all went well. Uploaded to the Folio Producer. After some rigmarole - I got it Published. Then I went to Exp

  • Acceptance Flag not appearing in Service Entry Sheet

    Hi experts, At the time of service entry creation, acceptance flag is not appearing.  I am facing this problem with one particular SAP Login ID only. With the same PO, the acceptance Flag is appearing in another SAP Login ID. I think it seems to be s

  • Shared calenders sporadically disappeared

    Hi, when I opened shared calendars from other users by clicking on "Open" -> "Other User's Folder" and left it open in the list without deleting it, I had to realize that the calendars sporadically disappeared from the list (1-2 times a year). How ca