Remove panel from frame

CONTINUATION OF 1St MAIL
public JScrollPane ThumbnailGui(Vector vSeriesNo,Vector[] vImageNo,Vector[] LoadedFilenames)
          this.parent=parent;
          this.vSeriesNo=vSeriesNo;
          this.vImageNo=vImageNo;
          this.LoadedFilenames=LoadedFilenames;
               try{
          MainPanel=new JPanel();
          MainPanel.setLayout(new BoxLayout(MainPanel,BoxLayout.Y_AXIS));
          LineBorder lineborder=new LineBorder(Color.red,2,true);
          MainPanel.setBorder(lineborder);     
          int LoadedFilenamesSize=LoadedFilenames[0].size();
          int LoadedSeriesSize=vSeriesNo.size();
          System.out.println("*******Im under Thumbnial GUI");
          Thumbnail=new JButton[LoadedSeriesSize][LoadedFilenamesSize];     
          for(int count=0;count<1;count++)
               System.out.println("Vector creation");
               vImageNo1[count]=new Vector();
               LoadedFilenames1[count]=new Vector();
               for(int j=0;j<vSeriesNo.size();j++)
                    for(int i=0;i<vImageNo[j].size();i++)
                         str=LoadedFilenames[j].elementAt(i).toString().replace('~','\\');
                         str=str.replace(".dcm",".jpg");
                         Icon ic=new ImageIcon(str);
                         Thumbnail[j]=new JButton(ic);
                         Thumbnail[j][i].addActionListener(new ThumbnailAction());
                         MainPanel.add(Thumbnail[j][i]);
                    }//inner for
               }//outer for
                                   //     MainPanel.setVisible(true);
               heightScrollbar = new JScrollPane(MainPanel);
          heightScrollbar.setName("height");
               heightScrollbar.setVisible(true);
               MainPanel.updateUI();
               heightScrollbar.updateUI();          
          }catch(Exception e){
               e.printStackTrace();
               return heightScrollbar;
     }//ThumbnailGui()
     public void removePanel()
     public void loadimage()
class ThumbnailAction implements ActionListener
          public void actionPerformed(ActionEvent ae)
               JButton ThumbnailEvent =(JButton)ae.getSource();          
               String Series="",Imageno="",FilePath="";
               vSeriesNo1.removeAllElements();                    
               for(int count=0;count<1;count++)
               vImageNo1[count].removeAllElements();
               LoadedFilenames1[count].removeAllElements();
                              System.out.println("*******Im under Thumbnial Action Listener");
          for(int j=0;j<vSeriesNo.size();j++)
                    for(int i=0;i<vImageNo[j].size();i++)
                         if(ThumbnailEvent==Thumbnail[j][i])
                                             //Properties dicomheaderdetails = (Properties)parent.htHeaderData.get(vSeriesNo.elementAt(j)+"+"+i);
                                        try
                                                  FilePath=LoadedFilenames[j].elementAt(i).toString().replace('~','\\');
                                                  System.out.println("File name is :"+FilePath);
                                                  Imageno = vImageNo[j].elementAt(i).toString();
                                                  System.out.println("Thumbnail Image Number is : "+Imageno);                                              
                                                  Series = vSeriesNo.elementAt(j).toString();
                                                  System.out.println("Thumbnail Series Number is : "+Series);                              
                                             }catch (Exception e)
                                                       e.printStackTrace();
                    }//inner for
               }//outer for          
          vSeriesNo1.addElement(Series);
          vImageNo1[0].addElement(Imageno);
          LoadedFilenames1[0].addElement(FilePath);
          parent.imageLoader = new ImageLoader(parent,vSeriesNo1,vImageNo1,LoadedFilenames1,false,1);          
     }//class

If you want to add/remove components from a panel then the code should be something like:
panel.add( something );
panel.revalidate();
panel.repaint();
If you want to replace an entire panel then you should probably be using a [Card Layout|http://java.sun.com/docs/books/tutorial/uiswing/layout/card.html].

Similar Messages

  • Dynamically Add or Remove Panel in Frame

    Dear all,
    I have three panels in my frame. Panel1 and Panel2 always be in Frame. The Panel3 to be displayed according to button click in Panel2. If the button in Panel2 is clicked then the Panel3 and it's components to be displayed in the frame otherwise the Panel3 and and it's components should not be displayed.
    Anyone please help me that how to perform this is in Swing..
    Thanks in advance.
    Sathish kumar D

    mainPanel.add(panel3);
    mainPanel.revalidate();

  • How do you remove items from the assets panel that are duplicated?

    How do you remove items from the assets panel that are duplicated?

    If you add an item to a slideshow, you'll usually see 2 entries for that image in the assets panel - one represents the thumbnail, and the other represents the larger 'hero' image.
    It sounds like you may have added the same image to your slideshow twice. You can select one of the hero images or thumbnail images in your slideshow and use the delete key to remove it. Then the extra 2 entries in the assets panel should disappear.

  • HT5858 In control centre some how facebook app is getting displayed I dont want any app to be clickable from control centre how to remove it from control centre panel

    In control centre some how facebook app is getting displayed I dont want any app to be clickable from control centre how to remove it from control centre panel

    .

  • Is it possible to remove blemishes from video frames with photoshop cc?

    Is it possible to remove blemishes from video frames with photoshop cc?

    Again, show us reference screenshots and we will advise. Otherwise this could become an endless theoretical discussion. Depending on what you want to do you can import the video directly using Layer --> New Video Layer e.g. when covering up fied spots with a brush blob on a layer on top of the footage, but you may also need to create separate layers for each frame using the Frames to Layers script so you can paint on each of them individually. There's really too much we don't know and the possibilities are potentially infinite...
    Mylenium

  • Reg.Remove quesitions from my control panel.

    Dear Friends
    I have 7 posts  in my forum which is blocked by SDN moderator,I want to remove those questions from unanswered status.
    Please guide me how to remove from my control panel.
    I am unable to ask more than 3 questions that there are 7 pending.
    Thanks
    Rajakumar.K

    Dear Juergen
    As per your advice I have mentioned the threads and my user ID and Password.
    """ SAP allows 10 open questions at a time.
    Locked questions are not considered as closed. So your possible open questions get reduced by any locked question.
    I think the questions got locked for a good reason.
    Unfortunatly I cannot search for these threads, Send me the links to each locked one to my mail address (can be found in my business card) and I will see what I can do. """
    Please remove my all questions and make it empty.
    Reg. TAX and VAT configuration
    Reg. Logistic execution process in MM
    Reg.Number range collapsed in production server -FBN1(NRIV table)
    Reg.Blueprint process
    reg. Tax code  in procedure TAXINJ is invalid
    Reg. New material type creation
    Reg.Std hierarchy creation problem
    Reg.Remove quesitions from my control panel.
    Thanks
    Rajakumar.K

  • How do I remove Bing from my toolbar at the top of the page. I have already tried both of the suggestions given in the help section; I could not find Bing in my control panel "add and remove programs," and there was one other suggestion which I also tried

    ''locking due the age of this thread - asked and answered''
    I have tried all of the suggestions given by FF in order to remove Bing from my computer but nothing seems to work. I would appreciate some advise. For instance when I go to add and remove programs I can't even find Bing listed. Looking forward to your suggestions. Thanks.
    == This happened ==
    Every time Firefox opened
    == I first installed Firefox

    Right click "Tools". Uncheck "Search Toolbars".

  • Problem removing components from JLayeredPane

    Hi all,
    I have a problem showing and hiding components on a JLayeredPane. It goes Something like this:
    In my application I have a button. When this button is pressed I use getLayeredPane to get the frames layered pane. I then add a JPanel containing a number of labels and buttons onto that layered pane on the Popup layer. The panel displays and funcitons correctly.
    The problem comes when I try to remove the panel from the layered pane. The panel does not dissappear and I am no longer able to click on anything else in the frame!
    If anyone has any ideas how to get around this or what the problem might be I'd be very greatful to hear it. Sample code follows:
          * Called when the button on the frame is pressed:
          * @param e
         public void actionPerformed(ActionEvent e)
                    JLayeredPane mLayredPane = getLayeredPane();
              int x = 0, y = 0;
              Container c = this;
              while (true)
                   c = c.getParent();
                   if (c != null)
                        x += c.getLocation().x;
                        y += c.getLocation().y;
                        if (c instanceof JRootPane)
                             break;
                   else
                        break;
              mPanel.setBounds(x, y, 235, 200);
              mLayredPane.add(mPanel, JLayeredPane.POPUP_LAYER);
    //And when a listener fires from the panel I use
    mLayredPane.remove(mPanel);
    //To remove it from the layered pane and in theory return the
    //app to the state it was before the panel was displayedThanks again...

    The problem is you only removed it within the program, without actually removing it from the display. If that makes any sense, or whether thats your problem at all.
    If you are only using this line.
    mLayredPane.remove(mPanel);
    I think if you tell it to repaint and revalidate it should work, though i have never used LayeredPane.
    mLayredPane.repaint();
    mLayredPane.revalidate();

  • Target Named Anchor in a Spry Collapsible Panel from a different page

    Let me start by saying I have combed this forum (and others) looking for a resolution to this.  I am familiar with David Powers solution on Foundationphp.com and am using that code in project to open the collapsible panel from a separate page and it works beautifullly.  The problem I have is that I want the browser to move down to a specific named anchor inside that opened collapsible panel when clicked from a different page.
    Snippets of my current code here.
    Below is the code that I have on an image that when clicked goes to the correct page and opens Panel1.  Works Perfectly!
    <a href="bamboo-species.php?col1=open#CollapsiblePanel1"><img src="images/Content/Photos/HomeScroll/blackTmbor.jpg" width="227" height="175" /></a>
    Below is the link to the .js file and the script in the head of the target page
    <script type="text/javascript" src="SpryAssets/SpryURLUtils.js"></script>
    <script type="text/javascript">
    // Grabs the values of the URL parameters for the current URL.
    var params = Spry.Utils.getLocationParamsAsObject();
    </script>
    Below is the code that I have on the target page for Panel1
    <script type="text/javascript">
    var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1", {contentIsOpen:params.col1 ? true : false},{duration: 1000});
    </script>
    If I have a named anchor say <a name="species1" id="species1"></a> down in the page, how do I target that named anchor from my link on the separate page.  I have tried adding the #species1 to the end of the link on the link page (see below) but with no luck. I believe those were the instructions on foundationphp.com site.
    <a href="bamboo-species.php?col1=open#CollapsiblePanel1#species1"><img  src="images/Content/Photos/HomeScroll/blackTmbor.jpg" width="227"  height="175" /></a>
    I hope (and suspect) that this is an easy fix, I just do not know what it is.  Any help or direction where to look is greatly appreciated.

    I once had the same issue can created a small function that allows me to "jump" to a element.
    function scrollTo( element ){
         var stylize = function( element){ return !+"\v1" ? element.currentStyle : document.defaultView.getComputedStyle( element , null ) },
              getPosition = function( element ){
                   // based on the SpryEffect's module:
                   var computedStyle, tryComputedStyle,
                        position = { x: 0, y: 0 };
                        if ( element.style.left  && /px/i.test(element.style.left) ){
                             position.x = parseInt(element.style.left, 10); // without padding
                        } else {
                             computedStyle = stylize( element );
                             var tryComputedStyle = computedStyle && computedStyle.left && /px/i.test( computedStyle.left );
                             if (tryComputedStyle)
                                  position.x = parseInt( computedStyle.left, 10 ); // without padding, includes css
                             if(!tryComputedStyle || position.x == 0) // otherwise we might run into problems on safari and opera (mac only)
                                  position.x = element.offsetLeft;   // includes padding
                        if ( element.style.top && /px/i.test(element.style.top) )
                             position.y = parseInt( element.style.top, 10); // without padding
                        else
                             if ( !computedStyle )
                                  computedStyle = stylize( element );
                        var tryComputedStyle = computedStyle && computedStyle.top && /px/i.test( computedStyle.top );
                             if ( tryComputedStyle )
                                  position.y = parseInt( computedStyle.top, 10 ); // without padding, includes css
                             if( !tryComputedStyle || position.y == 0 ) // otherwise we might run into problems on safari and opera (mac only)
                                  position.y = element.offsetTop;   // includes padding
                   return position;
              scroll( 0, getPosition( element ).y );
    So now we have a scrollTo function that accepts a pure HTML element as argument, all what is left to do is figure out if we have a hash, and if the anchor exits on the page.
    ( hopes this works, i wrote it without testing, but you get the general idea ):
    if( window.location.hash ){
         var hash = window.location.hash.substr(1), // remove the # from the hash
         element;
         // as anchors can also be used with id attributes, check that first,
         element = document.getElementById( hash );
         // maby we used name="" attribute
         if( !element && ( element = document.getElementsByName( hash )) ){
              element = element[0];
         // if we have a match:
         if( element ){
              // give the collapsible panel some time to init and update the DOM;
              setTimeout(function(){ scrollTo( element ) },0);
    \o/

  • HELP! I need to be able to remove power from a PXI chassis and replace a card without rebooting the whole system

    I do not have particulars on the controller, but I am sure it's an NI chassis
    and NI regular controller that has a serial cable leading back to the PC.
    I am making this PXI rack into a debug rack for instrument cards,
    so I need to be able to remove power from just the PXI chassis
    and then replace the card with another one
    or the same one and then turn the power back on and restart a
    diagnostic test on the card WITHOUT
    having to reboot the PC.
    Is there a PCIe bridge setup that would allow me to do this?
    Is there software that I need that can accomplish this?

    Yes
    The Chassi is a NI PXI 1045
    and the controller is a NI-PXI-8331
    Let me re-enumerate my requirements:
    Background:
    I have a number of NI cards as well as other manufactured cards in the system.
    One of these cards in the NI system is considered to be a UUT.
    That is, I am using the NI card cage system and other cards in the system to test a CARD
    during a manufacturing test of said UUT CARD.
    The UUT uses a PLX 9030 for it's PCI interfacing.
    This UUT is not designed for hot swap, and I do not bieleve it is plug and play.
    Requirement:
    1. I need to be able to shut off the chassis and remove the UUT when the test finishes, replace the tested UUT
    with a unknown UUT, re-apply power and then test the new UUT WITHOUT having to reboot the PC.
    I have tried several things, such as disabling the PCIe busses in the windows control panel, and then removing power
    replacing the UUT with the next one, re-applying chassis power and then re-enabling the bus and SOMETIMES it works.
    I need a very robust way to do this.
    I also bought a CHROMA PXI-52906-E extender card with bus switches on it, so that I can remove power to the UUT
    without shutting off the chassis. The card is supposedley designed so that when power is re-applied to the UUT, the necessary
    signals to boot the PXI PCI interface is conducted, but I think something else has to be written to the card's PCI registers.
    I am by no means an expert in PCI/PXI, 
    but I seem to have exhausted all of my reserach online in how to meet my requirements.
    Perhaps there is a way for the NI8331 controller to capture PCI configuration data to the card's on system boot,
    and then "replay it" to my UUT after I re-apply power to the UUT?
    Or perhaps PLX makes such a tool?
    Any ideas?

  • How can I remove Facebook from the iPhoto source list?

    Lately when I use iPhoto it will not let me quit and I have to force quit. I recently moved to college where there are several separate internet routers. I realized I still had iPhoto sharing turned on from using it at home and thought that might be messing it up, but even after I turn off sharing it will not let me quit. I think it is a problem with Facebook because it asks, "still syncing would you like to stop and quit?" whenever I try to quit the program. I would like to just remove Facebook from my source list, but I can't figure out how. It used to ask me to sign in to Facebook if I wanted to upload pictures but now it doesn't so I have no idea how to make it quit syncing.

    I found the solution in the community
    Solution 1
    Mac OS: Run the uninstaller in the Applications/Utilities/Adobe Installers folder to remove the program listed as up-to-date.
    Windows: Use the Programs And Features Control Panel to remove the program listed as up-to-date.

  • Changing panels in frame at runtime using NetBeans

    Hi there,
    I'm having trouble changing JPanels in a JFrame at runtime when they were both generated in NetBeans. I find that I can do this easily in a manually coded GUI with the code below. However with NetBeans generated frames and panels it doesn't seem to work.
    So all I really would like to learn is how to change JPanels in a JFrame at runtime when both are generated by NetBeans (New>JFrame Form... and New>JPanel Form...) Any help would be much appreciated.
            // reset panel
            pMain.removeAll();    // main panel added to nb generated frame
            pMain.validate();     // call layout manager
            testPanel = new TestPanel();  // this class extends JPanel (generated)
            pMain.add(testPanel);     // add new panel
            pMain.setVisible(true);     // update panel
            pMain.revalidate();
            pMain.repaint();

    Changing the layout to BorderLayout and adding the new panel to BorderLayout.CENTER with your code sample above doesn't seem to work though.This works for me.
    I created a frame form and a panel form then set the frame layout to border layout and added a remove/add panel at the south.
    frame code looks like this.
    import java.awt.BorderLayout;
    public class MainFrame extends javax.swing.JFrame {
    private boolean isAdded;
    private TestPanel panel; // this is the panel form
    /** Creates new form MainFrame */
    public MainFrame() {
    isAdded = false;
    initComponents();
    // Generated code
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                        
    if(!isAdded) {
    panel = new TestPanel();
    add(panel, BorderLayout.CENTER);
    pack();
    isAdded = true;
    } else {
    remove(panel);
    isAdded = false;
    validate();
    repaint();
    * @param args the command line arguments
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new MainFrame().setVisible(true);
    // Variables declaration - do not modify
    private javax.swing.JButton jButton1;
    // End of variables declaration
    Somehow I find it very hard to believe that NetBeans is not production ready....The reason we don't use the DnD in nb is that the generated code is not editable and it's hard to maintain.

  • TypeError: Error #1006 - Removing MovieClip from the stage

    I have a movie clip that is called to the stage and once the movieclip is finished it calls a function that removes it from the stage. The code works but I get an error message about 4 seconds after the movie clip ends.
    Here’s the error message:
    TypeError: Error #1006: exitWordMicroscopic is not a function.
                    at ASvocabulary_microscopic/frame110()[ASvocabulary_microscopic::frame110:1]
    Here’s the stage code:
    //************************Removes the movieclip from the stage and enables the button.*************************
    function exitWordMicroscopic():void
                    bnt_vocab_microscopic.mouseEnabled = true;
                    removeChild(word_Microscopic);
    //******************************Stage buttons**************************************
    stage.addEventListener(MouseEvent.MOUSE_DOWN, goButtonsHomeRead_1);
    function goButtonsHomeRead_1(event:MouseEvent):void
                    //Vocabulary buttons
                    if (event.target == bnt_vocab_microscopic)
                                    bnt_vocab_microscopic.mouseEnabled = false;
                                    SoundMixer.stopAll();
                                    addChild(word_Microscopic);
                                    word_Microscopic.x = 47;
                                    word_Microscopic.y = 120;
    Here’s the code inside the movie clip. This is what the error message is referring to:
    //****************** Calls function to remove itself from the stage****************************
    Object(parent).exitWordMicroscopic();
    What am I doing wrong?

    Here' how the code looks now:
    Objective: To remove the current movieclip while it's playing so that it does not show on the next (or previous) frame.
    Here’s the stage code:
    var word_Microscopic:ASvocabulary_microscopic = new ASvocabulary_microscopic();
    //Removes the movieclip from the stage and enables the button.
    function exitWordMicroscopic():void
        bnt_vocab_microscopic.mouseEnabled = true;
        removeChild(word_Microscopic);
    //******************************Stage buttons**************************************
    stage.addEventListener(MouseEvent.MOUSE_DOWN, goButtonsHomeRead_1);
    function goButtonsHomeRead_1(event:MouseEvent):void
        //Vocabulary buttons
        if (event.target == bnt_vocab_microscopic)
            SoundMixer.stopAll();
            bnt_vocab_microscopic.mouseEnabled = false;
            addChild(word_Microscopic);
            word_Microscopic.x = 47;
            word_Microscopic.y = 120;
            word_Microscopic.play();
    //This button takes the user to the Main Screen
        if (event.target == bnt_ReadGoHome_1)
           // exitWordMicroscopic(); [If I use this function I get this error ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.]
            SoundMixer.stopAll();
            gotoAndPlay("1","Main");
            stage.removeEventListener(MouseEvent.MOUSE_DOWN, goButtonsHomeRead_1);
    //This takes the user to the next frame.
    if (event.target == GoNext_1)
            SoundMixer.stopAll();
            gotoAndPlay("2");
            stage.removeEventListener(MouseEvent.MOUSE_DOWN, goButtonsHomeRead_1);
    Here’s the code inside the movie clip.
    //****************** Calls function to remove itself from the stage****************************
    Object(parent).exitWordMicroscopic();

  • Add and remove columns from JTable

    Help me please!
    A try to remove column from JTable. It's removed, but when I try to add column in table, then I get all old (removed early) columns + new column....
    I completely confused with it.....
    Here is my code for remove column:
    class DelC implements ActionListener
              public void actionPerformed (ActionEvent e )
                   int [] HowManyColDelete = table.getSelectedColumns();
                   if (HowManyColDelete.length !=0)
                        TableColumnModel tableCModel = table.getColumnModel();
                        for (int i = HowManyColDelete.length-1; i>-1; i--)
                             table.getColumnModel().removeColumn (tableCModel.getColumn (HowManyColDelete [ i ]));
                   else
                          JOptionPane.showMessageDialog(JOptionPane.getRootFrame(), "Column is not selected!");
         }

    It's little ex for me, I just try understand clearly how it's work (table models i mean). Here is code. All action with tables take place through menu items.
    My brain is boiled, I've try a lot of variants of code, but did't get right result :((
    It's code represent problem, which I've describe above. If you'll try remove column and then add it again, it will be ma-a-a-any colunms...
    I understand, that my code just hide columns, not delete from table model....
    But now I have not any decision of my problem...
    Thanks a lot for any help. :)
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.table.*;
    import java.awt.event.*;
    import javax.swing.table.DefaultTableModel;
    class JTableF extends JFrame
         Object [] [] data = new Object [0] [2];
         JTable table;
         DefaultTableModel model;
         String [] columnNames = {"1", "2"};
         TableColumnModel cm;
         JTableF()
              super("Table features");
              setDefaultLookAndFeelDecorated( true );
              setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
              JMenuBar MBar = new JMenuBar();
              JMenu [] menus =  {new JMenu("A"), new JMenu("B")};
              JMenuItem [] menu1 =  {new JMenuItem("Add row"), new JMenuItem("Delete row", 'D'),  new JMenuItem("Add column"), new JMenuItem("Delete column")};
              menu1 [ 0 ].addActionListener(new AddL());
              menu1 [ 1 ].addActionListener(new DelL());
              menu1 [ 2 ].addActionListener(new AddC());
              menu1 [ 3 ].addActionListener(new DelC());
              for (int i=0; i<menu1.length; i++)
                   menus [ 0 ].add( menu1 [ i ]);
              for (int i=0; i<menus.length; i++)
                   MBar.add(menus );
              JPanel panel = new JPanel ();
              model = new DefaultTableModel( data, columnNames );
              table = new JTable (model);
              cm = table.getColumnModel();
              panel.add (new JScrollPane(table));
              JButton b = new JButton ("Add row button");
              b.addActionListener(new AddL());
              panel.add (b);
              setJMenuBar (MBar);
              getContentPane().add(panel);
              pack();
              setLocationRelativeTo (null);
              setVisible (true);
         class DelC implements ActionListener
              public void actionPerformed (ActionEvent e )
                   int [] HowManyColDelete = table.getSelectedColumns();
                   if (HowManyColDelete.length !=0)
                        TableColumnModel tableCModel = table.getColumnModel();
                        for (int i = HowManyColDelete.length-1; i>-1; i--)
                             int vizibleCol = table.convertColumnIndexToView(HowManyColDelete [ i ]);
                             tableCModel.removeColumn (tableCModel.getColumn (vizibleCol));
                        //cm = tableCModel;
                   else
                        JOptionPane.showMessageDialog(JOptionPane.getRootFrame(), "Column is not selected!");
         class AddC implements ActionListener
              public void actionPerformed (ActionEvent e)
                   //table.setColumnModel(cm);
                   Object NewColumnName = new String();
                   NewColumnName = JOptionPane.showInputDialog ("Input new column name", "Here");
                   int i = model.getRowCount();
                   int j = model.getColumnCount();
                   Object [] newData = new Object [ i ];
                   model.addColumn ( NewColumnName, newData);
         class AddL implements ActionListener
              public void actionPerformed (ActionEvent e)
                   int i = model.getColumnCount();
                   Object [] Row = new Object [ i ];
                   model.addRow ( Row );
         class DelL implements ActionListener
              public void actionPerformed (ActionEvent e)
                   int [] HowManyRowsDelete = table.getSelectedRows();
                   if (HowManyRowsDelete.length !=0)
                        for (int k = HowManyRowsDelete.length-1; k>-1; k--)
                             model.removeRow (HowManyRowsDelete[k]);
                   else
                        JOptionPane.showMessageDialog(JOptionPane.getRootFrame(), "Row is not selected!");
         public static void main (String [] args)
              javax.swing.SwingUtilities.invokeLater(new Runnable()
                   public void run()
                        JTableF inst = new JTableF();

  • How do you remove Firefox from computer, will not delete from "Add/delete hardware"

    Have tried to remove firefox from computer. Tried "add/remove harware, programs" from control panel, won't do anything keeps popping back up. Several months ago firefox crashed and computer would not let me log on to the internet. Went back to internet explorer works great. But now I can't seem to get rid of firefox from my computer. My internet carrier (cox.net) say that firefox is not compatible with their internet system. How can I remove firefox from control panel, is taking up space in my computer?

    Try Programs or Programs and Features, Firefox is software not hardware.
    Look in there for Mozilla Firefox not Firefox.

Maybe you are looking for

  • ORA-04044 Error in SQL statement

    Hi All, I faced ORA-04044 in a SQL statement being written inside a shell script. I really don't know what is wrong with the script. Without shell variables is working ... Here is the excerpt: line=`sar -u 2 5 |tail -1` var_io=`echo "$line" | awk '{p

  • How to install report server as service in windows

    OS : windows XP oracle 10G isuite Every time I am restarting my machine I have to start the report server using command rwserver server=repserver10G start in command prompt. How to install the the report server as service in windows? so that it can b

  • I pod resets, but wont charge or turn on

    My ipod has been completely out of battery for 2 months because i have been away and not used it, i plugged it into my computer, and the icon for charging comes up, but that's it, it doesn't move , doesn't show you it's charging, and my computer does

  • Setting up a WPA2 network connection

    Hello, I am trying to set up a iBook G4 on my company Wi-Fi network. We are using WPA2 for are security type, and Leap for authentication. When trying to create a new connection I put the SSID in the Network Name. I select WPA2 Enterprise for my secu

  • Updates fail with apps, cloud

    Updates:Trouble with updates: Creative cloud apps. updates run to 100%, then a error message comes back and implicates; update failed. What do I need to do when updates come back as failed after updated run to 100%?