Stupid .. But i still can't fugure this out!!!

Hi, I juststarted a new application in Java, and when coding the JFrame, I found problems when trying to indert a JPanel. The following is the code I am using, and the problem is that I cant figure out why the JTextArea is not appearing. I mean I think I have always used this same code!!
import javax.swing.*;
public class Starter extends JFrame{
     public static void main(String[] args){
          Starter s = new Starter();
     public Starter(){
          this.setSize(250,250);
          this.setTitle("Uffff");
          JPanel p = new JPanel();
          JTextArea t = new JTextArea();
          p.add(t);
          this.getContentPane().add(p);
          this.show();
I know that I can just add the text field to the ContentPane of the JFrame, but I want to use the JPanel.
Does anyone knows what I have wrong!!?
Thanks all for the help and the patience
(I know this is a stupid question fot some of you ... but i really can't fugure out why the JPanel is not working!)

Hi, I juststarted a new application in Java, and when
coding the JFrame, I found problems when trying to
indert a JPanel. The following is the code I am
using, and the problem is that I cant figure out why
the JTextArea is not appearing. I mean I think I have
always used this same code!!
import javax.swing.*;
public class Starter extends JFrame{
public static void main(String[] args){
Starter s = new Starter();
public Starter(){
this.setSize(250,250);
this.setTitle("Uffff");
JPanel p = new JPanel();
JTextArea t = new JTextArea();Do this here... t.setVisible(true);
Thats all you need to do..
Cheers
-P

Similar Messages

  • TS4009 I am unable to watch movies or play videos due to "not having enough available storage" I have purchased more storage on the iCloud but I still can't do this. Please help!!

    I am unable to watch movies or play videos due to "not having enough available storage" I have purchased more storage on the iCloud but I still can't do this. Please help!!

    Is this what you mean...
    >  'Not enough free space' alert when trying to sync

  • I still can't figure this out...Help!

    Wow, my head hurts from trying to get Qmaster up and running...all the wasted hours! Anyways,
    I have a DP 2.5GHz G5 and a DP 1.25GHz G4...the G5 has FCS installed (5.1.4), G4 only has Qmaster related items installed and both computers running 10.4.8 networked via ethernet through (100mbs hub) the G5 in Qmaster sys pref set to "services and cluster controller", G4 set to "services only' and both only have the source "Compressor" used - both shared and managed checked (I don't have Shake, so I un-checked those).
    In QAdmin, I have my cluster "G5 Cluster" which contains both the G4 and G5. When I export from FCP using compressor option, only G5 runs...(I am chossing the "G5 Cluster" in the drop down menu in Compressor)... If I export from FCP using self contained QT movie, then run Compressor (from G5) and try and compressor that movie, only the G4 runs. I can not get both computers to run simultaneously on the same job. I have "Job Segmenting" checked in the Inspector in Compressor
    I have scoured the disscussions looking for answers and it seems that exporting from FCP using Compressor only uses the machine(s) that have FCP installed on it...is this correct?
    I have also read that maybe I need to install Compressor on my G4 (according to the manual I don't) but do I?
    Maybe it is not even worth it...if someone out there doesn't think it is (in my case) please don't hesitate to say so...because at this point I am about to give up on Qmaster. Thanks in advance.
    Dave

    HI dave,, yes very strange indeed.
    My first port of call is usually to lock at the:
    • QMASTER console logs. Use /applications/utilities/console.app .. look closely and there will be something of interest in there for you, particularly the ~/..logs/QMASTER..
    • also look in there also for compressor.
    I have some mention of this (as do many smilar posts) in a post I did some time back at:
    http://discussions.apple.com/thread.jspa?threadID=951536&tstart=0
    I found the log helpful to resolve may of these funny things in QMASTER.
    Sounds like a resource "unavailable" issue.. such as one servioce node cannot access the resoures it needs.
    If this is tha case and (you dont have an SSAFS like XSAN), then make sure you have all the resources (inputs, outputs etc) MOUNTED and available to the G5 and the G4 (over NFS - your 100baseT or pt/pt 1GbE).
    Oh and inparocula the compressor option "DONT COPY from SOURCE" or what ever it is.. som make sur all the OBJECTS are available to each machone. Check the GROUPS if you have to in the finder (get info +i) for deatios and permissions.. maybe this could be an issue too.. bit it doesn't sound like if you have alternatively runnign form compressor then our of FCP...
    MY initial guess is that QMASTER has a look around and the resources if needs for that machine (either of your two hosts) are not there on that machne where it wont run.
    Also check out the detail in the BATCH MONTOR. It would likely have a softerror in the display saying that something didn't fire up.
    Anyway. if you find somthing interetsing in the QMSTER log, feel free to post it.
    good luck

  • My mac can't connect to belkin router?  My mac can connect but I still can't surf the net? Help Please... This is my first time to use mac and belkin.

    My mac can't connect to belkin router?  My mac can connect but I still can't surf the net? Help Please... This is my first time to use mac and belkin.

    Is it Wireless you're trying to connect with?
    Which Mac?
    So we know more about it...
    At the Apple Icon at top left>About this Mac, then click on More Info, then click on Hardware> and report this upto but not including the Serial#...
    Hardware Overview:
    Model Name: iMac
    Model Identifier: iMac7,1
    Processor Name: Intel Core 2 Duo
    Processor Speed: 2.4 GHz
    Number Of Processors: 1
    Total Number Of Cores: 2
    L2 Cache: 4 MB
    Memory: 6 GB
    Bus Speed: 800 MHz
    Boot ROM Version: IM71.007A.B03
    SMC Version (system): 1.21f4

  • A website I frequently visit will no longer come up. Safaris says that my connection has been lost but it hasn't. I even get emails from the website but I still can't get on it. Why would it all of a sudden do this?

    A website I frequently visit will no longer come up. Safaris says that my connection has been lost but it hasn't. I even get emails from the website but I still can't get on it. Why would it all of a sudden do this?

    The reason, I included the annotation that I'd upgraded my Itunes, (On my Computer) is B/C in many forums - the very first question, *HELPERS* ask, is. "Do you have the latest version of Itunes downloaded on your computer." I wanted to knock out any obvious replies.
    Now-  "DO YOU have any idea,"... how your UNHELPFUL remarks, do absolutely nothing but hurt others that might not have the EXPERIENCE you have? How do you expect people to know things without asking questions? Whew! RUDE!!
    Message was edited by: Apple I0S Help Team

  • I have an imac 2006 running 10.6.8 but I still can't upgrade to Mavericks. Is this model not able to run mavericks or is there a way to download?

    I have an imac 2006 running 10.6.8 but I still can't upgrade to Mavericks. Is this model not able to run mavericks, or is there a way to download? Apple says any imac running snow leopard or later.

    Again, some proof would be nice
    Instead of just making a casual, blanket statement, why don't you just post the actual install procedure here, then.
    Also, the 2006 models really do not have sufficient RAM specs to run Mavericks well.
    So, I seriously question that your 2006 model iMac is running well on Mavericks.
    2006 models could either take 2 or 3 GBs of RAM (you can install 4 GBs of RAM to take advantage of more efficient RAM processing of matched pairs of RAM, but the hardware will only recognize 3.2 to 3.4 GBs of that total RAM). This is barely the needed "real world" "working" minimum of RAM needed for Mavericks to run adaequately.
    New iMacs ship with a much better 8 GBs of RAM.
    If you can't offer/post proof with an actual install procedure for installing Mavericks on unsupported Macs, then I would suggest you stop posting your assertion that
    "I have done it" garbage and post knowledge and info that is REAL and relevant to users of 2006 model Macs that need accurate info about this.

  • After upgrading to ios 8.1.1 my ipad 4 camera doesnt work i just got blank screen, but i still can use it for facetime, i supposed after upgrading to ios 8.1.2 it will fix but it doesnt work. i cannot restore to ios 7. hopefully, any suggestion to co

    after upgrading to ios 8.1.1 my ipad 4 camera doesnt work i just got blank screen, but i still can use it for facetime, i supposed after upgrading to ios 8.1.2 it will fix but it doesnt work. i cannot restore to ios 7. hopefully, any suggestion to correct it?  thank you

    Hello pichastos,
    Thanks for using Apple Support Communities.
    To troubleshoot this issue where your camera is displaying a black screen, please follow the information outlined below.
    You see a closed lens or black screen
    If you see a closed lens or black screen when you open the Camera app, try these steps:
    Make sure that there’s nothing blocking the camera lens. If you’re using a case, try removing it.
    Force the app to close, then open the Camera app again.
    Restart your device, then open the Camera app again.
    If your device has a front and rear camera, try both cameras by tapping  (camera swap icon). If you see the closed lens or black screen on only one camera, take your device to an Apple Retail Store or Authorized Service Provider for more help.
    Get help with the camera on your iPhone, iPad, or iPod touch - Apple Support
    Take care,
    Alex H.

  • How do you fix an ipod that has a black screen and it turns on but when it turns on the screen gets a lighter black but you still can't see the apps or anything?

    How do you fix an ipod that has a black screen and it turns on but when it turns on the screen gets a lighter black but you still can't see the apps or anything?

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup. See:                                 
    iOS: How to back up                                                                
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
      Apple Retail Store - Genius Bar              
    Apple will exchange your iPod for a refurbished one for this price. They do not fix yours.
    Apple - iPod Repair price                       
    A third-party place like the following maybe less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the screen yourself if you are up to it
    iPod Touch Repair – iFixit

  • I tried to follow the steps in recovery mode but itunes still can't detect it

    i tried to follow the steps in recovery mode but itunes still can't detect it.
    Ok ok. It did work the first time, however the phone got disconnected so then the phone turned itself on again.
    I tried to repeat the same steps again but it did not show the itunes logo. It just turned on and went to the lock screen.
    I did this for about 4-5 times. Each trial ending up with the same result.
    So what i did, once the phone was connected to itunes i clicked the update button and waited for HOURS to finish the update.
    It did restart and did whole other things. But it stopped and a black screen appeared with a text saying Iphone is disabled. Connect to iTunes.
    Any suggestions on what to do next? I'm seriously feeling so frustrated right now.
    So in case you didn't get it my phone was disabled after entering the wrong password too many times. Tried fixing it but it seemed to get worse.
    Really desperate here.

  • I used to look my photos in my tv using apple tv, now i can't when i access through apple tv/ computer/ my library  photo option is not available, i check home sharing and which photos i'm sharing from my mac/itunes but i still can share photos w/apple tv

    I used to look my photos in my tv using apple tv, now i can't when i access through apple tv/ computer/ my library  photo option is not available, i check home sharing and which photos i'm sharing from my mac/itunes but i still can share photos w/apple tv

    Morning JJFH,
    Thanks for using Apple Support Communities.
    If after setting up Home Sharing, you cannot access your shared iTunes library over your home network from your Apple TV, take a look at this article:
    Troubleshooting Home Sharing
    http://support.apple.com/kb/ts2972
    Best of luck,
    Mario

  • But I still can access through lock scre

    I am using IOS 8.2 , sometimes I couldn't access control centre from my home page, but I still can access through lock screen please help me !!

    Morning JJFH,
    Thanks for using Apple Support Communities.
    If after setting up Home Sharing, you cannot access your shared iTunes library over your home network from your Apple TV, take a look at this article:
    Troubleshooting Home Sharing
    http://support.apple.com/kb/ts2972
    Best of luck,
    Mario

  • HT203242 I've tried all of the suggested solutions, but I still can't get my cd drive recognised.  If I delete the driver and rebot, the cd drive appears, but as soon as the driver automatically installs, the driver disappears into the Q: drive

    I've tried all of the suggested solutions, but I still can't get my cd drive recognised on my laptop.  If I delete the driver and reboot, the cd drive appears, but as soon as the driver automatically installs, the driver disappears into the Q: drive, which is not accessible and neither is the CD drive

    I had the same or similar problem after installin iTunes 11 on my Acer Laptop with Vista. The new iTunes ran but I
    completely lost access to my CdRom/DVD drive. Error Code 19 was displayed in Windows Device Manager. Found out
    this is more widespread of a problem than expected.  After trying several forum recommended fixes, the Only thing that gave me back my CdRom drive was doing a Windows Restore to a date prior to iTunes 11 install.  I got my drive back but it also restored me to the prior 10.0.7.21 vers of iTunes which no longer worked due to missing files. iTunes help
    recommended a Reinstall.  I am reluctant to do that for several reason.  That's where I am at for now until I find out if there are any other risks for using iTunes 11 vs. Registry Errors vs. Losing access to my CdRom drive.  Brad

  • How can I enable OpenGL in Photoshop? I already enable OpenCL, but I still can't open 3d obj

    How can I enable OpenGL in Photoshop? I already enable OpenCL, but I still can't open 3d obj

    If you have the latest updates for 10.6.8 then you have the most recent drivers available for you system.   You shouldn't have to download drivers from nVidia's site.  3D and OpenCL should be supported by that card, but I can't confirm until I have access to a system with that card (I have one in my office, but won't be there until Monday morning).  I'll check first thing Monday morning and update this thread with what I find.
    For now, try resetting your PS preferences:
    Resetting preferences returns OpenGL settings to their default status. Reset Photoshop preferences by pressing and holding Shift+Ctrl+Alt (Windows) or Shift+Option+Command (Mac OS) immediately after you start Photoshop. Click Yes when asked if you want to delete the Adobe Photoshop Settings File.

  • I have tried to reindex my messages but I still can not get the search function to work in email

    I have tried reindecing my messages by rebuilding the library but I still can't get my message function to work in mail.  Any proposed solutions much appreciated.

    Some of your user files (not system files) have incorrect permissions or are locked. This procedure will unlock all your user files, reset their ownership, and remove their access-control lists. If you've set special values for those attributes, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    Back up all data.
    Step 1
    If you have more than one user, and the one in question is not an administrator, then go to Step 2.
    Enter the following command in the Terminal window in the same way as before (triple-click, copy, and paste):
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR..; sudo chown -R $UID:staff ~ $_; sudo chmod -R u+rwX ~ $_; chmod -R -N ~ $_; } 2>&-
    This time you'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command may take several minutes to run, depending on how many files you have. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1, if you prefer not to take it, or if it doesn't solve the problem.
    Start up in Recovery mode. When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open. In that window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not  going to reset a password.
    Select your startup volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • HT5622 I've can not   from the apple store. I cheched my visa account it still have money in it and the bank told me is working but I still can't buy stuff from the store . Why?

    I've can not   from the apple store. I cheched my visa account it still have money in it and the bank told me is working but I still can't buy stuff from the store . Why?

    To Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact
    iTunes Store: Accepted forms of payment
    http://support.apple.com/kb/HT5552

Maybe you are looking for