Swing GUI isn't showing up properly without resizing window

I am developing a Java GUI with Swing. I have not used any paintComponents or paint commands for anything - all Swing. Every time I run the code, I get the JFrame to come up, but all I can see is the background. Only after I resize the window (manually, with the mouse) do I see the boxes and JComboBox, etc. What is the problem? I've tried googling it, and I can't find a thing. Any ideas?
Thanks in advance.

morgalr wrote:
pack();
setVisible(true);Without code, that is my general answer.Fixed it. I didn't think it could be something that easy. But it was. Thanks a lot.

Similar Messages

  • Logic audio unit bridge unresponsive/gui doesn't show up properly

    Hi there, having a problem running some 32 bit plugins while running logic in 64 bit mode.
    For those who are familiar with the Audio Unit bridge, when clicking on a 32 bit plug-in it brings up this grey window which prompts another click to bring up the interface. When I click on here the GUI appears for a split second then disappears again or sometimes doesn't appear at all. Noteably, the plugins still allow audio through, it is just the interface won't appear.
    After a while of having a project open, I have also experienced Logic giving me this message presumably due to the same problem:
    It lists all the 32 bit plugins used within the project and says they are unavailable, crossing them out in the logic mixer and removing them from the audio unit manager.
    I have tried removing the logic .plist file which allows the loading of the plugins again but not does not solve the problem of the unresponsive GUI.
    Really lumbered by this one, any potential resolution much appreciated.
    Thanks
    A

    this might be a graphic issue with my 2013 macbook pro retina 2.8gig
    i went to preferences and changed the display type... the plugin then shows up. but left in any one of the modes, if i take out the plugin and recall it the same issues remain. Maybe my graphic card is failing

  • HT1386 Both my iPod touch and iPad have been syncing properly with iTunes, until todat that is. I downloaded iTunes 11.1.5 and now iTunes isn't showing up/reading/detecting any of my devices. I can no longer sync both my iPod touch and iPad. Please HELP

    Both my iPod touch and iPad have been syncing properly with iTunes, until todat that is. I downloaded iTunes 11.1.5 and now iTunes isn't showing up/reading/detecting any of my devices. I can no longer sync both my iPod touch and iPad. Please HELP

    See
    iOS: Device not recognized in iTunes for Windows
    - I would start with
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    or              
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    However, after your remove the Apple software components also remove the iCloud Control Panel via Windows Programs and Features app in the Window Control Panel. Then reinstall all the Apple software components
    - New cable and different USB port
    - Run this and see if the results help with determine the cause
    iTunes for Windows: Device Sync Tests
    Also see:
    iPod not recognised by windows iTunes
    Troubleshooting issues with iTunes for Windows updates

  • Facebook isn't showing properly since updating Firefox 6

    Facebook isn't showing properly. It seems that the frames are off and I have looked at everything under Facebook and cannot figure out how to return it back. When my son looks at my Facebook page from his computer everything looks normal. I didn't start having this problem until I upgraded to Firefox 6 in the past few days.

    Just let it sit plugged into the charger for a while. The device will be laggy for a while. That's normal. If it stays llke that more than a day or two then we should get worried. Post back here if that turns out to be the case and will troubldshoot further.
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

  • I downloaded a film for rental but it hasn't downloaded properly so won't load, tells me to check in my downloads in iTunes but it isn't showing up in downloads so I am stuck with a film a have paid for but can't play and can't finish downloading, help?

    I downloaded a film for rental but it hasn't downloaded properly so won't load, tells me to check in my downloads in iTunes but it isn't showing up in downloads so I am stuck with a film a have paid for but can't play and can't finish downloading, help?

    After doing some research, I found out that I had accidently hid iPhoto after I paused the download. After going into my apple id account and saw my hidden purchases, I found it. Thank you so much helping me though!

  • Freezing Swing GUI...

    Hi!
    I am having problems with my swing GUI. It's freezing when I'm trying to disable a JButton in it. Could anybody tell me y it happens and what can be done to remedy it?
    My piece of code:
    stopButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    // stop!
    simulator.blinker = null;
    label.setText("Stopped!");
    playPauseButton.setEnabled(false);
    stepButton.setEnabled(false);
    showNamesButton.setEnabled(false);
    speedUpButton.setEnabled(false);
    speedDownButton.setEnabled(false);
    stopButton.setEnabled(false);
    When I press the stopButton, my GUI freezes. Same happens with this piece of code when simSpeed = 50:
    speedUpButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    if (simulator.simSpeed > 300 && simulator.simSpeed <= 500){
    simulator.simSpeed -= 100;
    System.out.println("sim speed = " + simulator.simSpeed);
    else if (simulator.simSpeed > 50 && simulator.simSpeed <= 300){
    simulator.simSpeed -= 50;
    System.out.println("sim speed = " + simulator.simSpeed);
    else {//if (simulator.simSpeed == 50){
    System.out.println("caution: sim speed = " + simulator.simSpeed);
    speedUpButton.setEnabled(false);
    Strangely, this one does not make the GUI freeze when simSpeed = 1500:
    speedDownButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    if (simulator.simSpeed < 1500){
    simulator.simSpeed += 100;
    System.out.println("sim speed = " + simulator.simSpeed);
    else if (simulator.simSpeed == 1500)
    speedDownButton.setEnabled(false);
    I'd greatly apreciate any help!
    Thx in advance!
    Owrwe

    I have gone thru some experimentations and come to this conclusion:
    when i try to disable buttons at the extremity of a row of buttons, the GUI freezes!
    for example:
    buttonPanel.add(speedUpButton);
    buttonPanel.add(speedDownButton);
    buttonPanel.add(playPauseButton);
    buttonPanel.add(stepButton);
    buttonPanel.add(showNamesButton);
    buttonPanel.add(stopButton);
    this is the order of buttons in a layout (flow layout by default, isn't it?). The GUI freezes when I try to disable: speedUpButton and stopButton (from inside their ActionListener method).
    Changing the layout to:
    buttonPanel.add(speedDownButton);
    buttonPanel.add(speedUpButton);
    buttonPanel.add(playPauseButton);
    buttonPanel.add(stepButton);
    buttonPanel.add(showNamesButton);
    buttonPanel.add(stopButton);
    The GUI freezes when I try to disable: speedDownButton (as compared to speedUpButton from above) and stopButton (from inside their ActionListener method).
    Changing the layout to:
    buttonPanel.add(playPauseButton);
    buttonPanel.add(speedDownButton);
    buttonPanel.add(speedUpButton);
    buttonPanel.add(stepButton);
    buttonPanel.add(stopButton);
    buttonPanel.add(showNamesButton);
    The GUI freezes when I try to disable: all of them (from inside the stopButton ActionListener). The speedUpButton and speedDownButton are properly disabled when the limits are reached without freezing the GUI. If I disable all buttons (thru the stopButton when it's not at the extremity of the row) except one of them, the GUI doesn't freeze!
    any suggestions?

  • My LAN connection isn't showing up!

    MY ethernet port isn't showing up on my device manager. there is a jack on the back and it does light up when I put in a network cable but nothing else happens. Right now I'm using my wireless card and thats the only thing that shows up under network adapters.
    So does anyone know how I get my ethernet port to show up?
    Kinda pointless to goto a lan party without a working ethernet jack  
    thanks for your time!

    It's normally under Integrated Peripherals. I downloaded your manual, and they show there should be such a section, but there are not details on the settings, so just look for something that refers to lan or ethernet.

  • Why do music videos no longer show up properly?

    After updating to OS5 I notice that music videos no longer show up properly.  
    I have most of mine in playlists, and it show the songs, but only plays the music, not the video?  
    When I view them in 'Videos' I have no option to sort or show them in a different way! 
    Considering the iPad is probably more slanted toward movie content, the lack of features for music videos is very disapointing

    I think this has always been a lacking feature in the iPad videos app but now it is even worse as you can't go into the music app, context navigate to the video you want and play the music video.  It was irritating in the past as it took you back to the lack luster videos app with no sorting or context other than the video tile navigation, now it is TOTALLY un functional.
    APPLE DEVOLPMENT please use the video app with 200+ music videos and see how you like it!  Or does anyone know of a replacement or more advanced app that will allow a better browse and play interface. Apple's is so basic that it is 'still' just painful!
    Music video playlist and shuffle on the iPad would also be nice but sort would be awesome!
    Thanks for any info from anyone on this topic that I have long hopped to be resolved but it is going backward and we are loosing features.
    The new music interface isn't any better in my opinion either, play buttons at the top so your hand has to be over the top of the screen,  store button at the bottom left vs top right as it would be more intuitive like other app purchase button positioning. 
    Anyone know how to make music videos sort better on the iPad (by artist would be awesome)

  • In this case, can I modify swing GUI out of swing thread?

    I know the Swing single thread rule and design (Swing is not thread safe).
    For time-consuming task, we are using other thread to do the task and
    we use SwingUtilities.invokeAndWait() or SwingUtilities.invokeLater (or SwingWorker) to update Swing GUI.
    My problem is, my time-consuming task is related to Swing GUI stuff
    (like set expanded state of a huge tree, walk through entire tree... etc), not the classic DB task.
    So my time-consuming Swing task must executed on Swing thread, but it will block the GUI responsivity.
    I solve this problem by show up a modal waiting dialog to ask user to wait and
    also allow user to cancel the task.
    Then I create an other thread (no event-dispatch thread) to do my Swing time-consuming tasks.
    Since the modal dialog (do nothing just allow user to cancel) is a thread spawn by
    Swing event-dispatch thread and block the Swing dispatch-thread until dialog close.
    So my thread can modify Swing GUI stuff safely since there are no any concurrent access problem.
    In this case, I broke the Swing's suggestion, modify Swing stuff out of Swing event-dispatch thread.
    But as I said, there are no concurrent access, so I am safe.
    Am I right? Are you agree? Do you have other better idea?
    Thanks for your help.

    If you drag your modal dialog around in front of the background UI, then there is concurrent access: paint requests in your main window as the foreground window moves around.

  • I am renewed my cc subscription yesterday, and it works fine on my main computer, But my Second computer is telling me I need to renew my subscription, But when I go to the Adobe applications manager, my subscription isn't showing. Any idea how I can acti

    I  renewed my cc subscription yesterday, and it works fine on my main computer, But my Second computer is telling me I need to renew my subscription, But when I go to the Adobe applications manager, my subscription isn't showing. Any idea how I can activate my subscription on a second computer?

    Does your Cloud subscription properly show on your account page?
    If you have more than one email, are you sure you are using the correct Adobe ID?
    https://www.adobe.com/account.html for subscriptions on your Adobe page
    If yes
    Some general information for a Cloud subscription
    Cloud programs do not use serial numbers... you log in to your paid Cloud account to download & install & activate... you MAY need to log out of the Cloud and restart your computer and log back in to the Cloud for things to work
    Log out of your Cloud account... Restart your computer... Log in to your paid Cloud account
    -Sign in help http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html
    -http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    -http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html
    -ID help https://helpx.adobe.com/contact.html?step=ZNA_id-signing_stillNeedHelp
    -http://helpx.adobe.com/creative-cloud/kb/license-this-software.html
    If no
    This is an open forum, not Adobe support... you need Adobe staff to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"

  • ScrollBars not showing up properly

    I am displaying a JTree in a JScrollPane with default settings ie. both horizontal and vertical scroll bars will show up when the contents can not fit in to the scroll pane.In this case when i expand the tree nodes the scroll bars are not showing up properly.It looks like the foreground is not painted properly.The background color is white here.We are using custom look and feel, not the standard one. Any idea why it is so?
    Thanx in advance
    Ashok

    This is the MetalTheme i am using.
    public class SSBCMetalTheme extends javax.swing.plaf.metal.MetalTheme
    //     private final ColorUIResource primary1 = new ColorUIResource(102,102,153);
         private final ColorUIResource primary1 = new ColorUIResource(0,0,0);
    //     private final ColorUIResource primary2 = new ColorUIResource(153,153,204);
         private final ColorUIResource primary2 = new ColorUIResource(153,153,153);
    //     private final ColorUIResource primary3 = new ColorUIResource(204,204,255);
         private final ColorUIResource primary3 = new ColorUIResource(204,204,204);
    private final ColorUIResource windowBackground = new ColorUIResource(Color.white);
    private final ColorUIResource textHighlight = new ColorUIResource(Color.blue);
         private final ColorUIResource secondary1 = new ColorUIResource(102,102,102);
         private final ColorUIResource secondary2 = new ColorUIResource(153,153,153);
         private final ColorUIResource secondary3 = new ColorUIResource(204,204,204);
    //     private FontUIResource controlFont = new FontUIResource("Dialog",Font.BOLD,12);
         private FontUIResource controlFont = new FontUIResource("Dialog",Font.BOLD,11);
    //     private FontUIResource systemFont = new FontUIResource("Dialog",Font.PLAIN,12);
         private FontUIResource systemFont = new FontUIResource("Dialog",Font.PLAIN,11);
    //     private FontUIResource userFont = new FontUIResource("Dialog",Font.PLAIN,12);
         private FontUIResource userFont = new FontUIResource("Dialog",Font.PLAIN,11);
         private FontUIResource smallFont = new FontUIResource("Dialog",Font.PLAIN,10);
         public String getName() { return "SSBC"; }
         protected ColorUIResource getPrimary1() { return primary1; }
         protected ColorUIResource getPrimary2() { return primary2; }
         protected ColorUIResource getPrimary3() { return primary3; }
         protected ColorUIResource getSecondary1() { return secondary1; }
         protected ColorUIResource getSecondary2() { return secondary2; }
         protected ColorUIResource getSecondary3() { return secondary3; }
         //public ColorUIResource getWindowBackground() { return (primary3); };
         public ColorUIResource getWindowBackground() { return windowBackground; };
         public ColorUIResource getDesktopColor() { return (primary3); };
         public ColorUIResource getTextHighlightColor(){ return primary3;}
    //public ColorUIResource getControlDisabled(){ return primary3;}
    //public ColorUIResource getControlHighlight(){ return windowBackground;}
         public FontUIResource getControlTextFont() { return controlFont;}
         public FontUIResource getSystemTextFont() { return systemFont;}
         public FontUIResource getUserTextFont() { return userFont;}
         public FontUIResource getMenuTextFont() { return controlFont;}
         public FontUIResource getWindowTitleFont() { return controlFont;}
         public FontUIResource getSubTextFont() { return smallFont;}
    I can't use windows look and feel as i am using the above look and feel.Any idea what is the problem?
    Thanx
    Ashok

  • Gui is not showing when running program

    This source code compiles with no errors in Borland 9, but when I run it, the GUI doesn't show up. I'm clueless, here is the code:
    import java.util.Properties;
    import javax.mail.internet.*;
    import javax.mail.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    * <p>Title: </p>
    * <p>Description: </p>
    * <p>Copyright: Copyright (c) 2003</p>
    * <p>Company: </p>
    * @author not attributable
    * @version 1.0
    public class SimpleSender{
      JPanel jPanel1 = new JPanel();
      JButton jButton1 = new JButton();
      JButton jButton2 = new JButton();
      JLabel jLabel1 = new JLabel();
      JLabel jLabel2 = new JLabel();
      JLabel jLabel3 = new JLabel();
      JLabel jLabel4 = new JLabel();
      JTextField jTextField1 = new JTextField();
      JTextField jTextField2 = new JTextField();
      JTextField jTextField3 = new JTextField();
      JTextArea jTextArea1 = new JTextArea();
      public SimpleSender() {
        try {
          jbInit();
        catch(Exception e) {
          e.printStackTrace();
      private void jbInit() throws Exception {
        jTextArea1.setText("");
        jTextArea1.setLineWrap(true);
        jTextArea1.setWrapStyleWord(true);
        jTextArea1.setBounds(new Rectangle(9, 142, 382, 142));
        jTextField3.setText("");
        jTextField3.setBounds(new Rectangle(56, 99, 170, 22));
        jTextField2.setText("");
        jTextField2.setBounds(new Rectangle(40, 73, 183, 21));
        jTextField1.setText("");
        jTextField1.setBounds(new Rectangle(28, 43, 193, 21));
        jLabel4.setText("MESSAGE:");
        jLabel4.setBounds(new Rectangle(5, 126, 55, 15));
        jLabel3.setText("SUBJECT:");
        jLabel3.setBounds(new Rectangle(5, 102, 51, 15));
        jLabel2.setText("FROM:");
        jLabel2.setBounds(new Rectangle(7, 74, 34, 15));
        jLabel1.setText("TO:");
        jLabel1.setBounds(new Rectangle(9, 45, 20, 15));
        jButton2.setBounds(new Rectangle(88, 6, 77, 25));
        jButton2.setText("RECEIVE");
        jPanel1.setLayout(null);
        jButton1.setBounds(new Rectangle(8, 6, 73, 25));
        jButton1.setText("SEND");
        jButton1.addActionListener(new SimpleSender_jButton1_actionAdapter(this));
        jPanel1.add(jButton1, null);
        jPanel1.add(jButton2, null);
        jPanel1.add(jLabel1, null);
        jPanel1.add(jLabel4, null);
        jPanel1.add(jLabel3, null);
        jPanel1.add(jLabel2, null);
        jPanel1.add(jTextField1, null);
        jPanel1.add(jTextArea1, null);
        jPanel1.add(jTextField2, null);
        jPanel1.add(jTextField3, null);
      public void mail() throws Exception {
          Properties props = System.getProperties();
          // Setup mail server
          props.put("mail.smtp.host", "smtp-server.cfl.rr.com");
          // Get session
          Session session = Session.getDefaultInstance(props, null);
          // Define message
          MimeMessage message = new MimeMessage(session);
          // Set the from address
          message.setFrom(new InternetAddress(jTextField2.getText()));
          // Set the to address
          message.addRecipient(Message.RecipientType.TO,
                               new InternetAddress(jTextField1.getText()));
          // Set the subject
          message.setSubject(jTextField3.getText());
          // Set the content
          message.setText(jTextArea1.getText());
          // Send message
          Transport.send(message);
      void jButton1_actionPerformed(ActionEvent e) {
       try{
         mail();
       }catch(Exception ex){System.out.println("Failed");}
      public static void main(String args[]){
        new SimpleSender();
    class SimpleSender_jButton1_actionAdapter implements java.awt.event.ActionListener {
      SimpleSender adaptee;
      SimpleSender_jButton1_actionAdapter(SimpleSender adaptee) {
        this.adaptee = adaptee;
      public void actionPerformed(ActionEvent e) {
        adaptee.jButton1_actionPerformed(e);
    }

    You need to have a JFrame to add your components to.
    For example, make your class extend JFrame and set your main panel the ContentPane (assuming that all your components have been added to this panel).
    public class SimpleSender extends JFRame {
    this.setContentPane(JPanel1);
    this.setVisible(true);
    }

  • Recommended Tool for devloping Swing GUI's?

    Hello everyone.
    I was wondering what a good tool kit was for building swing gui's?
    I heard NetBean was one, any others you recommend?
    Currently I use Rational Software Architect to do all my java coding but I don't see any options in this IDE for creating drag and drop GUI development.
    Thanks!

    You have 2 very different answers to consider. Before making your final decision, I'd ask yourself, which of the two responders is a Swing expert and which isn't. That should put a whole lot of added weight to one of the recs. Just my two scheckel's worth.

  • Dear apple, can you please tell me how to put my 'x' key back onto the computer properly without giving me an answer which will make me want to buy a pc like 'we WILL only replace the entire keyboard'?

    dear apple, can you please tell me how to put my 'x' key back onto the computer properly without giving me an answer which will make me want to buy a pc like 'we WILL only replace the entire keyboard'?

    My profile does say level 1 (0 points) quite obviously pointing out i am a noob at this, although i did try to correct myself in the previous responce to **macbook.
    I am confused why you think i havn't answerd michaels question though. 'I assure you the keyboard or the joining parts aren't broken and if it isn't broken i dont feel the need to replace it. '- that was me in the first responce explaining why im not buying a new one, answering the very question he asked.

  • Multi-Client TCP Server /w Swing GUI

    Hi everybody,
    i have to develop a Multi-Client TCP Server with a Swing GUI. The GUI mainly consists of a JTable which shows various trace messages from processes running on other computers. As the data needs to be filtered i�m using a custom TableModel derived from AbstractTableModel. I�m creating a new thread for every client that connects as shown in http://java.sun.com/developer/onlineTraining/Programming/BasicJava2/socket.html
    Now every client thread reads data from its TCP connection and puts it into the JTable by calling the method addRow of the model. But i�m getting strange NullPointerExceptions and IndexOutOfBoundExceptions when data arrives (i�m using ArrayList in the model). These exceptions never show in a single-threaded Swing app (i�ve tested this already, so i don�t think it�s a bug in my model), so i think this is a problem with Swing�s thread unsafety? Do you have any hints on how to get away with it? Also general design tips for a Multi-Client TCP Server /w Swing GUI are greatly appreciated.
    Thanks in advance!
    Best regards,
    Disposable_Hero

    Of course, but i don�t think it is the model (as said before it works fine in a single thread swing app)
    Here�s the code:
    public class LogTableModel extends AbstractTableModel{
    private Vector dataVector;
    private Vector filterVector;
    private String[] columnIdentifiers;
    private Vector filteredbyProcess;
    private Vector filteredbyLoglevel;
    private boolean bEnableRefresh;
    /** Creates a new instance of LogTableModel */
    public LogTableModel() {
    dataVector=new Vector(0);
    columnIdentifiers=new String[]{"LogTime","HostName","IP","ProcessName","LogLevel","Handle","PID","TID","LogData"};
    filteredbyProcess=new Vector(0);
    filteredbyLoglevel=new Vector(0);
    filterVector=new Vector(0);
    bEnableRefresh=true;
    public synchronized void enableRefresh(boolean bEnableRefresh){
    this.bEnableRefresh=bEnableRefresh;
    if(bEnableRefresh){
    this.buildIndexListBasedOnFilter();
    public synchronized void addRow(LogLine row){
    dataVector.add(row);
    if(bEnableRefresh)
    this.buildIndexListBasedOnFilter();
    public synchronized void addFilter(Filter filter){
    filterVector.add(filter);
    if(filter.isActive())
    this.buildIndexListBasedOnFilter();
    public synchronized void setFilterActive(String name,boolean active){
    int i;
    for(i=0;i<filterVector.size();i++)
    if(((Filter)filterVector.elementAt(i)).getName().equals(name))
    break;
    Filter tmp=(Filter)filterVector.elementAt(i);
    tmp.setActive(active);
    if(active)
    this.buildIndexListBasedOnFilter();
    public synchronized void setFilterLoglevel(String name,int Loglevel){
    int i;
    for(i=0;i<filterVector.size();i++)
    if(((Filter)filterVector.elementAt(i)).getName().equals(name))
    break;
    Filter tmp=(Filter)filterVector.elementAt(i);
    tmp.setLoglevel(Loglevel);
    if(tmp.isActive()==false)
    this.buildIndexListBasedOnFilter();
    private void buildIndexListBasedOnFilter(){
    filteredbyProcess.clear();
    filteredbyLoglevel.clear();
    applyProcessFilter();
    applyLoglevelFilter();
    if(bEnableRefresh)
    this.fireTableDataChanged();
    private void applyProcessFilter(){
    LogLine line=null;
    Filter filter=null;
    for(int i=0;i<dataVector.size();i++){
    for(int j=0;j<filterVector.size();j++){
    filter=(Filter)filterVector.elementAt(j);
    line=(LogLine)dataVector.elementAt(i);
    if(filter.isActive()&&(filter.getName().equals(line.getProcessName()))){
    line.setHidden(true);
    break;
    else{
    line.setHidden(false);
    if(line.getHidden()!=true)
    filteredbyProcess.add(new Integer(i));
    private void applyLoglevelFilter(){
    for(int i=0;i<filteredbyProcess.size();i++){
    int index=((Integer)filteredbyProcess.get(i)).intValue();
    LogLine line=(LogLine)dataVector.elementAt(index);
    for(int j=0;j<filterVector.size();j++){
    if(((Filter)filterVector.elementAt(j)).getName().equals(line.getProcessName())){
    Filter filter=(Filter)filterVector.elementAt(j);
    if((filter.getLoglevel()&line.getLogLevelAsInt())!=line.getLogLevelAsInt())
    line.setHidden(true);
    else
    filteredbyLoglevel.add(new Integer(index));
    break;
    public synchronized String getColumnName(int columnIndex){
    return columnIdentifiers[columnIndex];
    public synchronized void clearData(){
    dataVector.clear();
    filteredbyProcess.clear();
    filteredbyLoglevel.clear();
    public synchronized int getColumnCount() {
    return columnIdentifiers.length;
    public synchronized int getRowCount() {
    return filteredbyLoglevel.size();
    public synchronized Object getValueAt(int rowIndex, int columnIndex) {
    int iIndex=((Integer)filteredbyLoglevel.get(rowIndex)).intValue();// hier krachts warum???
    LogLine tmp=(LogLine)dataVector.elementAt(iIndex);
    switch(columnIndex){
    case 0:
    return tmp.getLogTime();
    case 1:
    return tmp.getHostName();
    case 2:
    return tmp.getIP();
    case 3:
    return tmp.getProcessName();
    case 4:
    return tmp.getLogLevel();
    case 5:
    return tmp.getHandle();
    case 6:
    return tmp.getProcessID();
    case 7:
    return tmp.getThreadID();
    case 8:
    return tmp.getLogData();
    default:
    return null;

Maybe you are looking for