This dosnt make any sense..

can someone explaine why
import javax.swing.*;
import java.awt.Dimension;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener; 
import java.applet.*;
import java.awt.*;
import java.awt.Window;
public class applet extends JApplet implements ActionListener {
     JButton PushMe;
     JTextField TextInput;
     JTextArea TextBox;
     JFrame NewWindow;
     Choice Select;
     String text = new String("hello world!");
     int i = (int) 0;
     public void init() {
          Container c = getContentPane();
          c.setBackground(Color.BLUE);
          c.setLayout(new FlowLayout());
          NewWindow = new JFrame("test");
          PushMe = new JButton("Push Me!");
          Select = new Choice();
          TextInput = new JTextField(15);
          Select.add("--SELECT--");
          Select.add("1");
          Select.add("2");
          PushMe.addActionListener(this);
          TextInput.addActionListener(this);
          NewWindow.setSize(500,500);
          NewWindow.getContentPane().setBackground(Color.BLUE);
          NewWindow.getContentPane().add(Select,BorderLayout.CENTER);
          NewWindow.setLocation(1,350);
          c.add(new JScrollPane(PushMe));
     public void actionPerformed(ActionEvent event) {
          if(event.getSource() == PushMe && i == 0) {
               NewWindow.show();
               i = (int) 1;
          else if(event.getSource() == PushMe && i == 1) {
               NewWindow.hide();
               i = (int) 0;
          if(event.getSource() == TextInput) {
               System.out.println(event.getSource());
}has a background color of blue & shows the Choice() but
import javax.swing.*;
import java.awt.Dimension;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener; 
import java.applet.*;
import java.awt.*;
import java.awt.Window;
public class applet extends JApplet implements ActionListener {
     JButton PushMe;
     JTextField TextInput;
     JTextArea TextBox;
     JFrame NewWindow;
     Choice Select;
     String text = new String("hello world!");
     int i = (int) 0;
     public void init() {
          Container c = getContentPane();
          c.setBackground(Color.BLUE);
          c.setLayout(new FlowLayout());
          NewWindow = new JFrame("test");
          PushMe = new JButton("Push Me!");
          Select = new Choice();
          TextInput = new JTextField(15);
          Select.add("--SELECT--");
          Select.add("1");
          Select.add("2");
          PushMe.addActionListener(this);
          TextInput.addActionListener(this);
          NewWindow.setSize(500,500);
          NewWindow.getContentPane().setBackground(Color.BLUE);
          NewWindow.getContentPane().add(TextInput,BorderLayout.CENTER);
          NewWindow.setLocation(1,350);
          c.add(new JScrollPane(PushMe));
     public void actionPerformed(ActionEvent event) {
          if(event.getSource() == PushMe && i == 0) {
               NewWindow.show();
               i = (int) 1;
          else if(event.getSource() == PushMe && i == 1) {
               NewWindow.hide();
               i = (int) 0;
          if(event.getSource() == TextInput) {
               System.out.println(event.getSource());
}shows the JTextField but with a white background &
import javax.swing.*;
import java.awt.Dimension;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener; 
import java.applet.*;
import java.awt.*;
import java.awt.Window;
public class applet extends JApplet implements ActionListener {
     JButton PushMe;
     JTextField TextInput;
     JTextArea TextBox;
     JFrame NewWindow;
     Choice Select;
     String text = new String("hello world!");
     int i = (int) 0;
     public void init() {
          Container c = getContentPane();
          c.setBackground(Color.BLUE);
          c.setLayout(new FlowLayout());
          NewWindow = new JFrame("test");
          PushMe = new JButton("Push Me!");
          Select = new Choice();
          TextInput = new JTextField(15);
          Select.add("--SELECT--");
          Select.add("1");
          Select.add("2");
          PushMe.addActionListener(this);
          TextInput.addActionListener(this);
          NewWindow.setSize(500,500);
          NewWindow.getContentPane().setBackground(Color.BLUE);
          NewWindow.getContentPane().add(PushMe,BorderLayout.CENTER);
          NewWindow.setLocation(1,350);
          c.add(new JScrollPane(PushMe));
     public void actionPerformed(ActionEvent event) {
          if(event.getSource() == PushMe && i == 0) {
               NewWindow.show();
               i = (int) 1;
          else if(event.getSource() == PushMe && i == 1) {
               NewWindow.hide();
               i = (int) 0;
          if(event.getSource() == TextInput) {
               System.out.println(event.getSource());
}displays a blue background but no JButton() ?
thanks

For applet one: it is recommended that we not mix AWT and Swing components. Choice is an AWT component.
For applet 2: when you add somethting to a center section of a BorderLayout it expands to fill the entire section. Add it to a JPanel and then add the JPanel to the center section. The JPanel expands to fill the center section and the JTextField is left to appear at its preferred size.
For applet number 3: you added the button to the JFrame content pane and then added it to the JScrollPane. Adding it to the JScrollPane removes it from the JFrame content pane. You can only put a component in one place at a time.

Similar Messages

  • My iPad is a 16 GB, it says I have 0 space left even after I erase all my pictures, music, games, and other unnecessary apps. It will not let me download anything. This doesnt make any sense??

    I use my iPad for school and I only have a few apps on there. I have zero pictures/videos. 2 textbooks that dont take up the whole storage space so that isnt the problem. I have no music. When I go into usage in settings, it says 0 bytes available and says my photos and camera are taking up a considerably large amount of space. What gives?

    How much space is Other using? You may be able to reduce.
    How Do I Get Rid Of The “Other” Data Stored On My iPad Or iPhone?
    http://tinyurl.com/85w6xwn
    With an iOS device, the “Other” space in iTunes is used to store things like documents, settings, caches, and a few other important items. If you sync lots of documents to apps like GoodReader, DropCopy, or anything else that reads external files, your storage use can skyrocket. With iOS 5/6, you can see exactly which applications are taking up the most space. Just head to Settings > General > Usage, and tap the button labeled Show All Apps. The storage section will show you the app and how much storage space it is taking up. Tap on the app name to get a description of the additional storage space being used by the app’s documents and data. You can remove the storage-hogging application and all of its data directly from this screen, or manually remove the data by opening the app. Some applications, especially those designed by Apple, will allow you to remove stored data by swiping from left to right on the item to reveal a Delete button.
     Cheers, Tom

  • I lost my Download Stacks option. Now it is just a Download folder. Need to find out how to get the Download Stacks option back. Previous answers to this question don't make any sense to me. Please help in explicit detail. PS I'm using Mountain Lion.

    Need to know how to get it back to its original Download Stack. Previous answers to this questionin Apple Support just don't make any sense to me. I'd appreciate explicit directions on how to restore this feature. Currently it's just a Download folder... must have accidently poofed it away.
    Help!

    And if what WZZZ suggests doesn't work (and hopefully it will) move the file name below to the desktop, log out or restart and the Dock preferences with its defaults should be recreated. You'll need to re-configure it as you like it:
    com.apple.dock.plist
    It's located: in Finder hold the Alt/Option key and from the Go menu select Library>Preferences.
    If it fixes things, delete the file on your desktop.

  • How does this make any sense??

    My husband gets the three bureao FICO subscription....this is on his credit report under "negative factors" HOW does this make ANY sense?!? It has "too many credit accounts with balances" as a negative factor...he has one credit card.... You have too many credit accounts with balances.EquifaxThe FICO® Score considers the number of accounts on a credit report showing a balance.Generally speaking, carrying fewer accounts with balances is considered less risky.For credit cards , your credit report may still show a balance on those cards - even if they are paid off in full each month. The total balance on the last statement is generally the amount that is shown on a credit report. NUMBER OF YOUR ACCOUNTS CARRYING A BALANCE Equifax1 accountFICO High Achievers have an average of 3 credit accounts carrying a balance.

    I think they're trying to say that he doesn't have enough accounts and with only one reporting (with a balance of course), that's their common answer.

  • I can download photos to my computer via my Ipod Touch but not a video of 833mb yet I can send it to my FB account on the same said device, does this make any sense?

    I can download photos to my computer via my Ipod Touch but not a video of 833mb yet I can send it to my FB account on the same said device, does this make any sense?

    See:
    iOS: Importing personal photos and videos from iOS devices to your computer
    Do y have XP? if so see that topic in the above link,
    Can you go to My Computer>iPod>DCIM folder and copy it from there?
    Windows XP can't import video files larger than 500 MB using Camera and Scanner Wizard. You can transfer these files from your device by selecting them in My Computer and dragging or copying the files to your computer's hard drive.

  • It doesn't make any sense (trouble adding new songs/podcasts)

    Hi all
    When I add new songs to my Ipod shuffle, some will play, some won't. When I try to add some podcasts, I can't add them directly by dragging and dropping, so I had to create a new playlist where I can add some new podcasts. And some will play, and some won't.
    By the way, I can't see a whole list of files "inside" the ipod. Instead, I see them in two separated screens.
    OS: Windows XP
    All podcasts and songs are ok, they can be listened to when played on iTunes
    Already changed options for podcasts, so they will play when playing in random order.
    iPod shows up in iTunes when pluged in
    Used apple stuff for some time now.
    I used a ipod shuffle 2nd gen for some time and no problem at all...
    thanks in advance.
    This whole things it has been doing my head in for the last two days...
    PS: And sometimes it only plays podcasts. And sometimes only music and no trace of podcasts. As I said... it doesn't make any sense...
    Message was edited by: MGLVGLM
    PS 2nd: Tried again, now with two podcasts (ok to play random) and one song. Only can listed to the song. No idea why it doesn't play the podcasts.
    Help anyone?
    Thanks again
    Message was edited by: MGLVGLM

    well, it seems that I have found the solution (i read somewhere, not already checked)
    Since ipod shuffle 3G, you have to add podcasts to a playing list, otherwise you can't listen to them.
    If I get it solved, I will write here for the next who doesn't receive much help from Apple and has to google the solution.

  • Will it make any sense to create materialized view on top of a MOLAP cube?

    Hi,
    We have developed few MOLAP cubes for our reporting environment.
    Now we are planning to create materialized with query rewrite enabled for faster performance?
    Is this a correct approach? Will it make any sense? I mean will i get any performance improvement if i create MV on top of a MOLAP cube?
    Thanks and Regards,
    Padmanabh

    Adding a rewrite MV does not change the raw performance of a cube. The only reason to add one is if you want to write your SQL queries against the base relational tables and have the database rewrite your queries against the cube. If you are able to query the cube views directly, then there is no particular benefit to a rewrite MV.
    Adding a refresh-only MV does have benefits even if your queries use the cube views. A refresh-only MV tracks the staleness of the cube and lets you run 'fast' refreshes, which can be useful if you are only modifiying a handful of rows in your fact table.

  • I have a domain with 2 DCs (both virtual machines) in different Hyper-V Hosts. Dose this case make any influence on the time sync?

    As title,
    I have a domain with 2 DCs (both virtual machines) in 2 different Hyper-V Hosts, and one of the perform as a PDC Emulator.
    Dose this case make any influence on the time sync?
    i.e. Both of the VMs sync with Hyper-V host, instead the other host should sync with the PDC Emulator?
    I run w32tm command and get the following result:
    C:\Users\Administrator.DOMAIN8>w32tm /query /computer:dc8.domain8.local /source
    VM IC Time Synchronization Provider
    C:\Users\Administrator.DOMAIN8>w32tm /query /computer:hpvzh05.domain8.local /source
    VM IC Time Synchronization Provider
    HPVZH05.domain8.local works as PDC server.
    How can I make DC8 sync with HPVZH05?

    Awesome!
    It looks like your PDC is successfully pulling time from an external source.  DC8 is not longer pulling from Hyper-V so that is good.
    When you set a client to pull from a source ( and in this case DC8 is pulling from NT5DS, which tells it to pull from the PDC), and it CAN'T pull from that source, it will default to Local CMOS Clock.  This is likely an easy fix.
    First, check connectivity:
    - Method one- Download Portqry and run this command: portqry -n HPVZH05 -p both -e 123 and see if the results say listening, or
    - Method two- Run this command from DC8: w32tm /stripchart /computer:HPVZH05
    If you get any kind of error using method two, it's a connectivity issue.  (Maybe you have a firewall that's blocking access?)
    The other cause of this, and probably more likely in your case, is that your PDC isn't properly advertising as a reliable time source, so DC8 isn't 'allowed' to pull from it.
    Try running this command on your PDC: w32tm /config /reliable:yes
    Then go restart time on your PDC, THEN DC8 again.  (net stop w32time & net start w32time)
    Here's an article you can reference: http://technet.microsoft.com/en-us/library/cc794937(v=WS.10).aspx
    - As always, if you find my posts to be helpful, please mark it appropriately.  Thank you :)
    Chris Ream

  • How do I get my old Foxfire layout back, because I can not find any where to click that makes any sense. Really bad design, none functional with out some very indepth information to mmove me through it. Very bad design.

    I have Vista for an OS, I was running Foxfire 3.4 when it started to freeze after opening the internet the first time and forced me to open the internet again to have function. The first one could not be interacted with at all, not even to close it.
    I loaded Foxfire 4 and now can not even understand the layout. Nothing makes any sense at all. Where are all the normal features? Where do my open in new tab s go and how the hell do I get to them? I am too frustrated to even accept the new interface. I want the old interface back.

    There's a couple of ways to get through to the authorisation controls in the 11.0.x versions.
    The control is still in the Store menu, but first (if you're using iTunes versions 11.0.x) you might need to bring up the menu bar to see the Store menu.
    If you're using 11.0.x, click on the wee boxy icon up in the top-left corner of your iTunes to see the "Show Menu Bar" control, as per the following screenshot:
    Then you'll find the control in the Store menu:
    Alternatively, if you don't want to bring up the menu bar, it's still possible to get into the authorise controls via nested menus accessible from the wee boxy icon. Here's a screenshot of where to find them:

  • Polipo wiki page doesnt make any sense to me, please help?

    Im trying to follow the wiki page to set up polipo but this page is completely confusing.
    First it says
    While other daemons start as root and drop priviledges as soon as possible, polipo runs as the user that invoked it. If polipo is invoked from /etc/rc.d/polipo, change the invokation line from
    /usr/bin/$DAEMON $ARGS >/dev/null 2>&1
    to
    su -c "/usr/bin/$DAEMON $ARGS" -s /bin/sh polipo >/dev/null 2>&1
    It is then also necessary to change ownership and/or permissions of several files and directories written by polipo:
    * the log file /var/log/polipo. Although a better choice is to create a directory /var/log/polipo owned by the designated user and set polipo's log file to /var/log/polipo/polipo.log via the logFile variable in the config file.
    * the pid file at /var/run/polipo/polipo.pid and the directory that hosts it
    * the cache directory /var/cache/polipo and all of the contained files
    Then a bit further down it says
    Polipo can also run without super user privileges. To do so, first copy /etc/polipo/config.sample to a suitable directory:
    $ cp /etc/polipo/config.sample ~/.poliporc
    Edit it so that it points at a writable location, instead of /var/cache/polipo:
    # Uncomment this if you want to put the on-disk cache in a
    # non-standard location:
    diskCacheRoot = "~/.polipo-cache/"
    Create the cache directory:
    $ mkdir ~/.polipo-cache
    Finally, launch Polipo with the new configuration:
    $ polipo -c ~/.poliporc
    Im so confused right now. Which one am I supposed to follow?
    Last edited by tjwoosta (2011-02-27 23:28:07)

    What would you prefer? "tjwoosta sucks" or "tjwoosta seems unfamiliar with the forum etiquette"?
    "polipo wiki page sucks" seems pretty damn informative to me, considering that my problem is with the polipo wiki page being confusing.
    If I were being childish I would post unhelpful messages in other peoples threads because I have too much time on my hands.
    It seems to me that you do not understand  the instructions on the wiki page.
    It is, the way I read it, very clear.
    You CAN run polipo from /etc/rc.d but it will run as root. However, it is clearly stated that "Polipo should run as an unpriviledged user" (emphasis added by me) and as a consequence you are guided to configure polipo to run as such.
    Just to make sure the directions work I set polipo EXACTLY as directed and it works.
    I think that if you follow the instructions you will find the same.
    It tells you to modify  /etc/rc.d/polipo to run as unprivelaged user polipo. Doesnt that make the second part about configuring as a regular user redundant?
    Dont restrict yourself to the Arch wiki - it's good, but not authoritative. Have a look around for other relevant docs, ideally prepared by the polipo devs themselves. Get in touch with other polipo users (on any distro) and seek clarification that way.
    When you have found what you are looking for, and successfully set up your polipo install, come back to the wiki and make any necessary changes.
    Thanks, I think I will
    Last edited by tjwoosta (2011-02-28 00:57:55)

  • How do I transfer a music file (song) from iTunes list to my iPOD? The Apple help files do not make any sense in this regard.

    How do I transfer a song from itunes to my ipod (they are connected). The Apple help files are truly pathetic in this fundamental function.
    For example they say click on the "summary" button ... I find no summary button anywhere on my screen. How's that for a confidence builder?

    This talks about iTunes 10, but it should work the same way in iTunes 11. Transferring purchases for an iDevice to your Mac.
    http://support.apple.com/kb/PH2554
    It should be File>Devices>Transfer Purchases, I think
    You must be using the same Apple ID in iTunes on your Mac that your son is using on the Mini or the movie will not transfer.

  • Hi I want to but more storage as I have gone over my amount. I cant make any sense of the jargon on the site as mildly dyslexic. Can someone tell me in a clear and SIMPLE way how to do this please?

    Bad start put my question above Lol!! As it says I need a simple instruction on how to buy more storage.  My plan only provided 20 GB. Too small! Please help me. I am not very good with reading instructions. My mind goes all blip blip blurp if I see too much in rows and lists. Terrible!

    Hi harika7,
    I would request you to please contact our support at - http://helpx.adobe.com/x-productkb/global/service-ccm.html
    ^Ani

  • Does the 4th GB of RAM makes any senses in the nem MacBook Series?

    Risking to start a neverending troll, and risking, the topic was discussed in exteso earlier, I have to admitt that I am a little bit ****** about a company that merchendizes computers with larger RAM-possibilities than the CPU can handle (to my knowlwedge also RAM doesnt grow on the floor for free...). And in particular, have their local dealer to sell those 4GBs w/o mentioning this limitation (Dataquest company Zurich Switzerland). I actually was so noobish, that i have built in 4GB of RAM in my Dual 2.16 17" 3 months ago, unfortuneately it went broken yesterday, so i wont be able to do any checks myself. The following english statement of Apple dates to October 26, 2006, so maybe it was kinda a 'childhood sickness' that has be fixed in the meantime, and my investement in the 4th MB wasnt for nothing.
    What makes me more suspicious is the fact that in the german translation of the topic, which dates to the June 07, 2007, this limitation to 3GB RAM for MacBook Pro (with 4 built in) is still mentioned. Well, because my poor Dual did only survive 3 monthes (dont let em drop on concret floors, Steve Jobs wont give u a new one, although he argued, the comp would survive the drop w/o any scratch...) i need a new one and i wanna be informed about the actual situation at the RAM's front best.
    *Does anybody know, do the newest models of MacBooks not only accept 4GBs of RAM, but can they also access them all?*
    +The MacBook Pro (15-inch Core 2 Duo) and MacBook Pro (17-inch Core 2 Duo) notebooks have two SDRAM slots in the bottom of the computer, and they come with at least 1 GB DDR2 SDRAM installed into the bottom slot.+
    +Although these notebooks will accept up to a 2 GB SO-DIMM in each of the two memory slots, the MacBook Pro will only support 3 GB total memory. If you want to maximize the amount of SDRAM in your computer, install a 2 GB SO-DIMM in one slot and a 1GB SO-DIMM in the other.+
    +You can use Small-Outline Dual Inline Memory Modules (SO-DIMMS) that meet all of these criteria:+
    PC2-5300
    unbuffered
    nonparity
    200-pin
    +667 MHz+
    +DDR2 SDRAM+
    +You can use RAM module sizes of 1 GB or 2GB in the top or bottom slots.+
    +DIMMs with any of the following features are not supported in the MacBook Pro (Core 2 Duo) notebooks: registers or buffers, PLLs, ECC, parity, or EDO RAM.+
    +Note: If you do install a 2 GB SO-DIMM in both the bottom and top memory slots of the notebook, the About This Mac window and Apple System Profiler will both show that you have 4 GB of SDRAM installed. However, Activity Monitor and other similar applications will reveal that only 3 GB of SDRAM has been addressed for use by the computer.+
    *Kindly, Dhura*

    Yes, the latest 2.2 and 2.4 models can see and use 4gb of ram.
    The previous model can see 4 but only use 4 maximum - this applies to all Core 2 Duo machines pre-dating the latest ones which are based on the intel "Santa Rosa platform".
    The original Core Duo machines could only see 2gb.
    These are limitations of the intel chipsets - not of the Apple MacBook Pro per se.
    Best of luck.

  • Compile errors that don't make any sense

    After spending a day coding, I did something to cause my project file to explode with errors. When I revert everything back to a known working version on source control I still get the same errors. I've tried everything I can think of to fix this. I started this problem while fixing a simple compile warning. I've made sure all the frameworks are included correctly. I feel it must be a project setting thats causing these problems. The GLSprite demo still compiles fine, but no matter how far back I go on source control my project file explodes with the same 121 errors. I'm not sure what I could of changed that won't go away with reverting. Any help would be greatly appreciated. I guess my next attempt will be uninstalling XCode.
    Heres the errors i'm getting
    Line Location UIAlert.h:30: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIAlert.h:40: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIAlert.h:147: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIAlert.h:158: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIBarButtonItem.h:55: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIBarButtonItem.h:74: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIColor.h:17: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:17: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:18: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:18: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:18: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:18: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:19: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:19: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:19: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:19: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:24: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:24: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:25: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:25: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:25: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:25: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:26: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:26: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:26: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:26: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:56: error: expected ')' before 'CGFloat'
    Line Location UIFont.h:15: error: expected ')' before 'CGFloat'
    Line Location UIFont.h:23: error: expected ')' before 'CGFloat'
    Line Location UIFont.h:24: error: expected ')' before 'CGFloat'
    Line Location UIFont.h:25: error: expected ')' before 'CGFloat'
    Line Location UIFont.h:30: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIFont.h:31: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIFont.h:32: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIFont.h:33: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIFont.h:34: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIFont.h:35: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIFont.h:38: error: expected ')' before 'CGFloat'
    Line Location UIGeometry.h:13: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIGeometry.h:16: error: expected ')' before 'top'
    Line Location UIGeometry.h:22: error: 'UIEdgeInsets' has no member named 'left'
    Line Location UIGeometry.h:23: error: 'UIEdgeInsets' has no member named 'top'
    Line Location UIGeometry.h:24: error: 'UIEdgeInsets' has no member named 'right'
    Line Location UIGeometry.h:24: error: 'UIEdgeInsets' has no member named 'left'
    Line Location UIGeometry.h:25: error: 'UIEdgeInsets' has no member named 'bottom'
    Line Location UIGeometry.h:25: error: 'UIEdgeInsets' has no member named 'top'
    Line Location UIGeometry.h:30: error: 'UIEdgeInsets' has no member named 'right'
    Line Location UIGeometry.h:30: error: 'UIEdgeInsets' has no member named 'bottom'
    Line Location UIGeometry.h:30: error: 'UIEdgeInsets' has no member named 'bottom'
    Line Location UIGeometry.h:30: error: 'UIEdgeInsets' has no member named 'right'
    Line Location UIGeometry.h:30: error: 'UIEdgeInsets' has no member named 'top'
    Line Location UIGeometry.h:30: error: 'UIEdgeInsets' has no member named 'left'
    Line Location UIGeometry.h:30: error: 'UIEdgeInsets' has no member named 'left'
    Line Location UIGeometry.h:30: error: 'UIEdgeInsets' has no member named 'top'
    Line Location UIImage.h:52: error: expected ')' before 'CGFloat'
    Line Location UIImage.h:54: error: expected ')' before 'CGFloat'
    Line Location UIImage.h:67: error: expected declaration specifiers or '...' before 'CGFloat'
    Line Location UIInterface.h:35: error: expected ')' before 'CGFloat'
    Line Location UIInterface.h:36: error: expected ')' before 'CGFloat'
    Line Location UIInterface.h:37: error: expected ')' before 'CGFloat'
    Line Location UIInterface.h:38: error: expected ')' before 'CGFloat'
    Line Location UILabel.h:26: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UILabel.h:27: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UILabel.h:29: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UILabel.h:69: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UINavigationBar.h:22: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UINavigationController.h:28: error: expected '=', ',', ';', 'asm' or '_attribute_' before 'UINavigationControllerHideShowBarDuration'
    Line Location UINavigationController.h:43: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UINavigationController.h:44: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIPickerView.h:83: error: expected ')' before 'CGFloat'
    Line Location UIPickerView.h:84: error: expected ')' before 'CGFloat'
    Line Location UIScrollView.h:78: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIScrollView.h:79: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIScrollView.h:108: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIScrollView.h:109: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UISearchDisplayController.h:30: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UISegmentedControl.h:71: error: expected ')' before 'CGFloat'
    Line Location UISegmentedControl.h:72: error: expected ')' before 'CGFloat'
    Line Location UISlider.h:38: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIStringDrawing.h:40: error: expected ')' before 'CGFloat'
    Line Location UIStringDrawing.h:44: error: expected ')' before 'CGFloat'
    Line Location UIStringDrawing.h:62: error: expected ')' before 'CGFloat'
    Line Location UIStringDrawing.h:62: error: expected ')' before 'CGFloat'
    Line Location UIStringDrawing.h:62: error: expected ')' before 'CGFloat'
    Line Location UIStringDrawing.h:64: error: expected ')' before 'CGFloat'
    Line Location UIStringDrawing.h:64: error: expected ')' before 'CGFloat'
    Line Location UIStringDrawing.h:66: error: expected ')' before 'CGFloat'
    Line Location UIStringDrawing.h:66: error: expected ')' before 'CGFloat'
    Line Location UIStringDrawing.h:66: error: expected ')' before 'CGFloat'
    Line Location UITableView.h:48: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITableView.h:49: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITableView.h:50: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITableView.h:183: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITableView.h:184: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITableView.h:185: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITableView.h:316: error: expected ')' before 'CGFloat'
    Line Location UITableView.h:317: error: expected ')' before 'CGFloat'
    Line Location UITableView.h:318: error: expected ')' before 'CGFloat'
    Line Location UITableViewCell.h:64: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITableViewCell.h:66: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITableViewCell.h:118: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITableViewCell.h:159: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITextField.h:46: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITextField.h:58: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITextField.h:59: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITextField.h:60: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITextField.h:61: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITextField.h:62: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITextField.h:86: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITextField.h:124: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIView.h:183: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIWindow.h:14: error: expected '=', ',', ';', 'asm' or '_attribute_' before 'UIWindowLevel'
    Line Location UIWindow.h:21: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIWindow.h:60: error: expected specifier-qualifier-list before 'UIWindowLevel'
    Line Location UIWindow.h:77: error: expected '=', ',', ';', 'asm' or '_attribute_' before 'UIWindowLevelNormal'
    Line Location UIWindow.h:78: error: expected '=', ',', ';', 'asm' or '_attribute_' before 'UIWindowLevelAlert'
    Line Location UIWindow.h:79: error: expected '=', ',', ';', 'asm' or '_attribute_' before 'UIWindowLevelStatusBar'
    Line Location WSMethodInvocation.h:759: error: expected declaration specifiers or '...' before 'CFXMLTreeRef'
    Line Location WSMethodInvocation.h:759: error: expected declaration specifiers or '...' before 'CFXMLTreeRef'
    Line Location WSProtocolHandler.h:486: error: expected declaration specifiers or '...' before 'CFXMLTreeRef'
    Line Location WSProtocolHandler.h:486: error: expected declaration specifiers or '...' before 'CFXMLTreeRef'

    Hi Adam -
    Can we assume your source code control doesn't include the .xcodeproj file? Did you backup the entire project folder at any point? I'm guessing probably not or you would have tried the backup folder by now.
    So to review, are you saying that these compile errors are only showing up in your current project? In addition to GLSprite, can we assume you can compile any of the New Project templates?
    Is the behavior the same when you switch between Debug and Release? Simulator and Device? iPhone OS 3.0 and iPhone 2.x? I assume you've tried Build->Clean All Targets, Xcode->Quit Xcode, and restarting your Mac.
    There's a long list of other things we could check, but if it's only this one project that's broken, I would recommend starting a new project and moving all your source code into the new project. I had to do this once with a nearly complete app because of a similar, mysterious disintegration of my project. Despite my frustration at being unable to isolate the cause, the process went smoothly and took less than two hours. I could have worked faster, but I was trying to rebuild and run at various stages to be sure the project was still clean. I would recommend this, even if you need to make some stub classes to get a subset of the project to link.
    Backing all your files into a new project is strong medicine, but it's likely to work. A re-install of the SDK is no day at the beach either, since you need to carefully clean out the previous installation. If you make a mistake in the cleanup, the new installation may fail, leaving you with two problems: a broken project plus a broken environment.
    Of course if I misunderstood, and you can't even compile a template now, a re-install might be the only choice.
    Hope some part of the above is helpful!
    \- Ray

  • Why were the colour icons taken away from the finder and itunes sidebars and and replaced with grey monochrome shade icons. It doesn't make any sense.

    Why were the colour icons taken away from the finder and itunes sidebars and and replaced with grey monochrome shade icons.
    Have apple rectified this yet ?
    It doesn't make sense to me why they changed this. Can anyone tell me the reason for the lack of colour ?
    On another note, can the the sidebar be changed back to the right hand side in preview (when opening PDF's). It has always been on the right in snow leopard and tiger.
    It seems to me that their has been too many unnecessary changes in the Lion operating system.
    Thanks.

    babowa wrote:
    Why were the colour icons taken away from the finder and itunes sidebars and and replaced with grey monochrome shade icons.
    Have apple rectified this yet ?
    It doesn't make sense to me why they changed this. Can anyone tell me the reason for the lack of colour ?
    You'd have to ask Apple, no one here would know - we are just users like you and aren't allowed to speculate on these forums. You have quite a bit of company though - many people preferred the color.
    And, I've not found a way to put the sidebar back on the right side in Preview, but maybe someone else can chime in with that.
    I much prefer the sidebar a la sinistra

Maybe you are looking for

  • 1 big house - 1 IP address - more than 5 clients?

    Hi there. I’d like to ask this fantastic discussion group for advice on the following: I (more or less) voluntarily accepted the task to wirelessly connect our house to the internet using cable internet service. This is the situation: Our 2.5 floor (

  • How to access value mapping table in xi ?

    Hi All, i want to load all value mapping table data from XI to a excel sheet. how can i do it ?could anyone provide java code needed for it ?

  • RAID 1 Reliablity

    Yesterday I setup new Windows Server 2008 R2 Standard with 2x 1TB SATA drives and 2x Intel S3500 SSD. I installed OS on SSD and Software RAID 1 on both SSD/SATA drives. Today I placed some data on the SATA drive (D: drive) and when I tried to access

  • Sound blaster ZXR not detected

    Hi, I just popped in the ZXR, both cards, in my computer after i uninstalled the old xfi Xtreme music physically and all software. In bios the card is seen in the slot that i've put it in. When i boot in windows it doesn't find the card in the device

  • How to apply j2ee licensing

    Hi everyone: I met a problem about apply J2EE licensing. I install NetWeaver 2004s in AIX machine. The j2ee licensing invalid after 28 days and the j2ee will shutdown every 30 minutes. Then I need restart j2ee engine every 30 minutes. So I go to SAP