JFrame doesn't really redraw...

I made a Projekt for Seek and Exchange, using a JFrame as MainFrame.
If a User klicks on 'Do it' the Program seeks in files, and shows the results in a Panel, I init. in another Panel of the MainFrame (BorderLayout:South), and... nothing, theres no error, but theres also no Panel, untill the User resizes the Frame with the Mouse, I tried to fix it, by resizing the MainFrame by Code, but still theres nothing, untill te User resizes.
I know this is a well known Problem, but I hope someone got sth. for me.

I got another Prob with this...
I tell my JTextPane to select the word founded with seek, by this:
void showtext(int index){
  jtext.setText(littlehelper.ShowFile(found[index].infile));
     //littlehelper.showfile opens a given file to a String
  jtext.select(found[index].atindex,found[index].atindex+found[index].found.length());
  //found[index].atindex is the startindex of the founded String
  //stored in found[index].found.
  }but nothing, no error, no selecting, even if the user resises the Frame, nothing...
who can help me with this??

Similar Messages

  • When I close firefox it doesn't really close it seems to be hidden. Then when I try to start it again I have to Alt, Ctrl, Del, go to process , turn it off then hit it to start again. I can not get it to open in the hidden process that it is in

    Apparently when I close Firefox it doesn't really close. I get told when I try to open Firefox later "Firefox is still open, you must close Firefox, Then reopen it. Then I hit Alt, Ctrl & Del, go to process's then I have to close it then reopen it. It does not open until it is closed in process's.

    The process can take a few seconds to close. Sometimes you need to use Task Manager.

  • EMac CRT "display sleep" doesn't really power down

    Greetings:
    I understand that the eMac's CRT "display sleep" mode doesn't really power down but just darkens the display, as shown by the instant start up when you break sleep -- which truly powered down CRTs can't do (need several seconds to).
    Is there a third party program which can truly power-down the CRT for "display sleep" while other processes are at work? I'm watching my 'lectric bills and this would really help.
    JimWG

    eMacs and old CRT iMacs are completely different beasts when it comes to the CRT connector inside.
    The old iMac, at least this is true with my old Grape 333MHz model, used a standard 15-pin D-Sub type monitor cable inside so the "modification" would have been nothing more than unplugging the internal monitor and then plugging in the cable from the LCD monitor.
    With the eMac, it isn't a standard monitor cable so you would have to figure out which wires are which and then make an adpater hardness to give you a standard output connector.
    Patrick

  • HT5527 This doesn't really answer my questions.  How do I reduce storage?  What's being stored in iCloud anyway?  Just what's backed up on phones and iPad?  Do I increase storage through my laptop in which case I click on the OS X or the iPad/Phones which

    This doesn't really answer my questions.  How do I reduce storage?  What's being stored in iCloud anyway?  Just what's backed up on phones and iPad?  Do I increase storage through my laptop in which case I click on the OS X or the iPad/Phones which is IOS.

    Your iCloud account stores your iOS device backups as well as your synced data (contacts, calendars, notes, etc.) and iCloud email (if you have an iCloud email account).  You can see how much is being used on your iPad by going to Settings>iCloud>Storage & Backup>Manage Storage.
    If you want to purchase more iCloud storage, you can do this on any of your iOS devices or computers that are signed into your iCloud account, as explained here: http://support.apple.com/kb/HT4874.

  • On screen shows updating itunes,but doesn't really update;instead freezes

    When i connect my ipod to my computer(which is a windows xp)to update my songs and videos to my ipod, it doesn't work. First the icon for my ipod shows in the itunes and it says that it's updating. There's this flashing in the little ipod icon that shows that it's updating. But then it stops a after 2 minutes or 3, and freezes. Is something wrong with my computer, itunes or my ipod? HELP!!!!!!!Also when i add a video to my itunes, i click on it to play, but it doesn't and itunes freezes up. I then deleted the video file in the recycle bin, but the video in my itunes still shows even though i deleted it. So everytime i go on my itunes, and click that video file even though i deleted it already(don't know why it still displays on my itunes library), my itunes totally freezes up, so i have to end the program itunes immediately and it asks me whether i want to send a report of the problem. I think this is causing my itunes to not work properly and therefore i can't update my ipod. Can anyone please help me?!!!!!!!!!!!!I would really appreciated!thank you!:):):):)xD

    Thanks, rodsvart. This update solved mine too.

  • CC 2014: Saving Workspace doesn't (really) save it. Ugh!

    Drives me crazy.  I'm working in a big 3d project with lots of nested comps. I set up my two screens with locked viewers showing the two essential comps, usually in two views -- active camera and custom view. It takes time to set this up.  I save the workspace, but when I reopen AE and select the saved workspace it doesn't give me anything like the elaborate workspace I set up and saved with all the viewers I carefully set.
    Is there any way to REALLY save a workspace, because right now it looks as if the only way to save it is NOT to close AE. Ever. Until I'm done with the project.

    Hi
    And velcome to this forum.
    Sounds very irritating. Only time I got this kind of problem was when I used
    an external hard disk. Sound and audio should be integrated in the same file
    but it is most certainly more to that.
    I had my Camera connected to my ext hd and from this to my Mac.
    This is a way to work with some Canon Cameras but nothing I suggest.
    Now I connect my Camera to my Mac and do the import/capture to the internal
    disk drive (nothing external connected but the Camera).
    Then if I must I move the movie project out to the external disk for editing
    but I try to make space on the internal one to be able to work there most
    of the time.
    Other origins to "wandering audio":
    - to little free space on the internal hard disk (more than 20Gb recommended)
    - wrong mix of program versions
    (Mac OS X.4.8 + iMovie 6.0.3 + QT 7.1.3 (or 7.1.2 - there can be problems
    with both of them) I use this mix and it works OK for me.
    Please keep in tuch and tell on progress.
    Yours Bengt W

  • Directory doesn't really exist - linked to another

    I have discovered a weird issue with my Lightroom catalog that, unfortunately, may have resulted in me inadvertently deleting some images. Some folders in the Folders pane are somehow "linked" for the lack of a better term. For example, I have the following two folders:
    2006_04_29
    2006-04-29
    I'm trying to clean up my catalog so I've been moving/renaming (through Lightroom) to fix the issue. The weird thing is if I open an image in 2006_04_29 and look at the system file info, it shows it actually lives in 2006-04-29. Unfortunately, this is after I deleted a dozen or so folders.
    I'm not sure if this may have happened back in the Lightroom 2/3 days before I knew not to move things outside of Lightroom, but I'm surprised the catalog optimization or synchronization both didn't fix it.
    Any thoughts or suggestions?
    Thanks,
    Kevin

    The oraInst.loc file contains the entry "inventory_loc=/home/orapdev/oraInventory"
    I checked the above mentioned location and i issued
    [applpdev@oraapps ~]$ cd /home/orapdev/
    [applpdev@oraapps orapdev]$ ll
    total 4
    drwxrwxrwx 6 orapdev orapdev 4096 Nov 26 16:27 oraInventory
    [applpdev@oraapps orapdev]$ cd oraInventory/
    [applpdev@oraapps oraInventory]$ ll
    total 20
    drwxrwxrwx 2 orapdev orapdev 4096 Nov 26 16:47 Contents
    drwxrwxrwx 2 orapdev orapdev 4096 Nov 30 20:21 ContentsXML
    -rwxrwxrwx 1 orapdev orapdev   19 Nov 30 20:21 install.platform
    drwxrwxrwx 2 orapdev orapdev 4096 Nov 30 20:21 locks
    drwxrwxrwx 2 orapdev orapdev 4096 Nov 30 20:21 logs
    The error showed when running the auto config is
    [applpdev@oraapps pdev_oraapps]$ pwd
    /pdev/p01/oracle/pixcomn/admin/scripts/pdev_oraapps
    [applpdev@oraapps pdev_oraapps]$ ./adautocfg.sh
    Enter the APPS user password:
    ERROR: Directory  doesn't exist
    [applpdev@oraapps pdev_oraapps]$

  • Open new jframe doesn't work when put into jar

    I cant get my program to open up a new frame. When i run my program from netbeans it works fine but when i put it into an executable jar it doesn't work. I have three frames, Main, About and SelectLanguage. From Main i can create a new instance of this from this window but it wont open either of the other two. This is the code i use for all three. Please help.
    new About().show();please help.
    clarkie

    well, if that's the code you use for all three, and
    they are different classes, maybe you should call the
    right class name?
    The code you posted isn't helpful, and I can't begin
    to guess what you're doing wrong.nah, i use
    new Main().show();
    new About().show();
    new SelectLanguage().show();also, i get this error:
    java.lang.NoClassDefFoundError: org/netbeans/lib/awtextra/AbsoluteLayout
    at About.initComponents(About.java:29)
    at About.<init>(About.java:15)
    at Main.aboutMenuItemActionPerformed(Main.java:409)
    at Main.access$2200(Main.java:19)
    at Main$22.actionPerformed(Main.java:344)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknow
    n Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.AbstractButton.doClick(Unknown Source)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
    at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseRelease
    d(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

  • HT201263 What if the button on top of my ipod touch is broken. It's the sleep/wake button, and it doesn't really work anymore. HELP ME! I NEED MY MUSIC!

    Ok so my ipod touch just turned off by itself..again. I got it to work again last time cause the sleep/wake button still worked...Now it doesn't. What do I do?! I don't have money to get it repaired cause we all know Apple ain't cheap to fix! Any Suggestions will help!

    Try:
    - iOS: Not responding or does not turn on
    Where it says use recovery mode use this program
    RecBoot: Easy Way to Put iPhone into Recovery Mode
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer
      - If still not successful that usually indicates a hardware problem

  • Help!!! Simple JFrame doesn't work in jdk1.4

    If I run the following code in jdk1.2 it works fine, but in 1.4 only one button displays initially. If I click on the button, the other will display, but it displays in the last location that the window was in. For example, if I move the window first, then click the button, it draws itself at the location that it was previously at. Even more frustrating, when I close the window, once again, it draws itself in the last location and this remains on the screen, even after the vm exits.
    Source:
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    public class FrameExample extends JFrame {
    public FrameExample(String title) {
         super(title);
         setSize(350, 200);
         setLocation(300, 300);
         JButton button1 = new JButton("Button 1");
         JButton button2 = new JButton("Button 2");
         JPanel buttonPanel = new JPanel();
         buttonPanel.add(button1);
         buttonPanel.add(button2);
         getContentPane().add(buttonPanel);
         setDefaultCloseOperation(EXIT_ON_CLOSE);
         setVisible(true);          
    public static void main(String args[]) {
         FrameExample fe = new FrameExample("Frame Example");

    try to set the width and height of the frame - setSize(int, int). or use pack()

  • JFrame doesn't work properly

    Hi guys,
    I have problem's using JFrame in my program.
    I use the following code:
    public static void main(String[] args){
    JFrame win=new JFrame("Beat Kansas");
    win.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    win.setSize(400,400);
    win.setVisible(true);
    ButtonGroup group=new ButtonGroup();
    JPanel panel=new JPanel();
    JRadioButton j1=new JRadioButton("radio",true);
    group.add(j1);
    panel.add(j1);
    JRadioButton j2=new JRadioButton("my hell");
    group.add(j2);
    panel.add(j2);
    JButton but1=new JButton("whateva");
    but1.setSize(90,20);
    but1.setLocation(23,45);
    win.getContentPane().add(but1);
    win.getContentPane().add(panel,BorderLayout.NORTH);
    win.repaint();
    So, when I run the program, a Frame pops up with a Button at the appropriate location, but there is no JPanel with two RadioButtons. Well the most interesting thing yet follows, when I try to reshape the Frame by simply draging it with the mouse, the panel with RadioButtons appears on the Frame according to BorderLayout.NORTH, but the button suddenly gets to occupy the rest of the Frame.
    Can you please give an idea of what is going on? Thanks.

    First you should call win.show() rather then repaint. This should cause the panel to be visible without you
    having to resize the frame. You may also want to call win.pack() before win.show() (depends on what you
    want to achieve. try them and see)
    When using BorderLayout if you do not specify a direction (NORTH,SOUTH,EAST,WEST,CENTER) then
    it assumes you ment CENTER. Therefore you code will add your panel (with the radio buttons) to the
    north of the frame. The other button will occupy the center of the frame (which is a pretty large area).
    Use a different layout manager or specify a direction for your JButton (SOUTH).
    matfud

  • I can't remember the answers to ANY of my security questions. And in order to reset them I apparently have to remember the answers to at least two, which doesn't really help me at all considering my dilemma. Anyone know what I should do??

    Please help!! I can't remember any of the answers to my security questions (I made them approximately four years ago and don't know what I was thinking).
    How can I change my questions without answering my security questions that I don't know?!??

    You need to ask Apple to reset your security questions; this can be done by phoning AppleCare and asking for the Account Security team, or clicking here and picking a method, or if your country isn't listed in either article, filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (105971)

  • Ever since I updated my Ipod Touch, it doesn't really connect to the internet well.

    I just recently got a Ipod Touch for my sixteenth birthday two months ago and a few weeks ago I updated my Ipod and it hasn't been working right since.  I have read quite a few of the other complaints on this website about what the update has done to other Ipod's, but mine is having problems with the internet.  It will load the first webpage, but if I click any links, it will not load.  I am very disappointed with Apple for offering this update.  I spent a good amount of money for this device and it does not work right.  Also the new layout is different and I don't like it either. 

    - Reset the iPod. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on the router.
    - Reset networks settings: Settings>General>Reset>Reset Network Settings
    - Restore from backup
    - Restore to factory settings/new iPod.
    - Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar

  • Sometimes "Deleted" doesn't really mean deleted  Any sync'ing available?

    I've noticed that a lot of files that were Deleted (Removed from Library and files Moved to Recycle Bin) were not actually moved out of the iTunes Library directory structure. I've manually deleted nearly 4 GB of files that were no longer cataloged in my Library but still remained on disk. Anyone know why this is so? Is there a way to do this automatically? A utility perhaps?
    AMD CPU, plenty o'RAM, GBs of disk, iPod Nano   Windows XP Pro  

    Sounds like you may have had them twice in the iTunes music folder.
    When you deleted them via iTunes, they go into the trash. Did you have to empty the trash? If not, they were not moved to the trash.

  • Export settings within Server Admin doesn't really

    So I've had a whootin good time with a migration. Situation was a dual g4 died on me, right after I'd imaged it to a mac mini. I have another mac mini that I wanted to setup as a backup machine/tester. I tried one time to export all the server settings and admin settings and that didn't work at all, so I decided to export say...just my firewall settings, then import just the firewall settings back in. That worked, but didn't have all my firewall settings (ended up having to copy ipfw.conf.apple over). I then tried the same with just dns settings, but that didn't work..I'd import in, the zones would flash up on the zone list, then vanish. Has anyone ever successfully exported and imported settings? So far it's seemed like kind of a waste of time if it's not gonna copy everything over. I dunno...maybe it's the g4 imaged to the macmini that I'm exporting from. All of these are on 10.5.6 using the latest build of Server Admin

    Have a look at the following:
    http://support.apple.com/kb/TS3960

Maybe you are looking for