Problem With Sliders and Area of a circle-

Hey everyone--
New to Java and trying to work on an application where an oval is being manipulated by a slider and i have to caluculate and display the semi major(basically the diameter) and semi minor axes and caluculate the area of the ellipse. The center of the ellipse. should be on the center of the panel. A JSlider should be provided to alter the length of the major axis of the array. Note: the major axis may be along the x-axis (horizontal) or y-axis (vertical). The slider should be set up to represent percentage of the major axis. When the slider is at 0%, the major axis length would be equal to zero. When the slider is at 100%, the major axis length should be equal to the length of the JPanel.
The major part I am having trouble with is how to get the oval to start at the center of the JFrame and how to get the circle to stop at the ends of the width of the JFrame and the ends of the Height of the JFrame.
I have two different classes here they are below: the ovalPanel just draws a circle on it self and then the slider demo is an extension of that and is being used to calculate the area and semi major etc...
import java.awt.*;
import javax.swing.*;
public class ovalPanel extends JPanel
{  int diameter = 10;
public void paintComponent(Graphics g)
super.paintComponent(g);
g.fillOval(246,237,diameter,diameter);
public void setDiameter(int newDiameter)
diameter = (newDiameter >= 0 ? newDiameter : 10);
repaint();
public Dimension getPreferredSize()
return new Dimension(500,500);
public Dimension getMinimumSize()
return getPreferredSize();
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
public class sliderDemo extends JFrame
{  private JSlider diameterSlider;
private ovalPanel myPanel;
private JPanel textPanel;
private JTextField textField1, textField2, textField3;
private JLabel label1, label2, label3;
public sliderDemo()
super("Slider & Ellipse Demo");
myPanel = new ovalPanel();
myPanel.setBackground(Color.YELLOW);
diameterSlider= new JSlider(SwingConstants.HORIZONTAL, 0, 400, 10);
diameterSlider.setMajorTickSpacing(10);
diameterSlider.setPaintTicks(true);
diameterSlider.addChangeListener(
new ChangeListener()
     public void stateChanged(ChangeEvent e)
     myPanel.setDiameter(diameterSlider.getValue());
textField1= new JTextField(5);
textField2= new JTextField(5);
textField3= new JTextField(5);
label1=new JLabel("semiMajor: ");
label2=new JLabel("semiMinor: ");
label3=new JLabel(" Area: ");
textPanel = new JPanel();
textPanel.add(label1);
textPanel.setLayout(new GridLayout (1,3));
textPanel.add(textField1);
textPanel.add(label2);
textPanel.add(textField2);
textPanel.add(label3);
textPanel.add(textField3);
Container container = getContentPane();
container.add(diameterSlider, BorderLayout.SOUTH);
container.add(myPanel, BorderLayout.CENTER);
container.add(textPanel, BorderLayout.NORTH);
setSize(500, 500);
setVisible(true);
public static void main(String args [])
sliderDemo application = new sliderDemo();
application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Anyone help out with this--would be greatly appreciated
rich_crush

Here is a better description of what is needed :
Write a GUI application that displays an ellipse (oval) of variable size and calculates and displays the semi-major and semi-minor axes and the area of the ellipse. The size of an ellipse is determined by two constants, conventionally denoted a and b. The constant a equals the length of the semi-major axis (i.e. half of the length of the major axis); the constant b equals the length of the semi-minor axis (i.e. half of the length of minor axis).
The area enclosed by an ellipse is , where � is Math.PI.
All drawings must be done on a subclass of JPanel, and the result of the calculations should be displayed in JLabels. The center of the ellipse. should be on the center of the panel. A JSlider should be provided to alter the length of the major axis of the array. Note: the major axis may be along the x-axis (horizontal) or y-axis (vertical). The slider should be set up to represent percentage of the major axis. When the slider is at 0%, the major axis length would be equal to zero. When the slider is at 100%, the major axis length should be equal to the length of the JPanel. The initial major axis length should be at 1/2 of the panel length.
As the ellipse. changes, the lengths of the semi-major axis, semi-minor axis, and the area should be updated and displayed.
The animation below illustrates the Ellipse Slider program in motion. As you see, the drawn shape will be a circle until it grows big enough to touch the long sides of the JPanel, after which, it will grow as an ellipse (oval) until it touches the narrow sides of the panel.
Please help--very confused :)
rich_crush

Similar Messages

  • I have a early 2011 Macbook pro 13 inch, I'm running Lion 10.7.4, and i want to upgrade to 10.8 Mountain Lion. Is it safe for my computer or are people experiencing problems with displays and Battery life?

    I have a early 2011 Macbook pro 13 inch, I'm running Lion 10.7.4, and i want to upgrade to 10.8 Mountain Lion. Is it safe for my computer or are people experiencing problems with displays and Battery life?
    Do Not post stuff about how Airplay doesnt work, because i dont have Apple TV and dont need to hear about it.

    If you have an external drive equal to or larger than your internal HD, clone your internal to it with either Carbon Copy Cloner or Super Duper. Test the clone to make sure it's bootable. Then upgrade either one. Try it out first.

  • Random problems with Mail and ACL

    Am running 10.5.2 on a 2.8 GHz Intel iMac
    Have been experiencing problems with Mail.
    As I'm the only user I've set up Mail Preferences so that a password isn't required every time. However, on occasions, but not always, I get a repeated request for my password - on two of the three Mail accounts I have. No matter how many times I key in the password I keep being asked again. The only solution is to shut the computer down and come back to it sometime later when - most times - it works fine.
    I have an iPod Touch which lifts mail off my server, via the same wifi connection and it works fine.
    Then I had a problem where I couldn't quit Mail. I rebooted several times but Mail continued to refuse to Quit. I had to do a Force Quit every time.
    I've tried repairing permissions. Takes ages then get the following relating to ACL's.
    Whilst I've been using Macs since the mid 80's I'm not a techie and haven't got a clue what ACL's are or what they do.
    In the past when I've (regularly) run Repair Permissions as part of my system housekeeping I've had no problems.
    However, now when I run a Permissions repair this is what I get:
    Repairing permissions for “Macintosh HD”
    Permissions differ on "private/var/log/secure.log", should be -rw------- , they are -rw-r----- .
    ACL found but not expected on "System/Library/User Template/English.lproj/Sites".
    Group differs on "Library/PreferencePanes", should be 0, group is 80.
    Permissions differ on "Library/PreferencePanes", should be drwxr-xr-x , they are drwxrwxr-x .
    ACL found but not expected on "System/Library/User Template/English.lproj/Desktop".
    ACL found but not expected on "System/Library/User Template/English.lproj/Documents".
    ACL found but not expected on "System/Library/User Template/English.lproj/Downloads".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Application Support".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Assistants".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Audio/MIDI Drivers".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Audio/Plug-Ins/Components".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Audio/Plug-Ins/Digidesign".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Audio/Plug-Ins/VST".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Audio/Plug-Ins".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Audio/Sounds/Alerts".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Audio/Sounds/Banks".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Audio/Sounds".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Audio".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/ColorPickers".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Compositions".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Favorites".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/FontCollections".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Fonts".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/iMovie/Plug-ins".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/iMovie/Sound Effects".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/iMovie".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Input Methods".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Internet Plug-Ins".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Keyboard Layouts".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Preferences".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Printers".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Screen Savers".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Sounds".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Voices".
    ACL found but not expected on "System/Library/User Template/English.lproj/Library".
    ACL found but not expected on "System/Library/User Template/English.lproj/Movies".
    ACL found but not expected on "System/Library/User Template/English.lproj/Music".
    ACL found but not expected on "System/Library/User Template/English.lproj/Pictures".
    ACL found but not expected on "System/Library/User Template/English.lproj/Public".
    User differs on "System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/jvm.cfg", should be 0, user is 95.
    User differs on "System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/classlist" , should be 0, user is 95.
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Sites".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Desktop".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Documents".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Application Support".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Assistants".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Audio/Plug-Ins/Components".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Audio/Plug-Ins/Digidesign".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Audio/Plug-Ins/VST".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Audio/Plug-Ins".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Audio/Sounds/Alerts".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Audio/Sounds/Banks".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Audio/Sounds".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Audio".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/ColorPickers".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Favorites".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/FontCollections".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Fonts".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/iMovie/Plug-ins".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/iMovie/Sound Effects".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/iMovie".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Internet Plug-Ins".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Keyboard Layouts".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Preferences".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Printers".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library/Sounds".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Library".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Movies".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Music".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Pictures".
    ACL found but not expected on "System/Library/User Template/Japanese.lproj/Public".
    ACL found but not expected on "System/Library/User Template/German.lproj/Sites".
    ACL found but not expected on "System/Library/User Template/German.lproj/Desktop".
    ACL found but not expected on "System/Library/User Template/German.lproj/Documents".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Application Support".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Assistants".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Audio/Plug-Ins/Components".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Audio/Plug-Ins/Digidesign".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Audio/Plug-Ins/VST".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Audio/Plug-Ins".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Audio/Sounds/Alerts".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Audio/Sounds/Banks".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Audio/Sounds".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Audio".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/ColorPickers".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Favorites".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/FontCollections".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Fonts".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/iMovie/Plug-ins".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/iMovie/Sound Effects".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/iMovie".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Internet Plug-Ins".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Keyboard Layouts".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Preferences".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Printers".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library/Sounds".
    ACL found but not expected on "System/Library/User Template/German.lproj/Library".
    ACL found but not expected on "System/Library/User Template/German.lproj/Movies".
    ACL found but not expected on "System/Library/User Template/German.lproj/Music".
    ACL found but not expected on "System/Library/User Template/German.lproj/Pictures".
    ACL found but not expected on "System/Library/User Template/German.lproj/Public".
    ACL found but not expected on "System/Library/User Template/French.lproj/Sites".
    ACL found but not expected on "System/Library/User Template/French.lproj/Desktop".
    ACL found but not expected on "System/Library/User Template/French.lproj/Documents".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Application Support".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Assistants".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Audio/Plug-Ins/Components".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Audio/Plug-Ins/Digidesign".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Audio/Plug-Ins/VST".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Audio/Plug-Ins".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Audio/Sounds/Alerts".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Audio/Sounds/Banks".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Audio/Sounds".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Audio".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/ColorPickers".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Favorites".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/FontCollections".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Fonts".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/iMovie/Plug-ins".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/iMovie/Sound Effects".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/iMovie".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Internet Plug-Ins".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Keyboard Layouts".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Preferences".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Printers".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library/Sounds".
    ACL found but not expected on "System/Library/User Template/French.lproj/Library".
    ACL found but not expected on "System/Library/User Template/French.lproj/Movies".
    ACL found but not expected on "System/Library/User Template/French.lproj/Music".
    ACL found but not expected on "System/Library/User Template/French.lproj/Pictures".
    ACL found but not expected on "System/Library/User Template/French.lproj/Public".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Sites".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Desktop".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Documents".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Application Support".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Assistants".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Audio/Plug-Ins/Components".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Audio/Plug-Ins/Digidesign".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Audio/Plug-Ins/VST".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Audio/Plug-Ins".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Audio/Sounds/Alerts".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Audio/Sounds/Banks".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Audio/Sounds".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Audio".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/ColorPickers".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Favorites".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/FontCollections".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Fonts".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/iMovie/Plug-ins".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/iMovie/Sound Effects".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/iMovie".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Internet Plug-Ins".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Keyboard Layouts".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Preferences".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Printers".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library/Sounds".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Library".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Movies".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Music".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Pictures".
    ACL found but not expected on "System/Library/User Template/Spanish.lproj/Public".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Sites".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Desktop".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Documents".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Application Support".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Assistants".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Audio/Plug-Ins/Components".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Audio/Plug-Ins/Digidesign".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Audio/Plug-Ins/VST".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Audio/Plug-Ins".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Audio/Sounds/Alerts".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Audio/Sounds/Banks".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Audio/Sounds".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Audio".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/ColorPickers".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Favorites".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/FontCollections".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Fonts".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/iMovie/Plug-ins".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/iMovie/Sound Effects".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/iMovie".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Internet Plug-Ins".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Keyboard Layouts".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Preferences".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Printers".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library/Sounds".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Library".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Movies".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Music".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Pictures".
    ACL found but not expected on "System/Library/User Template/Italian.lproj/Public".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Sites".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Desktop".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Documents".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Application Support".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Assistants".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Audio/Plug-Ins/Components".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Audio/Plug-Ins/Digidesign".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Audio/Plug-Ins/VST".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Audio/Plug-Ins".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Audio/Sounds/Alerts".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Audio/Sounds/Banks".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Audio/Sounds".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Audio".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/ColorPickers".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Favorites".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/FontCollections".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Fonts".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/iMovie/Plug-ins".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/iMovie/Sound Effects".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/iMovie".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Internet Plug-Ins".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Keyboard Layouts".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Preferences".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Printers".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library/Sounds".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Library".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Movies".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Music".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Pictures".
    ACL found but not expected on "System/Library/User Template/Dutch.lproj/Public".
    ACL found but not expected on "System/Library/User Template/da.lproj/Sites".
    ACL found but not expected on "System/Library/User Template/da.lproj/Desktop".
    ACL found but not expected on "System/Library/User Template/da.lproj/Documents".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Application Support".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Assistants".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Audio/Plug-Ins/Components".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Audio/Plug-Ins/Digidesign".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Audio/Plug-Ins/VST".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Audio/Plug-Ins".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Audio/Sounds/Alerts".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Audio/Sounds/Banks".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Audio/Sounds".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Audio".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/ColorPickers".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Favorites".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/FontCollections".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Fonts".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/iMovie/Plug-ins".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/iMovie/Sound Effects".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/iMovie".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Internet Plug-Ins".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Keyboard Layouts".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Preferences".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Printers".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library/Sounds".
    ACL found but not expected on "System/Library/User Template/da.lproj/Library".
    ACL found but not expected on "System/Library/User Template/da.lproj/Movies".
    ACL found but not expected on "System/Library/User Template/da.lproj/Music".
    ACL found but not expected on "System/Library/User Template/da.lproj/Pictures".
    ACL found but not expected on "System/Library/User Template/da.lproj/Public".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Sites".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Desktop".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Documents".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Application Support".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Assistants".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Audio/Plug-Ins/Components".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Audio/Plug-Ins/Digidesign".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Audio/Plug-Ins/VST".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Audio/Plug-Ins".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Audio/Sounds/Alerts".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Audio/Sounds/Banks".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Audio/Sounds".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Audio".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/ColorPickers".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Favorites".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/FontCollections".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Fonts".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/iMovie/Plug-ins".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/iMovie/Sound Effects".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/iMovie".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Internet Plug-Ins".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Keyboard Layouts".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Preferences".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Printers".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library/Sounds".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Library".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Movies".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Music".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Pictures".
    ACL found but not expected on "System/Library/User Template/fi.lproj/Public".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Sites".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Desktop".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Documents".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Application Support".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Assistants".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Audio/Plug-Ins/Components".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Audio/Plug-Ins/Digidesign".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Audio/Plug-Ins/VST".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Audio/Plug-Ins".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Audio/Sounds/Alerts".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Audio/Sounds/Banks".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Audio/Sounds".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Audio".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/ColorPickers".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Favorites".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/FontCollections".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Fonts".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/iMovie/Plug-ins".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/iMovie/Sound Effects".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/iMovie".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Internet Plug-Ins".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Keyboard Layouts".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Preferences".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Printers".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library/Sounds".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Library".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Movies".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Music".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Pictures".
    ACL found but not expected on "System/Library/User Template/ko.lproj/Public".
    ACL found but not expected on "System/Library/User Template/no.lproj/Sites".
    ACL found but not expected on "System/Library/User Template/no.lproj/Desktop".
    ACL found but not expected on "System/Library/User Template/no.lproj/Documents".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Application Support".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Assistants".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Audio/Plug-Ins/Components".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Audio/Plug-Ins/Digidesign".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Audio/Plug-Ins/VST".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Audio/Plug-Ins".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Audio/Sounds/Alerts".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Audio/Sounds/Banks".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Audio/Sounds".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Audio".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/ColorPickers".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Favorites".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/FontCollections".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Fonts".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/iMovie/Plug-ins".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/iMovie/Sound Effects".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/iMovie".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Internet Plug-Ins".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Keyboard Layouts".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Preferences".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Printers".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library/Sounds".
    ACL found but not expected on "System/Library/User Template/no.lproj/Library".
    ACL found but not expected on "System/Library/User Template/no.lproj/Movies".
    ACL found but not expected on "System/Library/User Template/no.lproj/Music".
    ACL found but not expected on "System/Library/User Template/no.lproj/Pictures".
    ACL found but not expected on "System/Library/User Template/no.lproj/Public".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Sites".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Desktop".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Documents".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Application Support".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Assistants".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Audio/Plug-Ins/Components".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Audio/Plug-Ins/Digidesign".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Audio/Plug-Ins/VST".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Audio/Plug-Ins".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Audio/Sounds/Alerts".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Audio/Sounds/Banks".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Audio/Sounds".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Audio".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/ColorPickers".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Favorites".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/FontCollections".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Fonts".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/iMovie/Plug-ins".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/iMovie/Sound Effects".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/iMovie".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Internet Plug-Ins".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Keyboard Layouts".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Preferences".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Printers".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library/Sounds".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Library".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Movies".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Music".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Pictures".
    ACL found but not expected on "System/Library/User Template/ru.lproj/Public".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Sites".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Desktop".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Documents".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Application Support".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Assistants".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Audio/Plug-Ins/Components".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Audio/Plug-Ins/Digidesign".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Audio/Plug-Ins/VST".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Audio/Plug-Ins".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Audio/Sounds/Alerts".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Audio/Sounds/Banks".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Audio/Sounds".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Audio".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/ColorPickers".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Favorites".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/FontCollections".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Fonts".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/iMovie/Plug-ins".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/iMovie/Sound Effects".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/iMovie".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Internet Plug-Ins".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Keyboard Layouts".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Preferences".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Printers".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library/Sounds".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Library".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Movies".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Music".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Pictures".
    ACL found but not expected on "System/Library/User Template/sv.lproj/Public".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Sites".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Desktop".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Documents".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Application Support".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Assistants".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Audio/Plug-Ins/Components".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Audio/Plug-Ins/Digidesign".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Audio/Plug-Ins/VST".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Audio/Plug-Ins".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Audio/Sounds/Alerts".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Audio/Sounds/Banks".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Audio/Sounds".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Audio".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/ColorPickers".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Favorites".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/FontCollections".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Fonts".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/iMovie/Plug-ins".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/iMovie/Sound Effects".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/iMovie".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Internet Plug-Ins".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Keyboard Layouts".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Preferences".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Printers".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library/Sounds".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Library".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Movies".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Music".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Pictures".
    ACL found but not expected on "System/Library/User Template/pt.lproj/Public".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Sites".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Desktop".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Documents".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Application Support".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Assistants".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Audio/Plug-Ins/Components".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Audio/Plug-Ins/Digidesign".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Audio/Plug-Ins/VST".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Audio/Plug-Ins".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Audio/Sounds/Alerts".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Audio/Sounds/Banks".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Audio/Sounds".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Audio".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/ColorPickers".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Favorites".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/FontCollections".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Fonts".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/iMovie/Plug-ins".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/iMovie/Sound Effects".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/iMovie".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Internet Plug-Ins".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Keyboard Layouts".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Preferences".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Printers".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library/Sounds".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Library".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Movies".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Music".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Pictures".
    ACL found but not expected on "System/Library/User Template/zh_CN.lproj/Public".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Sites".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Desktop".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Documents".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Application Support".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Assistants".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Audio/Plug-Ins/Components".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Audio/Plug-Ins/Digidesign".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Audio/Plug-Ins/VST".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Audio/Plug-Ins".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Audio/Sounds/Alerts".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Audio/Sounds/Banks".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Audio/Sounds".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Audio".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/ColorPickers".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Favorites".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/FontCollections".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Fonts".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/iMovie/Plug-ins".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/iMovie/Sound Effects".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/iMovie".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Internet Plug-Ins".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Keyboard Layouts".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Preferences".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Printers".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library/Sounds".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Library".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Movies".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Music".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Pictures".
    ACL found but not expected on "System/Library/User Template/zh_TW.lproj/Public".
    Permissions repair complete
    After a reboot I ran Permissions Fix again, several times, every time with the same results?
    I went into into System/Library/User Template but the folder has a "no entry" i.e. red circle with white horizontal bar. I clicked on this but get message I don't have sufficient access privileges.
    I'm the only user and admin.
    Can someone tell me what's going on?

    Hi Charlie,
    The Mail app is requesting my password - again and again.
    The odd thing is that I have a three email accounts - all set up with the password stored in Mail Prefs so I don't have to enter each time - but only two accounts give me problems.
    The other strange thing is that when I boot up the computer first thing in the morning and check my mail there's rarely (if ever) a problem.
    I leave the computer on during the day then check my mail again after lunch - when the computer has been 'sleeping'. It's usually then that I hit a problem. Even rebooting at this stage doesn't always work. It's as if my iMac needs be shut down for several hours to work consistently.
    Something else I realised yesterday was that when the computer has been sleeping and I check Mail (in the afternoon) and Mail starts requesting password over and over again - and the black whirly hovers over the account - its often impossible to do a simple Quit on Mail. I have to do a Force Quit.
    First time I've ever experienced such confusing problems with Macs - and been using them since around 1986!

  • Problem with JFrame and busy/wait Cursor

    Hi -- I'm trying to set a JFrame's cursor to be the busy cursor,
    for the duration of some operation (usually just a few seconds).
    I can get it to work in some situations, but not others.
    Timing does seem to be an issue.
    There are thousands of posts on the BugParade, but
    in general Sun indicates this is not a bug. I just need
    a work-around.
    I've written a test program below to demonstrate the problem.
    I have the problem on Solaris, running with both J2SE 1.3 and 1.4.
    I have not tested on Windows yet.
    When you run the following code, three JFrames will be opened,
    each with the same 5 buttons. The first "F1" listens to its own
    buttons, and works fine. The other two (F2 and F3) listen
    to each other's buttons.
    The "BUSY" button simply sets the cursor on its listener
    to the busy cursor. The "DONE" button sets it to the
    default cursor. These work fine.
    The "SLEEP" button sets the cursor, sleeps for 3 seconds,
    and sets it back. This does not work.
    The "INVOKE LATER" button does the same thing,
    except is uses invokeLater to sleep and set the
    cursor back. This also does not work.
    The "DELAY" button sleeps for 3 seconds (giving you
    time to move the mouse into the other (listerner's)
    window, and then it behaves just like the "SLEEP"
    button. This works.
    Any ideas would be appreciated, thanks.
    -J
    import java.awt.BorderLayout;
    import java.awt.Cursor;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.SwingUtilities;
    public class BusyFrameTest implements ActionListener
    private static Cursor busy = Cursor.getPredefinedCursor (Cursor.WAIT_CURSOR);
    private static Cursor done = Cursor.getDefaultCursor();
    JFrame frame;
    JButton[] buttons;
    public BusyFrameTest (String title)
    frame = new JFrame (title);
    buttons = new JButton[5];
    buttons[0] = new JButton ("BUSY");
    buttons[1] = new JButton ("DONE");
    buttons[2] = new JButton ("SLEEP");
    buttons[3] = new JButton ("INVOKE LATER");
    buttons[4] = new JButton ("DELAY");
    JPanel buttonPanel = new JPanel();
    for (int i = 0; i < buttons.length; i++)
    buttonPanel.add (buttons);
    frame.getContentPane().add (buttonPanel);
    frame.pack();
    frame.setVisible (true);
    public void addListeners (ActionListener listener)
    for (int i = 0; i < buttons.length; i++)
    buttons[i].addActionListener (listener);
    public void actionPerformed (ActionEvent e)
    System.out.print (frame.getTitle() + ": " + e.getActionCommand());
    if (e.getActionCommand().equals ("BUSY"))
    frame.setCursor (busy);
    else if (e.getActionCommand().equals ("DONE"))
    frame.setCursor (done);
    else if (e.getActionCommand().equals ("SLEEP"))
    frame.setCursor (busy);
    try { Thread.sleep (3000); } catch (Exception ex) { }
    frame.setCursor (done);
    System.out.print (" finished");
    else if (e.getActionCommand().equals ("INVOKE LATER"))
    frame.setCursor (busy);
    SwingUtilities.invokeLater (thread);
    else if (e.getActionCommand().equals ("DELAY"))
    try { Thread.sleep (3000); } catch (Exception ex) { }
    frame.setCursor (busy);
    try { Thread.sleep (3000); } catch (Exception ex) { }
    frame.setCursor (done);
    System.out.print (" finished");
    System.out.println();
    Runnable thread = new Runnable()
    public void run()
    try { Thread.sleep (3000); } catch (Exception ex) { }
    frame.setCursor (done);
    System.out.println (" finished");
    public static void main (String[] args)
    BusyFrameTest f1 = new BusyFrameTest ("F1");
    f1.addListeners (f1);
    BusyFrameTest f2 = new BusyFrameTest ("F2");
    BusyFrameTest f3 = new BusyFrameTest ("F3");
    f2.addListeners (f3); // 2 listens to 3
    f3.addListeners (f2); // 3 listens to 2

    I've had the same problems with cursors and repaints in a swing application, and I was thinking of if I could use invokeLater, but I never got that far with it.
    I still believe you would need a thread for the time consuming task, and that invokeLater is something you only need to use in a thread different from the event thread.

  • Problem with DMGs and error: "No Mountable File Systems"

    Problem with DMGs and error: "No Mountable File Systems"
    The files are not corrupt. The problem is occurring with all DMGs that are apparently formatted in MS-DOS FAT16. No the file will not mount with Disk utility or any other disk mounter programs I have found.
    This is now the second time this occurred and now effects my MBP and my iMac. First time i spent days with Apple support and the only solution was ultimately back up the data, reformat the HD, start over from scratch and reload everything. That lasted about a month before the problem resurfaced and is now an issue on both iMac and MBP.
    I tried to identify all the programs I installed immediately before the error, as I am convinced it is the result of a software conflict.
    Recent programs includes:
    1) upgrading from Parallels 5.5 to 6.0 on both machines.
    2) using an HP secure II usb drive and setting up a secure disk.
    3) installing new itunes 10
    4) new update to Flip For Mac.
    The files affected are downloaded dmgs, including personal brain and google earth, both which are formatted in FAT16.
    Any help or thoughts? Apple has now spent hours trying and they say i now have to reformat and wipe and start over. That is unacceptable and based on pasted experience the problem is likely to repeat itself. having to wipe and rebuild a HD ever month is not an solution. i need to fid the root problem.
    In the meantime, anyone got a real solution on how to extract the data for a DMG using a different method?
    Message was edited by: remaia

    Where you able to find the solution, i am having the same problem, all was fine till i install some programs only same one i saw did we both did was flip4mac i uninstalled it but the problem is still there, i also restored and erased the hardrive but im not up to doing that all over again. If you found anything out let me know i would greatly appreciate it

  • Problem with Rescue and Recovery after installing Norton Internet Security 2010

    Hi all.
    It's my first time in this forum.
    I have a problem, with Rescue and Recovery, after installing Norton Internet Security 2010 on my T43.
    The message I get it:
    "Rescue and Recovery is unable to back up the file 'C:\Documents and settings\all Users\Application Data\ Norton\ 00000082\00000109\000003c1\cltMLS1.bat' Because the file is either corrupted or being used by another application. Please close any application that could be using the file.
    I tried to close the Norton but I couldn't find how.
    Tanks
    Doron71

    Hi and welcome to the forum,
    the reason for this situation is, that the antivir files are protected from being modified.
    This is the reason, why this file cannot be backed up. I assume, that you would get much more such messages, as there are surelly multiple files files, that are protected like this.
    So the solution is to block folders from being archived. Please start RnR application and in the configuration set this folder as the excluded one.
    This will skip the backup of this file and will fix your situation.
    Please let me know, if you have covered this.
    Cheers

  • Problem with Preview and PSD files - random gray square

    Hi guys, hope you can help...
    I've got a problem with Preview and PSD files.
    If I open in Preview both an original jpg straight from my reflex and the photoshop version of the same picture, the psd file presents a gray square (of what it seems unrendered image) in a random area of the photo (sometimes in the center.). The square is quite big...
    If I zoom in or zoom out it disappears...if I scroll to another photo and then back to the psd, the square it's there again...sometimes in a different position.
    I've tried the same psd on my older iMac with leopard...and got no problem at all.
    I suspect it got something to do with my Ati...
    (this is the second iMac 27...the first went back for gray banding on the lcd screen and flickering and yellow tinge........)
    Thanks for your help.
    DAve.

    maybe I'm onto something...
    I've just found out that opening Preview in 32bit mode (instead of default 64bit) works flawlessly with any psd files. If I switch back to 64bit mode, Preview is much faster but the gray square comes back...
    It seems like the i7 is much faster than the Ati....
    Any more realistic ideas?

  • Problem with ECS and XSD

    Hi B2B Gurus,
    We are facing the problem with ECS and XSD files from past 2 weeks, Steps we followed
    1. Created a ECS file in document editor version 11g: 6.6.0
    2. ECS files consists only from ST and SE segments
    Ex: ST
    BCH
    CUR
    REF
    PER -- Exclude
    TAX -- Exclude
    SE
    3: Generated a XSD file from ECS file( File --> export---> Oracle B2B) in document ediotr
    4. We imported a ECS and XSD file in B2B console( documents---docdef-transaction set ECS file) and XSD File
    5. We tested one file from manually we face below error:
    Error Code B2B-51507
    Error Description Machine Info: (usmtnz-dinfap19.dev.emrsn.org) Description: Payload validation error.
    Error Level ERROR_LEVEL_COLLABORATION
    Error Severity ERROR
    Error Text
    and some times it shows Guideline load Error or simply Error
    Please help us to resolve this
    Regards

    Anuj,
    We are sending the EDI XML file from backend, then B2B will convert it into EDI file, How can we analyze EDI XML file with ECS file, B2B is not converting to EDI.
    1. Can we use 10g ECS file and XSD file in 11G
    2. I tried to import it, but it showing below error while doing testing
    App Message property     {MSG_ID=90422086, Sequencing=false, DOCTYPE_REVISION=5020, MSG_TYPE=1, FROM_PARTY=EMERSON, DOCTYPE_NAME=850, TO_PARTY=APLL, ATTACHMENT=}
    Direction     OUTBOUND
    State     MSG_ERROR
    Error Code     B2B-51507
    Error Text     Error Brief : The element does not include any significant data.
    Error Description     Error : The Element PER02 does not include any significant data characters. Segment PER is defined in the guideline at position 3600.{br}{br}This error was detected at:{br}{tab}Segment Count: 11{br}{tab}Element Count: 2{br}{tab}Characters: 5395 through 5397
    Created Date     06/20/2011 02:52 PM
    Modified Date     06/20/2011 02:52 PM
    Note: I used the same files in 10G its working fine.
    Regards
    Edited by: Francis on Jun 20, 2011 10:48 AM

  • Problem with axis2 and Tomcat

    Hello,
    I am having a strange problem with Tomcat and axis. I have a webservice that uses axis2 for wsdl2java class generation. When I compile my project in maven a Test is performed. During the test a glassfish server is established and the project is deployed -everything work great with the expected results. However when I try to deploy the webservice on tomcat it has some problems.
    At first I tried to call axis code in a POST method that takes a MultiPart message. The code is as below:
    *@Path("identifyWavestream")*
    *@POST*
    *@Consumes(MediaType.MULTIPART_FORM_DATA)*
    *@Produces(MediaType.APPLICATION_XML)*
    *public String multipartTest(com.sun.jersey.multipart.MultiPart multiPart) throws Exception {* 
    *// get first body part (index 0)*
    *//tomcat shows that the first error is here (line 122 is the nest one with bodypart)*
    BodyPart bp = multiPart.getBodyParts().get(0);
    BodyPartEntity bodyPartEntity = (BodyPartEntity) bp.getEntity();
    InputStream stream = bodyPartEntity.getInputStream();
    *//the rest of the code either saves the incoming file or implements the wsdl2java axis interface - neither works.*
    And the tomcat error is:
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    java.util.ArrayList.RangeCheck(Unknown Source)
    java.util.ArrayList.get(Unknown Source)
    com.webserv.rest.resources.SearchResource.test.multipartTest(SearchResource.java:122)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    java.lang.reflect.Method.invoke(Unknown Source)
    com.sun.jersey.server.impl.model.method.dispatch.EntityParamDispatchProvider$TypeOutInvoker._dispatch(EntityParamDispatchProvider.java:138)
    com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67)
    com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:124)
    com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)
    com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:71)
    com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)
    com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:63)
    com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:555)
    com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:514)
    com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:505)
    com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:359)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    It was strange to me since this simple approach of handling a Multipart method worked for me earlier. Then I decided skip the handling of multipart method and just call the axis code. But the results also caused an error. I then tried to call the axis code in a simple @GET method (to cross out any issues regarding the multipart) and the result where the same. Again everything works on the maven- glassfish test. In this case the tomcat error is the following:
    javax.servlet.ServletException: java.lang.NoSuchMethodError: org.apache.commons.httpclient.HttpConnectionManager.getParams()Lorg/apache/commons/httpclient/params/HttpConnectionManagerParams;
    com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:361)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    root cause
    com.sun.jersey.api.container.MappableContainerException: java.lang.NoSuchMethodError: org.apache.commons.httpclient.HttpConnectionManager.getParams()Lorg/apache/commons/httpclient/params/HttpConnectionManagerParams;
    com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:74)
    com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:124)
    com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)
    com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:71)
    com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)
    com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:63)
    com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:555)
    com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:514)
    com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:505)
    com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:359)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    root cause
    java.lang.NoSuchMethodError: org.apache.commons.httpclient.HttpConnectionManager.getParams()Lorg/apache/commons/httpclient/params/HttpConnectionManagerParams;
    org.apache.axis2.transport.http.AbstractHTTPSender.initializeTimeouts(AbstractHTTPSender.java:454)
    org.apache.axis2.transport.http.AbstractHTTPSender.getHttpClient(AbstractHTTPSender.java:514)
    org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:156)
    org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
    org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:371)
    org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:209)
    org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
    org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
    org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
    org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
    com.webserv.rest.webapp.IntSoapServiceStub.getServerData(IntSoapServiceStub.java:2447)
    com.webserv..rest.resources.AIntSoapImpl.getServerData(AIntSoapImpl.java:112)
    com.webserv..rest.resources.SearchResource.test.pingTest(SearchResource.java:167)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    java.lang.reflect.Method.invoke(Unknown Source)
    com.sun.jersey.server.impl.model.method.dispatch.EntityParamDispatchProvider$TypeOutInvoker._dispatch(EntityParamDispatchProvider.java:138)
    com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67)
    com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:124)
    com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)
    com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:71)
    com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:111)
    com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:63)
    com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:555)
    com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:514)
    com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:505)
    com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:359)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    I think it is also a good ide to post the pom.xml file :
    Edited by: 803864 on 2010-10-21 00:30

    I think it is also a good ide to post the pom.xml file:
    +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"+
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    +<modelVersion>4.0.0</modelVersion>+
    +<groupId>com.myProjects</groupId>+
    +<artifactId>audioid-rest-interface</artifactId>+
    +<packaging>war</packaging>+
    +<name>AudioID Rest Interface</name>+
    +<version>0.1</version>+
    +<dependencies>+
    +<!--+
    +<dependency>+
    +<groupId>com.sun.tools.xjc.maven2</groupId>+
    +<artifactId>maven-jaxb-plugin</artifactId>+
    +<version>1.1</version>+
    +<scope>test</scope>+
    +</dependency>+
    +<dependency>+
    +<groupId>com.sun.jersey</groupId>+
    +<artifactId>jersey-client</artifactId>+
    +<version>1.0.1</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>com.sun.jersey.contribs</groupId>+
    +<artifactId>jersey-multipart</artifactId>+
    +<version>1.0.1</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>com.sun.grizzly</groupId>+
    +<artifactId>grizzly-servlet-webserver</artifactId>+
    +<version>1.9.0</version>+
    +<scope>test</scope>+
    +</dependency>-->+
    +<dependency>+
    +<groupId>com.sun.jersey.contribs</groupId>+
    +<artifactId>jersey-multipart</artifactId>+
    +<version>1.0.1</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>com.sun.jersey</groupId>+
    +<artifactId>jersey-client</artifactId>+
    +<version>1.0.1</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>com.sun.jersey</groupId>+
    +<artifactId>jersey-bundle</artifactId>+
    +<version>1.0.1</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>commons-logging</groupId>+
    +<artifactId>commons-logging</artifactId>+
    +<version>1.0.4</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>commons-collections</groupId>+
    +<artifactId>commons-collections</artifactId>+
    +<version>3.1</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>org.slf4j</groupId>+
    +<artifactId>slf4j-log4j12</artifactId>+
    +<version>1.5.6</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>junit</groupId>+
    +<artifactId>junit</artifactId>+
    +<version>3.8.2</version>+
    +<scope>test</scope>+
    +</dependency>+
    +<dependency>+
    +<groupId>org.glassfish.distributions</groupId>+
    +<artifactId>web-all</artifactId>+
    +<version>10.0-build-20080430</version>+
    +<scope>test</scope>+
    +</dependency>+
    +<dependency>+
    +<groupId>org.glassfish.embedded</groupId>+
    +<artifactId>gf-embedded-api</artifactId>+
    +<version>1.0-alpha-4</version>+
    +<scope>test</scope>+
    +</dependency>+
    +<dependency>+
    +<groupId>com.sun.jersey</groupId>+
    +<artifactId>jersey-server</artifactId>+
    +<version>1.0.3.1</version>+
    +<scope>test</scope>+
    +</dependency>+
    +<dependency>+
    +<groupId>com.sun.jersey.contribs</groupId>+
    +<artifactId>maven-wadl-plugin</artifactId>+
    +<version>1.0.3.1</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>org.hibernate</groupId>+
    +<artifactId>hibernate</artifactId>+
    +<version>3.2.5.ga</version>+
    +<exclusions>+
    +<exclusion>+
    +<groupId>javax.transaction</groupId>+
    +<artifactId>jta</artifactId>+
    +</exclusion>+
    +<exclusion>+
    +<groupId>cglib</groupId>+
    +<artifactId>cglib</artifactId>+
    +</exclusion>+
    +</exclusions>+
    +</dependency>+
    +<dependency>+
    +<groupId>org.apache.axis2</groupId>+
    +<artifactId>axis2</artifactId>+
    +<version>1.4.1</version>+
    +</dependency>+
    +<!-- <dependency> -->+
    +<dependency>+
    +<groupId>org.apache.axis2</groupId>+
    +<artifactId>axis2-aar-maven-plugin</artifactId>+
    +<version>1.4.1</version>+
    +<scope>test</scope>+
    +</dependency>+
    +<dependency>+
    +<groupId>org.apache.axis2</groupId>+
    +<artifactId>axis2-java2wsdl</artifactId>+
    +<version>1.4.1</version>+
    +<scope>test</scope>+
    +</dependency>+
    +<dependency>+
    +<groupId>org.apache.axis2</groupId>+
    +<artifactId>axis2-xmlbeans</artifactId>+
    +<version>1.4.1</version>+
    +</dependency>+
    +<!-- <dependency> -->+
    +<dependency>+
    +<groupId>com.sun.xml.bind</groupId>+
    +<artifactId>jaxb-impl</artifactId>+
    +<version>2.1.12</version>+
    +</dependency>+
    +<dependency>+
    +<groupId>cglib</groupId>+
    +<artifactId>cglib-nodep</artifactId>+
    +<version>2.1_3</version>+
    +</dependency>+
    +</dependencies>+
    +<build>+
    +<finalName>audioid-rest-interface</finalName>+
    +<plugins>+
    +<plugin>+
    +<!-- This class is just generated for wadl support!!! -->+
    +<!-- Take care that folder ../music-dna-core is existing -->+
    +<groupId>com.sun.tools.xjc.maven2</groupId>+
    +<artifactId>maven-jaxb-plugin</artifactId>+
    +<version>1.1</version>+
    +<executions>+
    +<execution>+
    +<phase>generate-sources</phase>+
    +<goals>+
    +<goal>generate</goal>+
    +</goals>+
    +</execution>+
    +</executions>+
    +<configuration>+
    +<generatePackage> com.webserv.wsparameters</generatePackage>+
    +<schemaDirectory>../audioid-rest-interface/src/main/resources+
    +</schemaDirectory>+
    +<includeSchemas>+
    +<includeSchema>**/*.xsd</includeSchema>+
    +</includeSchemas>+
    +<extension>true</extension>+
    +<strict>false</strict>+
    +<verbose>false</verbose>+
    +</configuration>+
    +</plugin>+
    +<plugin>+
    +<groupId>org.apache.maven.plugins</groupId>+
    +<artifactId>maven-javadoc-plugin</artifactId>+
    +<!-- <version>2.6</version> -->+
    +<executions>+
    +<execution>+
    +<goals>+
    +<goal>javadoc</goal>+
    +</goals>+
    +<phase>compile</phase>+
    +</execution>+
    +</executions>+
    +<configuration>+
    +<encoding>UTF-8</encoding>+
    +<verbose>false</verbose>+
    +<show>public</show>+
    +<subpackages> com.webserv.rest.rest.resources: com.webserv.rest.rest.commons: com.webserv.wsparameters+
    +</subpackages>+
    +<doclet>com.sun.jersey.wadl.resourcedoc.ResourceDoclet</doclet>+
    +<docletPath>${path.separator}${project.build.outputDirectory}+
    +</docletPath>+
    +<docletArtifacts>+
    +<docletArtifact>+
    +<groupId>com.sun.jersey.contribs</groupId>+
    +<artifactId>wadl-resourcedoc-doclet</artifactId>+
    +<version>1.0.3.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>com.sun.jersey</groupId>+
    +<artifactId>jersey-server</artifactId>+
    +<version>1.0.3.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>xerces</groupId>+
    +<artifactId>xercesImpl</artifactId>+
    +<version>2.6.1</version>+
    +</docletArtifact>+
    +</docletArtifacts>+
    +<additionalparam>-output+
    +${project.build.outputDirectory}/resourcedoc.xml</additionalparam>+
    +<useStandardDocletOptions>false</useStandardDocletOptions>+
    +</configuration>+
    +</plugin>+
    +<plugin>+
    +<groupId>com.sun.jersey.contribs</groupId>+
    +<artifactId>maven-wadl-plugin</artifactId>+
    +<version>1.0.3.1</version>+
    +<executions>+
    +<execution>+
    +<id>generate</id>+
    +<goals>+
    +<goal>generate</goal>+
    +</goals>+
    +<phase>compile</phase>+
    +</execution>+
    +</executions>+
    +<configuration>+
    +<wadlFile>${project.build.outputDirectory}/application.wadl+
    +</wadlFile>+
    +<formatWadlFile>true</formatWadlFile>+
    +<baseUri>http://192.168.2.149:8080/${project.build.finalName}+
    +</baseUri>+
    +<packagesResourceConfig>+
    +<param> com.webserv.rest.resources</param>+
    +</packagesResourceConfig>+
    +<wadlGenerators>+
    +<wadlGeneratorDescription>+
    +<className>com.sun.jersey.server.wadl.generators.WadlGeneratorApplicationDoc+
    +</className>+
    +<properties>+
    +<property>+
    +<name>applicationDocsFile</name>+
    +<value>${basedir}/src/main/doc/application-doc.xml</value>+
    +</property>+
    +</properties>+
    +</wadlGeneratorDescription>+
    +<wadlGeneratorDescription>+
    +<className>com.sun.jersey.server.wadl.generators.WadlGeneratorGrammarsSupport+
    +</className>+
    +<properties>+
    +<property>+
    +<name>grammarsFile</name>+
    +<value>${basedir}/src/main/doc/application-grammars.xml</value>+
    +</property>+
    +</properties>+
    +</wadlGeneratorDescription>+
    +<wadlGeneratorDescription>+
    +<className>com.sun.jersey.server.wadl.generators.resourcedoc.WadlGeneratorResourceDocSupport+
    +</className>+
    +<properties>+
    +<property>+
    +<name>resourceDocFile</name>+
    +<value>${project.build.outputDirectory}/resourcedoc.xml</value>+
    +</property>+
    +</properties>+
    +</wadlGeneratorDescription>+
    +</wadlGenerators>+
    +</configuration>+
    +</plugin>+
    +<plugin>+
    +<groupId>org.codehaus.mojo</groupId>+
    +<artifactId>exec-maven-plugin</artifactId>+
    +<version>1.1</version>+
    +<executions>+
    +<execution>+
    +<goals>+
    +<goal>java</goal>+
    +</goals>+
    +</execution>+
    +</executions>+
    +<configuration>+
    +<mainClass>com.sun.jersey.samples.generatewadl.Main</mainClass>+
    +</configuration>+
    +</plugin>+
    +<plugin>+
    +<groupId>org.apache.maven.plugins</groupId>+
    +<artifactId>maven-compiler-plugin</artifactId>+
    +<inherited>true</inherited>+
    +<configuration>+
    +<source>1.5</source>+
    +<target>1.5</target>+
    +<!--+
    exclude temporary types that are only needed for wadl and doc
    generation
    -->
    +<!--+
    +<excludes> <exclude>com/webserv/types/temporary/**</exclude>+
    +<exclude>com/webserv/rest/commons/Examples.java</exclude>+
    +</excludes>+
    -->
    +</configuration>+
    +</plugin>+
    +<plugin>+
    +<groupId>org.jvnet.jaxb2.maven2</groupId>+
    +<artifactId>maven-jaxb2-plugin</artifactId>+
    +<executions>+
    +<execution>+
    +<goals>+
    +<goal>generate</goal>+
    +</goals>+
    +</execution>+
    +</executions>+
    +</plugin>+
    +<plugin>+
    +<groupId>org.apache.axis2</groupId>+
    +<artifactId>axis2-wsdl2code-maven-plugin</artifactId>+
    +<version>1.4.1</version>+
    +<executions>+
    +<execution>+
    +<id>generate reco core</id>+
    +<goals>+
    +<goal>wsdl2code</goal>+
    +</goals>+
    +<configuration>+
    +<packageName>com.webserv.rest.webapp</packageName>+
    +<wsdlFile>src/main/java/com/webserv/wsdl/web.wsdl</wsdlFile>+
    +<databindingName>adb</databindingName>+
    +</configuration>+
    +</execution>+
    +</executions>+
    +</plugin>+
    +<plugin>+
    +<groupId>com.sun.tools.xjc.maven2</groupId>+
    +<artifactId>maven-jaxb-plugin</artifactId>+
    +<version>1.1</version>+
    +<executions>+
    +<execution>+
    +<goals>+
    +<goal>generate</goal>+
    +</goals>+
    +</execution>+
    +</executions>+
    +<configuration>+
    +<generatePackage>com.webserv.wsparameters</generatePackage>+
    +<schemaDirectory>src/main/xsd</schemaDirectory> <includeSchemas>+
    +<includeSchema>**/*.xsd</includeSchema> </includeSchemas>+
    +<extension>true</extension>+
    +<strict>false</strict>+
    +<verbose>true</verbose>+
    +</configuration>+
    +</plugin>+
    +</plugins>+
    +</build>+
    +<profiles>+
    +<profile>+
    +<id>jdk-1.5</id>+
    +<activation>+
    +<jdk>1.5</jdk>+
    +</activation>+
    +<dependencies>+
    +<dependency>+
    +<groupId>com.sun.xml.bind</groupId>+
    +<artifactId>jaxb-impl</artifactId>+
    +<version>2.1.10</version>+
    +</dependency>+
    +</dependencies>+
    +<build>+
    +<plugins>+
    +<plugin>+
    +<groupId>org.apache.maven.plugins</groupId>+
    +<artifactId>maven-javadoc-plugin</artifactId>+
    +<configuration>+
    +<docletArtifacts>+
    +<docletArtifact>+
    +<groupId>com.sun.jersey.contribs</groupId>+
    +<artifactId>maven-wadl-plugin</artifactId>+
    +<version>1.0.3.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>com.sun.jersey.contribs</groupId>+
    +<artifactId>wadl-resourcedoc-doclet</artifactId>+
    +<version>1.0.3.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>com.sun.jersey</groupId>+
    +<artifactId>jersey-server</artifactId>+
    +<version>1.0.3.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>xerces</groupId>+
    +<artifactId>xercesImpl</artifactId>+
    +<version>2.6.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>javax.xml.bind</groupId>+
    +<artifactId>jaxb-api</artifactId>+
    +<version>2.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>javax.xml</groupId>+
    +<artifactId>jaxb-impl</artifactId>+
    +<version>2.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>javax.activation</groupId>+
    +<artifactId>activation</artifactId>+
    +<version>1.1</version>+
    +</docletArtifact>+
    +<docletArtifact>+
    +<groupId>javax.xml.stream</groupId>+
    +<artifactId>stax-api</artifactId>+
    +<version>1.0</version>+
    +</docletArtifact>+
    +</docletArtifacts>+
    +</configuration>+
    +</plugin>+
    +</plugins>+
    +</build>+
    +</profile>+
    +<profile>+
    +<id>xsltproc</id>+
    +<activation>+
    +<file>+
    +<exists>../xsltproc_win32/xsltproc.exe</exists>+
    +</file>+
    +</activation>+
    +<build>+
    +<plugins>+
    +<!-- Create/generate the application.html using xsltproc -->+
    +<!-- Create/generate the application.html using xsltproc -->+
    +<plugin>+
    +<groupId>org.codehaus.mojo</groupId>+
    +<artifactId>exec-maven-plugin</artifactId>+
    +<version>1.1</version>+
    +<executions>+
    +<execution>+
    +<id>copy-docs-to-builddir</id>+
    +<goals>+
    +<goal>exec</goal>+
    +</goals>+
    +<phase>compile</phase>+
    +<configuration>+
    +<executable>copy</executable>+
    +<commandlineArgs>src\\main\\doc\\*.* target\\classes+
    +</commandlineArgs>+
    +</configuration>+
    +</execution>+
    +<execution>+
    +<id>prepare-xsltproc</id>+
    +<goals>+
    +<goal>exec</goal>+
    +</goals>+
    +<phase>package</phase>+
    +<configuration>+
    +<executable>copy</executable>+
    +<commandlineArgs>..\\audioid-rest-interface\\src\\main\\resources\\*.xsd+
    target\\classes</commandlineArgs>
    +</configuration>+
    +</execution>+
    +<execution>+
    +<id>exec-xsltproc: target/application.html</id>+
    +<goals>+
    +<goal>exec</goal>+
    +</goals>+
    +<phase>package</phase>+
    +<configuration>+
    +<!--<executable>xsltproc</executable>-->+
    +<executable>../xsltproc_win32/xsltproc.exe</executable>+
    +<commandlineArgs>-o target/application.html+
    src/main/doc/wadl_documentation.xsl
    target/classes/application.wadl</commandlineArgs>
    +</configuration>+
    +</execution>+
    +</executions>+
    +</plugin>+
    +</plugins>+
    +</build>+
    +</profile>+
    +</profiles>+
    +<pluginRepositories>+
    +<pluginRepository>+
    +<id>maven2-repository.dev.java.net</id>+
    +<name>Java.net Repository for Maven</name>+
    +<url>http://download.java.net/maven/2/</url>+
    +<layout>default</layout>+
    +</pluginRepository>+
    +<pluginRepository>+
    +<id>maven-repository.dev.java.net</id>+
    +<name>Java.net Maven 1 Repository (legacy)</name>+
    +<url>http://download.java.net/maven/1</url>+
    +<layout>legacy</layout>+
    +</pluginRepository>+
    +</pluginRepositories>+
    +<repositories>+
    +<repository>+
    +<id>maven2-repository.dev.java.net</id>+
    +<name>Java.net Repository for Maven</name>+
    +<url>http://download.java.net/maven/2/</url>+
    +<layout>default</layout>+
    +</repository>+
    +<repository>+
    +<id>maven-repository.dev.java.net</id>+
    +<name>Java.net Maven 1 Repository (legacy)</name>+
    +<url>http://download.java.net/maven/1</url>+
    +<layout>legacy</layout>+
    +</repository>+
    +<repository>+
    +<id>glassfish-repository</id>+
    +<name>Java.net Repository for Glassfish</name>+
    +<url>http://download.java.net/maven/glassfish</url>+
    +</repository>+
    +</repositories>+
    +</project>+
    Can anyonr contribute?

  • Problem with JTextPane and StateInvariantError

    Hi. I am having a problem with JTextPanes and changing only certain text to bold. I am writing a chat program and would like to allow users to make certain text in their entries bold. The best way I can think of to do this is to add <b> and </b> tags to the beginning and end of any text that is to be bold. When the other client receives the message, the program will take out all of the <b> and </b> tags and display any text between them as bold (or italic with <i> and </i>). I've searched the forums a lot and figured out several ways to make the text bold, and several ways to determine which text is bold before sending the text, but none that work together. Currently, I add the bold tags with this code: (note: messageDoc is a StyledDocument and messageText is a JTextPane)
    public String getMessageText() {
              String text = null;
              boolean bold = false, italic = false;
              for (int i = 0; i < messageDoc.getLength(); i++) {
                   messageText.setCaretPosition(i);
                   if (StyleConstants.isBold(messageDoc.getCharacterElement(i).getAttributes()) && !bold) {
                        bold = true;
                        if (text != null) {
                             text = text + "<b>";
                        else {
                             text = "<b>";
                   else if (StyleConstants.isBold(messageDoc.getCharacterElement(i).getAttributes()) && bold) {
                        // Do nothing
                   else if (!StyleConstants.isBold(messageDoc.getCharacterElement(i).getAttributes()) && bold) {
                        bold = false;
                        if (text != null) {
                             text = text + "</b>";
                        else {
                             text = "</b>";
                   try {
                        if (text != null) {
                             text = text + messageDoc.getText(i,1);
                        else {
                             text = messageDoc.getText(i, 1);
                   catch (BadLocationException e) {
                        System.out.println("An error occurred while getting the text from the message document");
                        e.printStackTrace();
              return text;
         } // end getMessageText()When the message is sent to the other client, the program searches through the received message and changes the text between the bold tags to bold. This seems as if it should work, but as soon as I click on the bold button, I get a StateInvariantError. The code for my button is:
    public void actionPerformed(ActionEvent evt) {
              if (evt.getSource() == bold) {
                   MutableAttributeSet bold = new SimpleAttributeSet();
                   StyleConstants.setBold(bold, true);
                   messageText.getStyledDocument().setCharacterAttributes(messageText.getSelectionStart(), messageText.getSelectionStart() - messageText.getSelectionEnd() - 1, bold, false);
         } //end actionPerformed()Can anyone help me to figure out why this error is being thrown? I have searched for a while to figure out this way of doing what I'm trying to do and I've found out that a StateInvariantError has been reported as a bug in several different circumstances but not in relation to this. Or, if there is a better way to add and check the style of the text that would be great as well. Any help is much appreciated, thanks in advance.

    Swing related questions should be posted in the Swing forum.
    Can't tell from you code what the problem is because I don't know the context of how each method is invoked. But it would seem like you are trying to query the data in the Document while the Document is being updated. Try wrapping the getMessageText() method is a SwingUtilities.invokeLater().
    There is no need to write custom code for a Bold Action you can just use:
    JButton bold = new JButton( new StyledEditorKit.BoldAction() );Also your code to build the text String is not very efficient. You should not be using string concatenation to append text to the string. You should be using a StringBuffer or StringBuilder.

  • Problem with Facetime and my MacBookPro camera

    Hello,
    I've got a MacBookPro and I have a problem with Facetime and my front camera.
    When I have a discussion with an iMac or an other MacBook the image received by the other person becomes fix.
    To unfix it I have to put my finger on my camera and then everything is good until the next time, 4 to 10 seconds later I've got the problem again.
    Perhaps somebody can help me.
    My head on my screen is always good even when the bug appear on my correspondent's screen.
    For information, the 2 mac have the same iOS version (OSX Lion) and Facetime version.

    Hi Dave,
    Edit: Well, I guess I was lost when I posted this. My answer was regarding a problem with OS X, not iOS. I'm going to leave the answer here in case someone else with a Facetime for Mac issue can benefit, because when you're searching for "Facetime AND Login", you could land in any discussion area. -Jerry
    Keychain Access.app is in your Utilities folder in your Applications folder.
    The path will be: Macintosh HD > Applications > Utilities > Keychain Access.app.
    Keychain is where all your passwords are stored for those applications that you don't want to have to manually log into all the time.
    It's a handy app to become familiar with, for instance if you want to look up a password or user name from the past.
    Hope this helps you.
    Jerry

  • Problem with writing and reading using serialization

    I am having a problem with writing and reading an object that has another object in it. The purpose of the class is to write a order that has multiple items in it. And there will be several orders. This is for an IB project, where one of the requirements is to utilize a hierarchical composite data structure. That is, it is "one that contains more than one element and at least one of the elements is a composite data structure. Examples are, an array or linked list of records, a record that has one field that is another record, or an array". The code is shown below:
    The error produced is
    java.lang.NullPointerException
         at SamsonRubberIndustries.CustomerOrderDetails.createCustOrdDetailsScreen(CustomerOrderDetails.java:150)
         at SamsonRubberIndustries.CustomerOrderDetails$1.run(CustomerOrderDetails.java:78)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(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)
    public class CustOrdObject implements Serializable {
         public int CustID;
         public int CustOrderID;
         public Object OrderDate;
         public InnerCustOrdObject[] innerCustOrdObj;
         public float GrandTotal;
         public int MaxItems;
         public CustOrdObject() {}
         public CustOrdObject(InnerCustOrdObject[] innerCustOrdObj,
    int CustID, int CustOrderID, Object OrderDate,
    float GrandTotal, int innerarrlength, int innerarrpos, int MaxItems) {
              this.CustID = CustID;
              this.CustOrderID = CustOrderID;
              this.OrderDate = OrderDate;
              this.GrandTotal = GrandTotal;          
              this.MaxItems = MaxItems;
              this.innerCustOrdObj = new InnerCustOrdObject[MaxItems];
         public InnerCustOrdObject[] getInnerCustOrdObj() {
              return innerCustOrdObj;
         public void setInnerCustOrdObj(InnerCustOrdObject[] innerCustOrdObj) {
              this.innerCustOrdObj = innerCustOrdObj;
         public int getCustID() {
              return CustID;
         public void setCustID(int custID) {
              CustID = custID;
         public int getCustOrderID() {
              return CustOrderID;
         public void setCustOrderID(int custOrderID) {
              CustOrderID = custOrderID;
         public Object getOrderDate() {
              return OrderDate;
         public void setOrderDate(Object orderDate) {
              OrderDate = orderDate;
         public void setGrandTotal(float grandTotal) {
              GrandTotal = grandTotal;
         public float getGrandTotal() {
              return GrandTotal;
         public int getMaxItems() {
              return MaxItems;
         public void setMaxItems(int maxItems) {
              MaxItems = maxItems;
    public class InnerCustOrdObject implements Serializable{
         public int ItemNumber;
         public float UnitPrice;
         public int QuantityRequired;
         public float TotalPrice;
         public InnerCustOrdObject() {}
         public InnerCustOrdObject(int ItemNumber, float
    UnitPrice, int QuantityRequired, float TotalPrice){
              this.ItemNumber = ItemNumber;
              this.UnitPrice = UnitPrice;
              this.QuantityRequired = QuantityRequired;
              this.TotalPrice = TotalPrice;
         public int getItemNumber() {
              return ItemNumber;
         public void setItemNumber(int itemNumber) {
              ItemNumber = itemNumber;
         public int getQuantityRequired() {
              return QuantityRequired;
         public void setQuantityRequired(int quantityRequired) {
              QuantityRequired = quantityRequired;
         public float getTotalPrice() {
              return TotalPrice;
         public void setTotalPrice(float totalPrice) {
              TotalPrice = totalPrice;
         public float getUnitPrice() {
              return UnitPrice;
         public void setUnitPrice(float unitPrice) {
              UnitPrice = unitPrice;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    import javax.swing.*;
    import javax.swing.table.DefaultTableCellRenderer;
    import javax.swing.table.DefaultTableModel;
    public class CustomerOrderDetails extends CommonFeatures{
         //TODO
         private static int MAX_ORDERS = 200;
         private static int MAX_ORDERITEMS = 100;
         private static int MaxRecord;
         private static int CurrentRecord = 1;
         private static int currentItem;
         private static int MaxItems;
         private static boolean FileExists, recFileExists;
         private static CustOrdObject[] orderDetails = new CustOrdObject[MAX_ORDERS];
         private static InnerCustOrdObject[] innerCustOrdObj = new InnerCustOrdObject[MAX_ORDERITEMS];     
         private static File OrderDetailsFile = new File("CustOrdDetails.dat");
         private static File OrdRecordNumStore = new File("OrdRecordNumStore.txt");
         private static PrintWriter writeFile;
         private static BufferedReader readFile;
         private static ObjectOutputStream objOut;
         private static ObjectInputStream objIn;
         //Set format for date
         SimpleDateFormat simpleDF = new SimpleDateFormat("dd MM yyyy");
         //--<BEGINNING>--Declaring Interface Variables------------------------------------------//
         private JPanel innertoppanel, innercenterpanel, innerbottompanel, innerrightpanel, innerleftpanel;
         private JLabel CustIDLbl, CustOrderIDLbl, OrderedDateLbl, GrandTotLbl, ItemNumberLbl,UnitPriceLbl, QuantityReqLbl, TotPriceLbl;
         private JTextField CustIDTxt, CustOrderIDTxt, OrderedDateTxt, GrandTotTxt, ItemNumberTxt, UnitPriceTxt, QuantityReqTxt, TotPriceTxt;
         private JButton addrecordbtn, savebtn, externalprevbtn, externalnextbtn, internalprevbtn, internalnextbtn, gotorecordbtn, additemreqbtn;
         //--<END>--Declaring Interface Variables------------------------------------------------//
         public static void main(String[] args) {
              final CustomerOrderDetails COD = new CustomerOrderDetails();
              java.awt.EventQueue.invokeLater(new Runnable() {
                   public void run() {
                        try {
                             UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
                             COD.createCustOrdDetailsScreen();
                        } catch (Exception eb) {
                             eb.printStackTrace();
         //--<BEGINNING>--Creating CustomerOrderDetails Screen---------------------------------------//
         public JFrame createCustOrdDetailsScreen() {
              createDefaultFrame();
              mainframe.setSize(800,500);
              createContainerPanel();
              containerpanel.add(createCustOrdDetailsTitle(), BorderLayout.NORTH);
              containerpanel.add(createCustOrdDetailsMainPanel(), BorderLayout.CENTER);
              //containerpanel.add(createCustOrdDetailsLeftNavButtons(), BorderLayout.WEST);
              //containerpanel.add(createCustOrdDetailsRightNavButtons(), BorderLayout.EAST);
              containerpanel.add(createCustOrdDetailsButtons(), BorderLayout.SOUTH);
              mainframe.setContentPane(containerpanel);
              mainframe.setLocationRelativeTo(null);
              mainframe.setVisible(true);
              //--<BEGINNING>--Checks to see whether CRecordNumberStore file exists-------------------------------//
              if (OrdRecordNumStore.exists() == true) {
                   recFileExists = true;
              }else {
                   recFileExists = false;
              if (recFileExists == true) {
                   MaxRecord = readRecordNumber();
                   CurrentRecord = MaxRecord;
                   //readOrder();
                   //readInnerOrderRecord(CurrentRecord);
                   System.out.println("Current Record " +CurrentRecord);
                   System.out.println("Max Record " +MaxRecord);
              }else{
                   MaxRecord = 1;
                   writeRecordNumber(MaxRecord);
                   CustOrderIDTxt.setText(""+MaxRecord);
                   System.out.println("Current Record " +CurrentRecord);
                   System.out.println("Max Record " +MaxRecord);
              //--<END>--Checks to see whether CRecordNumberStore file exists--------------------------------------//
              if(readOrder() != null){
                   orderDetails = (CustOrdObject[]) readOrder();
                 innerCustOrdObj = orderDetails[CurrentRecord].getInnerCustOrdObj();
                   MaxItems = orderDetails[CurrentRecord].getMaxItems();
                   if(CurrentRecord > 1 && CurrentRecord < MaxRecord){
                        externalnextbtn.setEnabled(true);
                        externalprevbtn.setEnabled(true);
                   if(CurrentRecord >= MaxRecord){
                        externalnextbtn.setEnabled(false);
                   getFieldText(CurrentRecord-1);
              }else{
                   orderDetails[CurrentRecord] = new CustOrdObject();
                   currentItem = 1;
              return mainframe;
         //--<END>--Creating CustomerOrderDetails Screen---------------------------------------------//
         public JPanel createCustOrdDetailsTitle(){
              createTitlePanel();
              titlepanel.setBackground(TxtfontColor);
              label.setText("- Customer Order Details -");
              labelpanel.setBackground(TxtfontColor);
              label.setForeground(Color.white);
              createbuttonpanel();
              buttonpanel.setBackground(TxtfontColor) ;
              buttonpanel.add(createReturnToMainMenuButton());
              titlepanel.add(labelpanel, BorderLayout.WEST);
              titlepanel.add(buttonpanel, BorderLayout.EAST);
              return titlepanel;
         public JPanel createCustOrdDetailsMainPanel(){
              createmainpanel();
              mainpanel.setBackground(TxtfontColor);
              mainpanel.setLayout(new BorderLayout());          
              mainpanel.setBorder(BorderFactory.createTitledBorder(""));
              mainpanel.add(createInnerTopPanel(), BorderLayout.NORTH);
              mainpanel.add(createInnerCenterPanel(), BorderLayout.CENTER);
              mainpanel.add(createInnerBottomPanel(), BorderLayout.SOUTH);
              mainpanel.add(createInnerRightPanel(), BorderLayout.EAST);
              mainpanel.add(createInnerLeftPanel(), BorderLayout.WEST);
              return mainpanel;
         public JPanel createInnerTopPanel(){
              innertoppanel = new JPanel(new GridBagLayout());
              innertoppanel.setBackground(TxtfontColor);
              GridBagConstraints GBC = new GridBagConstraints();
              GBC.fill = GridBagConstraints.HORIZONTAL;
              //Setting Font Type and Size
              Font font = new Font("Arial", Font.BOLD, 11);
              CustIDLbl = new JLabel("Customer ID");
              CustIDLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              CustIDLbl.setFont(font);
              CustIDLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 1;
              innertoppanel.add(CustIDLbl, GBC);     
              CustIDTxt = new JTextField(20);
              CustIDTxt.setEditable(true);
              GBC.gridx = 2;
              GBC.gridy = 1;
              innertoppanel.add(CustIDTxt, GBC);
              GBC.gridx = 3;
              GBC.gridy = 1;
              innertoppanel.add(Box.createHorizontalStrut(220), GBC);
              OrderedDateLbl = new JLabel("Order Date");
              OrderedDateLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              OrderedDateLbl.setFont(font);
              OrderedDateLbl.setForeground(LblfontColor);
              GBC.gridx = 4;
              GBC.gridy = 1;
              innertoppanel.add(OrderedDateLbl, GBC);     
              //Get today's date
              Date todaydate = new Date();
              OrderedDateTxt = new JTextField(simpleDF.format(todaydate), 20);
              OrderedDateTxt.setHorizontalAlignment(JTextField.CENTER);
              OrderedDateTxt.setEditable(false);
              GBC.gridx = 5;
              GBC.gridy = 1;
              innertoppanel.add(OrderedDateTxt, GBC);
              CustOrderIDLbl = new JLabel("Customer Order ID");
              CustOrderIDLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              CustOrderIDLbl.setFont(font);
              CustOrderIDLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 2;
              innertoppanel.add(CustOrderIDLbl, GBC);
              CustOrderIDTxt = new JTextField(20);
              CustOrderIDTxt.setEditable(false);
              GBC.gridx = 2;
              GBC.gridy = 2;
              innertoppanel.add(CustOrderIDTxt, GBC);
              return innertoppanel;
         public JPanel createInnerCenterPanel(){
              innercenterpanel = new JPanel(new GridBagLayout());
              innercenterpanel.setBackground(TxtfontColor);
              innercenterpanel.setBorder(BorderFactory.createLoweredBevelBorder());
              GridBagConstraints GBC = new GridBagConstraints();
              GBC.fill = GridBagConstraints.HORIZONTAL;
              //Setting Font Type and Size
              Font font = new Font("Arial", Font.BOLD, 11);
              ItemNumberLbl = new JLabel("Item Number");
              ItemNumberLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              ItemNumberLbl.setFont(font);
              ItemNumberLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 1;
              innercenterpanel.add(ItemNumberLbl, GBC);     
              ItemNumberTxt = new JTextField(20);
              GBC.gridx = 2;
              GBC.gridy = 1;
              innercenterpanel.add(ItemNumberTxt, GBC);
              UnitPriceLbl = new JLabel("Unit Price");
              UnitPriceLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              UnitPriceLbl.setFont(font);
              UnitPriceLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 2;
              innercenterpanel.add(UnitPriceLbl, GBC);     
              UnitPriceTxt = new JTextField(20);
              //UnitPriceTxt.setEditable(false);
              GBC.gridx = 2;
              GBC.gridy = 2;
              innercenterpanel.add(UnitPriceTxt, GBC);
              QuantityReqLbl = new JLabel("Quantity Required");
              QuantityReqLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              QuantityReqLbl.setFont(font);
              QuantityReqLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 3;
              innercenterpanel.add(QuantityReqLbl, GBC);     
              QuantityReqTxt = new JTextField(20);
              //QuantityReqTxt.setEditable(false);
              GBC.gridx = 2;
              GBC.gridy = 3;
              innercenterpanel.add(QuantityReqTxt, GBC);
              TotPriceLbl = new JLabel("Total Price");
              TotPriceLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              TotPriceLbl.setFont(font);
              TotPriceLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 4;
              innercenterpanel.add(TotPriceLbl, GBC);     
              TotPriceTxt = new JTextField(20);
              //TotPriceTxt.setEditable(false);
              GBC.gridx = 2;
              GBC.gridy = 4;
              innercenterpanel.add(TotPriceTxt, GBC);
              return innercenterpanel;
         public JPanel createInnerBottomPanel(){
              innerbottompanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));
              innerbottompanel.setBackground(TxtfontColor);
              //Setting Font Type and Size
              Font font = new Font("Arial", Font.BOLD, 11);
              GrandTotLbl = new JLabel("Grand Total");
              GrandTotLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              GrandTotLbl.setFont(font);
              GrandTotLbl.setForeground(LblfontColor);
              innerbottompanel.add(GrandTotLbl);
              innerbottompanel.add(Box.createHorizontalStrut(30));
              GrandTotTxt = new JTextField(20);
              innerbottompanel.add(GrandTotTxt);
              return innerbottompanel;
         public JPanel createInnerRightPanel(){
              innerrightpanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
              innerrightpanel.setBackground(TxtfontColor);
              innerrightpanel.setLayout(new BoxLayout(navrightpanel, BoxLayout.Y_AXIS));
              innerrightpanel.setBorder(BorderFactory.createLoweredBevelBorder());
              innerrightpanel.setLayout(new GridBagLayout());          
              GridBagConstraints GBC = new GridBagConstraints();
              GBC.fill = GridBagConstraints.HORIZONTAL;
              internalnextbtn = new JButton(createNextButtonIcon());
              GBC.gridx = 1;
              GBC.gridy = 1;
              internalnextbtn.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent evt){
                        //getInnerFieldText(currentItem);
                        internalprevbtn.setEnabled(true);
                        if(currentItem < MaxItems){
                             ++CurrentRecord;
                             //readOrder();
                             //readInnerOrderRecord(CurrentRecord);
                             setInnerFieldText(currentItem);
                             System.out.println(CurrentRecord);//Checking RECORD_NUM
                        if(currentItem == MaxItems){
                             internalnextbtn.setEnabled(false);
              innerrightpanel.add(internalnextbtn, GBC);
              return innerrightpanel;
         public JPanel createInnerLeftPanel(){
              innerleftpanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
              innerleftpanel.setBackground(TxtfontColor);
              innerleftpanel.setBorder(BorderFactory.createLoweredBevelBorder());
              innerleftpanel.setForeground(Color.BLACK);
              innerleftpanel.setLayout(new GridBagLayout());          
              GridBagConstraints GBC = new GridBagConstraints();
              GBC.fill = GridBagConstraints.HORIZONTAL;
              internalprevbtn = new JButton(createPreviousButtonIcon());
              GBC.gridx = 1;
              GBC.gridy = 1;
              internalprevbtn.addActionListener(new ActionListener(){
                   public void  actionPerformed(ActionEvent evt){
                        //getInnerFieldText(currentItem);
                        internalnextbtn.setEnabled(true);
                        if(currentItem == 1){
                             internalprevbtn.setEnabled(false);
                        if(currentItem > 0){
                             --currentItem;
                             //readOrder();
                             setInnerFieldText(currentItem);
              innerleftpanel.add(internalprevbtn, GBC);
              return innerleftpanel;
         public JPanel createCustOrdDetailsButtons(){
              createbuttonpanel();
              buttonpanel.setBackground(TxtfontColor);
              externalprevbtn = new JButton(createPreviousButtonIcon());
              externalprevbtn.addActionListener(new ActionListener(){
                   public void  actionPerformed(ActionEvent evt){
                        getFieldText(CurrentRecord);
                        externalnextbtn.setEnabled(true);
                        if(CurrentRecord == 1){
                             externalprevbtn.setEnabled(false);
                        if(CurrentRecord > 0){
                             --CurrentRecord;
                             setFieldText(CurrentRecord);
                             System.out.println(CurrentRecord);//Checking RECORD_NUM
              buttonpanel.add(externalprevbtn);
              addrecordbtn = new JButton("Add Record", createAddButtonIcon());
              addrecordbtn.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent evt){
                        try{
                             MaxRecord = readRecordNumber();
                             MaxRecord++;
                             writeRecordNumber(MaxRecord);
                             //--<BEGINNING>--Clear Fields-------------------------------------------------------//
                             CustIDTxt.setText("");
                             CustOrderIDTxt.setText(""+MaxRecord);
                             //Get today's date
                             Date todaydate = new Date();
                             OrderedDateTxt.setText(""+simpleDF.format(todaydate));
                             ItemNumberTxt.setText("");
                             UnitPriceTxt.setText("");
                             QuantityReqTxt.setText("");
                             TotPriceTxt.setText("");
                             GrandTotTxt.setText("");
                             //--<END>--Clear Fields-------------------------------------------------------------//
                             externalnextbtn.setEnabled(false);
                             externalprevbtn.setEnabled(true);
                             System.out.println(MaxRecord);
                        } catch(Exception ec){ec.printStackTrace();}
              buttonpanel.add(addrecordbtn);
              savebtn = new JButton("Save Data", createSaveButtonIcon());
              savebtn.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent evt){
                        setFieldText(CurrentRecord);
                        writeOrder();
                        writeRecordNumber(MaxRecord);
                        System.out.println(CurrentRecord);
                        System.out.println(MaxRecord);
              buttonpanel.add(savebtn);
              java.net.URL imageURL_AddRowIcon = CommonFeatures.class.getResource("Icons/edit_add.png");
              ImageIcon AddRowIcon = new ImageIcon(imageURL_AddRowIcon);
              additemreqbtn = new JButton("Add Item", AddRowIcon);
              additemreqbtn.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent evt){
                        try{
                             //--<BEGINNING>--Clear Fields-------------------------------------------------------//
                             ItemNumberTxt.setText("");
                             UnitPriceTxt.setText("");
                             QuantityReqTxt.setText("");
                             TotPriceTxt.setText("");
                             //--<END>--Clear Fields-------------------------------------------------------------//
                             //CurrentRecord = MaxRecord;
                             currentItem++;
                             setInnerFieldText(currentItem);
                             internalnextbtn.setEnabled(false);
                             internalprevbtn.setEnabled(true);
                             System.out.println(MaxRecord);
                        } catch(Exception ec){ec.printStackTrace();}
              buttonpanel.add(additemreqbtn);
              externalnextbtn = new JButton(createNextButtonIcon());
              externalnextbtn.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent evt){
                        getFieldText(CurrentRecord);
                        externalprevbtn.setEnabled(true);
                        if(CurrentRecord < MaxRecord){
                             ++CurrentRecord;
                             setFieldText(CurrentRecord);
                             System.out.println(CurrentRecord);//Checking RECORD_NUM
                        if(CurrentRecord == MaxRecord){
                             externalnextbtn.setEnabled(false);
              buttonpanel.add(externalnextbtn);
              return buttonpanel;
         //TODO
         public void setFieldText(int orderID){//TODO
              orderDetails[orderID].setCustID(Integer.parseInt(CustIDTxt.getText()));
              orderDetails[orderID].setCustOrderID(Integer.parseInt(CustOrderIDTxt.getText()));
              orderDetails[orderID].setOrderDate(OrderedDateTxt.getText());
              orderDetails[orderID].setInnerCustOrdObj(innerCustOrdObj);
              orderDetails[orderID].setMaxItems(MaxItems);
              setInnerFieldText(currentItem);
              orderDetails[orderID].setGrandTotal(Float.parseFloat(GrandTotTxt.getText()));
         public void setInnerFieldText(int currentItem){//TODO
              innerCustOrdObj[currentItem] = new InnerCustOrdObject();
              innerCustOrdObj[currentItem].setItemNumber(Integer.parseInt(ItemNumberTxt.getText()));
              innerCustOrdObj[currentItem].setUnitPrice(Float.parseFloat(UnitPriceTxt.getText()));
              innerCustOrdObj[currentItem].setQuantityRequired(Integer.parseInt(QuantityReqTxt.getText()));
              innerCustOrdObj[currentItem].setTotalPrice(Float.parseFloat(TotPriceTxt.getText()));
         public void getFieldText(int orderID){
              CustIDTxt.setText(Integer.toString(orderDetails[orderID].getCustID()));
              CustOrderIDTxt.setText(Integer.toString(orderDetails[orderID].getCustOrderID()));
              OrderedDateTxt.setText(""+orderDetails[orderID].getOrderDate());          
              currentItem = orderDetails[orderID].getMaxItems();
              System.err.println("currentItem" + currentItem);
              getInnerFieldText(currentItem);
              GrandTotTxt.setText(Float.toString(orderDetails[orderID].getGrandTotal()));
         public void getInnerFieldText(int currentItem){
              ItemNumberTxt.setText(Integer.toString(innerCustOrdObj[currentItem].getItemNumber()));
              UnitPriceTxt.setText(Float.toString(innerCustOrdObj[currentItem].getUnitPrice()));
              QuantityReqTxt.setText(Integer.toString(innerCustOrdObj[currentItem].getQuantityRequired()));
              TotPriceTxt.setText(Float.toString(innerCustOrdObj[currentItem].getTotalPrice()));
         public void writeOrder(){//TODO
              try {
                   objOut = new ObjectOutputStream(new FileOutputStream(OrderDetailsFile));
                   objOut.writeObject(orderDetails);
                   System.out.println("WORKING!");
                   objOut.flush();
                   objOut.close();
              } catch (IOException e) {
                   e.printStackTrace();
         public Object readOrder(){
              Object temporaryObj;
              try{
                   objIn = new ObjectInputStream(new FileInputStream(OrderDetailsFile));
                   temporaryObj = objIn.readObject();               
                   CustOrdObject[] blah = (CustOrdObject[]) temporaryObj;
                   System.out.println("Outer: "+blah[1].getCustID());
                   InnerCustOrdObject[] whee = blah[1].getInnerCustOrdObj();
                   System.out.println("Inner: "+whee[1].getItemNumber());
                   objIn.close();
                   System.out.println("Read Worky!");
                   return temporaryObj;
              }catch(Exception e){
                   e.printStackTrace();
                   System.out.println("Read No Worky!");
                   return null;
         public void writeRecordNumber(int MaxRecord){
              try{
                   objOut = new ObjectOutputStream(new FileOutputStream(OrdRecordNumStore));
                   objOut.writeObject(MaxRecord);
                   System.out.println("WORKING!");
                   objOut.flush();
                   objOut.close();
              }catch(Exception e){e.printStackTrace();}
         public int readRecordNumber() {
              try {
                   objIn = new ObjectInputStream(new FileInputStream(OrdRecordNumStore));
                   int temporaryObj = Integer.parseInt(objIn.readObject().toString());
                   objIn.close();
                   System.out.println("Read Number Worky!");
                   return temporaryObj;
              } catch (Exception e) {
                   e.printStackTrace();
                   System.out.println("Read Number No Worky!");
                   return -1;
    }Message was edited by:
    Kilik07
    Message was edited by:
    Kilik07

    ok i got reading to work to a certain extent... but the prob is i cnt seem to save my innerCustOrdObj proprly...when ever i look for a record using the gotorecordbtn, the outerobject, which is the orderDetails, seems to change but the innerCustOrdObj remains the same... heres the new code..
    public class CustomerOrderDetails extends CommonFeatures{
         //TODO
         private static int MAX_ORDERS = 200;
         private static int MAX_ORDERITEMS = 100;
         private static int MaxRecord;
         private static int CurrentRecord = 1;
         private static int currentItem;
         private static int MaxItems = 1;
         private static boolean FileExists, recFileExists;
         private static boolean RecordExists;
         private static CustOrdObject[] orderDetails = new CustOrdObject[MAX_ORDERS];
         private static InnerCustOrdObject[] innerCustOrdObj = new InnerCustOrdObject[MAX_ORDERITEMS];     
         private static File OrderDetailsFile = new File("CustOrdDetails.ser");
         private static File OrdRecordNumStore = new File("OrdRecordNumStore.txt");
         private static PrintWriter writeFile;
         private static BufferedReader readFile;
         private static ObjectOutputStream objOut;
         private static ObjectInputStream objIn;
         //Set format for date
         SimpleDateFormat simpleDF = new SimpleDateFormat("dd MM yyyy");
         //--<BEGINNING>--Declaring Interface Variables------------------------------------------//
         private JPanel innertoppanel, innercenterpanel, innerbottompanel, innerrightpanel, innerleftpanel;
         private JLabel CustIDLbl, CustOrderIDLbl, OrderedDateLbl, GrandTotLbl, ItemNumberLbl,UnitPriceLbl, QuantityReqLbl, TotPriceLbl;
         private JTextField CustIDTxt, CustOrderIDTxt, OrderedDateTxt, GrandTotTxt, ItemNumberTxt, UnitPriceTxt, QuantityReqTxt, TotPriceTxt;
         private JButton addrecordbtn, savebtn, externalprevbtn, externalnextbtn, internalprevbtn, internalnextbtn, gotorecordbtn, additemreqbtn;
         //--<END>--Declaring Interface Variables------------------------------------------------//
         public static void main(String[] args) {
              final CustomerOrderDetails COD = new CustomerOrderDetails();
              java.awt.EventQueue.invokeLater(new Runnable() {
                   public void run() {
                        try {
                             UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
                             COD.createCustOrdDetailsScreen();
                        } catch (Exception eb) {
                             eb.printStackTrace();
         //--<BEGINNING>--Creating CustomerOrderDetails Screen---------------------------------------//
         public JFrame createCustOrdDetailsScreen() {
              createDefaultFrame();
              mainframe.setSize(800,500);
              createContainerPanel();
              containerpanel.add(createCustOrdDetailsTitle(), BorderLayout.NORTH);
              containerpanel.add(createCustOrdDetailsMainPanel(), BorderLayout.CENTER);
              //containerpanel.add(createCustOrdDetailsLeftNavButtons(), BorderLayout.WEST);
              //containerpanel.add(createCustOrdDetailsRightNavButtons(), BorderLayout.EAST);
              containerpanel.add(createCustOrdDetailsButtons(), BorderLayout.SOUTH);
              mainframe.setContentPane(containerpanel);
              mainframe.setLocationRelativeTo(null);
              mainframe.setVisible(true);
              //--<BEGINNING>--Checks to see whether CRecordNumberStore file exists-------------------------------//
              if (OrdRecordNumStore.exists() == true) {
                   recFileExists = true;
              }else {
                   recFileExists = false;
              if (recFileExists == true) {
                   MaxRecord = readRecordNumber();
                   CurrentRecord = MaxRecord;
                   //readOrder();
                   //readInnerOrderRecord(CurrentRecord);
                   System.out.println("Current Record " +CurrentRecord);
                   System.out.println("Max Record " +MaxRecord);
              }else{
                   MaxRecord = 1;
                   writeRecordNumber(MaxRecord);
                   CustOrderIDTxt.setText(""+MaxRecord);
                   System.out.println("Current Record " +CurrentRecord);
                   System.out.println("Max Record " +MaxRecord);
              //--<END>--Checks to see whether CRecordNumberStore file exists--------------------------------------//
              if(readOrder() != null){
                   orderDetails = (CustOrdObject[]) readOrder();
                   //CurrentRecord--;
                   //System.out.println("Current Rec Here"+CurrentRecord);
                   if(orderDetails[CurrentRecord] == null){
                        System.err.println("CustomerOrderObj 1 is null !!");
                   }else{
                        System.err.println("CustomerOrderObj 1 is  not null !!");
                   if(orderDetails[CurrentRecord].getInnerCustOrdObj() == null){
                        System.err.println("InnerCustomerOrderObj is null !!");
                   }else{
                        System.err.println("InnerCustomerOrderObj is  not null !!");
                   innerCustOrdObj = orderDetails[CurrentRecord].getInnerCustOrdObj();
                   MaxItems = orderDetails[CurrentRecord].getMaxItems();
                   if(CurrentRecord > 1 && CurrentRecord < MaxRecord){
                        externalnextbtn.setEnabled(true);
                        externalprevbtn.setEnabled(true);
                   if(CurrentRecord >= MaxRecord){
                        externalnextbtn.setEnabled(false);
                   getFieldText(CurrentRecord);
                   getInnerFieldText(MaxItems);
              }else{
                   orderDetails[CurrentRecord] = new CustOrdObject();
                   currentItem = 1;
              return mainframe;
         //--<END>--Creating CustomerOrderDetails Screen---------------------------------------------//
         public JPanel createCustOrdDetailsTitle(){
              createTitlePanel();
              titlepanel.setBackground(TxtfontColor);
              label.setText("- Customer Order Details -");
              labelpanel.setBackground(TxtfontColor);
              label.setForeground(Color.white);
              createbuttonpanel();
              buttonpanel.setBackground(TxtfontColor) ;
              buttonpanel.add(createReturnToMainMenuButton());
              titlepanel.add(labelpanel, BorderLayout.WEST);
              titlepanel.add(buttonpanel, BorderLayout.EAST);
              return titlepanel;
         public JPanel createCustOrdDetailsMainPanel(){
              createmainpanel();
              mainpanel.setBackground(TxtfontColor);
              mainpanel.setLayout(new BorderLayout());          
              mainpanel.setBorder(BorderFactory.createTitledBorder(""));
              mainpanel.add(createInnerTopPanel(), BorderLayout.NORTH);
              mainpanel.add(createInnerCenterPanel(), BorderLayout.CENTER);
              mainpanel.add(createInnerBottomPanel(), BorderLayout.SOUTH);
              mainpanel.add(createInnerRightPanel(), BorderLayout.EAST);
              mainpanel.add(createInnerLeftPanel(), BorderLayout.WEST);
              return mainpanel;
         public JPanel createInnerTopPanel(){
              innertoppanel = new JPanel(new GridBagLayout());
              innertoppanel.setBackground(TxtfontColor);
              GridBagConstraints GBC = new GridBagConstraints();
              GBC.fill = GridBagConstraints.HORIZONTAL;
              //Setting Font Type and Size
              Font font = new Font("Arial", Font.BOLD, 11);
              CustIDLbl = new JLabel("Customer ID");
              CustIDLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              CustIDLbl.setFont(font);
              CustIDLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 1;
              innertoppanel.add(CustIDLbl, GBC);     
              CustIDTxt = new JTextField(20);
              CustIDTxt.setEditable(true);
              GBC.gridx = 2;
              GBC.gridy = 1;
              innertoppanel.add(CustIDTxt, GBC);
              GBC.gridx = 3;
              GBC.gridy = 1;
              innertoppanel.add(Box.createHorizontalStrut(220), GBC);
              OrderedDateLbl = new JLabel("Order Date");
              OrderedDateLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              OrderedDateLbl.setFont(font);
              OrderedDateLbl.setForeground(LblfontColor);
              GBC.gridx = 4;
              GBC.gridy = 1;
              innertoppanel.add(OrderedDateLbl, GBC);     
              //Get today's date
              Date todaydate = new Date();
              OrderedDateTxt = new JTextField(simpleDF.format(todaydate), 20);
              OrderedDateTxt.setHorizontalAlignment(JTextField.CENTER);
              OrderedDateTxt.setEditable(false);
              GBC.gridx = 5;
              GBC.gridy = 1;
              innertoppanel.add(OrderedDateTxt, GBC);
              CustOrderIDLbl = new JLabel("Customer Order ID");
              CustOrderIDLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              CustOrderIDLbl.setFont(font);
              CustOrderIDLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 2;
              innertoppanel.add(CustOrderIDLbl, GBC);
              CustOrderIDTxt = new JTextField(20);
              //CustOrderIDTxt.setEditable(false);
              GBC.gridx = 2;
              GBC.gridy = 2;
              innertoppanel.add(CustOrderIDTxt, GBC);
              return innertoppanel;
         public JPanel createInnerCenterPanel(){
              innercenterpanel = new JPanel(new GridBagLayout());
              innercenterpanel.setBackground(TxtfontColor);
              innercenterpanel.setBorder(BorderFactory.createLoweredBevelBorder());
              GridBagConstraints GBC = new GridBagConstraints();
              GBC.fill = GridBagConstraints.HORIZONTAL;
              //Setting Font Type and Size
              Font font = new Font("Arial", Font.BOLD, 11);
              ItemNumberLbl = new JLabel("Item Number");
              ItemNumberLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              ItemNumberLbl.setFont(font);
              ItemNumberLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 1;
              innercenterpanel.add(ItemNumberLbl, GBC);     
              ItemNumberTxt = new JTextField(20);
              GBC.gridx = 2;
              GBC.gridy = 1;
              innercenterpanel.add(ItemNumberTxt, GBC);
              UnitPriceLbl = new JLabel("Unit Price");
              UnitPriceLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              UnitPriceLbl.setFont(font);
              UnitPriceLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 2;
              innercenterpanel.add(UnitPriceLbl, GBC);     
              UnitPriceTxt = new JTextField(20);
              //UnitPriceTxt.setEditable(false);
              GBC.gridx = 2;
              GBC.gridy = 2;
              innercenterpanel.add(UnitPriceTxt, GBC);
              QuantityReqLbl = new JLabel("Quantity Required");
              QuantityReqLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              QuantityReqLbl.setFont(font);
              QuantityReqLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 3;
              innercenterpanel.add(QuantityReqLbl, GBC);     
              QuantityReqTxt = new JTextField(20);
              //QuantityReqTxt.setEditable(false);
              GBC.gridx = 2;
              GBC.gridy = 3;
              innercenterpanel.add(QuantityReqTxt, GBC);
              TotPriceLbl = new JLabel("Total Price");
              TotPriceLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              TotPriceLbl.setFont(font);
              TotPriceLbl.setForeground(LblfontColor);
              GBC.gridx = 1;
              GBC.gridy = 4;
              innercenterpanel.add(TotPriceLbl, GBC);     
              TotPriceTxt = new JTextField(20);
              TotPriceTxt.setEditable(false);
              TotPriceTxt.addFocusListener(new FocusAdapter(){
                   public void focusGained(FocusEvent evt){
                        TotPriceTxt.setText(""+Integer.parseInt(UnitPriceTxt.getText())*Integer.parseInt(QuantityReqTxt.getText()));
              GBC.gridx = 2;
              GBC.gridy = 4;
              innercenterpanel.add(TotPriceTxt, GBC);
              return innercenterpanel;
         public JPanel createInnerBottomPanel(){
              innerbottompanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));
              innerbottompanel.setBackground(TxtfontColor);
              //Setting Font Type and Size
              Font font = new Font("Arial", Font.BOLD, 11);
              GrandTotLbl = new JLabel("Grand Total");
              GrandTotLbl.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              GrandTotLbl.setFont(font);
              GrandTotLbl.setForeground(LblfontColor);
              innerbottompanel.add(GrandTotLbl);
              innerbottompanel.add(Box.createHorizontalStrut(30));
              GrandTotTxt = new JTextField(20);
              innerbottompanel.add(GrandTotTxt);
              return innerbottompanel;
         public JPanel createInnerRightPanel(){
              innerrightpanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
              innerrightpanel.setBackground(TxtfontColor);
              innerrightpanel.setLayout(new BoxLayout(navrightpanel, BoxLayout.Y_AXIS));
              innerrightpanel.setBorder(BorderFactory.createLoweredBevelBorder());
              innerrightpanel.setLayout(new GridBagLayout());          
              GridBagConstraints GBC = new GridBagConstraints();
              GBC.fill = GridBagConstraints.HORIZONTAL;
              internalnextbtn = new JButton(createNextButtonIcon());
              GBC.gridx = 1;
              GBC.gridy = 1;
              internalnextbtn.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent evt){
                        getInnerFieldText(currentItem);
                        internalprevbtn.setEnabled(true);
                        if(currentItem < MaxItems){
                             ++currentItem;
                             orderDetails[CurrentRecord].getInnerCustOrdObj();
                             setInnerFieldText(currentItem);
                             System.out.println("Current Item" + currentItem);
                        if(currentItem == MaxItems){
                             internalnextbtn.setEnabled(false);
              innerrightpanel.add(internalnextbtn, GBC);
              return innerrightpanel;
         public JPanel createInnerLeftPanel(){
              innerleftpanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
              innerleftpanel.setBackground(TxtfontColor);
              innerleftpanel.setBorder(BorderFactory.createLoweredBevelBorder());
              innerleftpanel.setForeground(Color.BLACK);
              innerleftpanel.setLayout(new GridBagLayout());          
              GridBagConstraints GBC = new GridBagConstraints();
              GBC.fill = GridBagConstraints.HORIZONTAL;
              internalprevbtn = new JButton(createPreviousButtonIcon());
              GBC.gridx = 1;
              GBC.gridy = 1;
              internalprevbtn.addActionListener(new ActionListener(){
                   public void  actionPerformed(ActionEvent evt){
                        getInnerFieldText(currentItem);
                        internalnextbtn.setEnabled(true);
                        if(currentItem == 1){
                             internalprevbtn.setEnabled(false);
                        if(currentItem > 0){
                             --currentItem;
                             orderDetails[CurrentRecord].getInnerCustOrdObj();
                             setInnerFieldText(currentItem);
                             System.out.println("Current Item" + currentItem);
              innerleftpanel.add(internalprevbtn, GBC);
              return innerleftpanel;
         public JPanel createCustOrdDetailsButtons(){
              createbuttonpanel();
              buttonpanel.setBackground(TxtfontColor);
              externalprevbtn = new JButton(createPreviousButtonIcon());
              externalprevbtn.addActionListener(new ActionListener(){
                   public void  actionPerformed(ActionEvent evt){
                        getFieldText(CurrentRecord);
                        externalnextbtn.setEnabled(true);
                        if(CurrentRecord == 1){
                             externalprevbtn.setEnabled(false);
                        if(CurrentRecord > 0){
                             --CurrentRecord;
                             setFieldText(CurrentRecord);
                             System.out.println("Current Record " + CurrentRecord);//Checking RECORD_NUM
              buttonpanel.add(externalprevbtn);
              addrecordbtn = new JButton("Add Record", createAddButtonIcon());
              addrecordbtn.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent evt){
                        try{
                             MaxRecord = readRecordNumber();
                             MaxRecord++;
                             CurrentRecord = MaxRecord;
                             orderDetails[CurrentRecord] = new CustOrdObject();
                             writeRecordNumber(MaxRecord);
                             MaxItems = 1;
                             innerCustOrdObj[MaxItems] = new InnerCustOrdObject();
                             //--<BEGINNING>--Clear Fields-------------------------------------------------------//
                             CustIDTxt.setText("");
                             CustOrderIDTxt.setText(""+MaxRecord);
                             //Get today's date
                             Date todaydate = new Date();
                             OrderedDateTxt.setText(""+simpleDF.format(todaydate));
                             ItemNumberTxt.setText("");
                             UnitPriceTxt.setText("");
                             QuantityReqTxt.setText("");
                             TotPriceTxt.setText("");
                             GrandTotTxt.setText("");
                             //--<END>--Clear Fields-------------------------------------------------------------//
                             externalnextbtn.setEnabled(false);
                             externalprevbtn.setEnabled(true);
                             System.out.println(MaxRecord);
                        } catch(Exception ec){ec.printStackTrace();}
              buttonpanel.add(addrecordbtn);
              savebtn = new JButton("Save Data", createSaveButtonIcon());
              savebtn.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent evt){
                        setFieldText(CurrentRecord);
                        setInnerFieldText(MaxItems);
                        writeOrder();
                        writeRecordNumber(MaxRecord);
                        System.out.println(CurrentRecord);
                        System.out.println(MaxRecord);
              buttonpanel.add(savebtn);
              java.net.URL imageURL_AddRowIcon = CommonFeatures.class.getResource("Icons/edit_add.png");
              ImageIcon AddRowIcon = new ImageIcon(imageURL_AddRowIcon);
              additemreqbtn = new JButton("Add Item", AddRowIcon);
              additemreqbtn.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent evt){
                        try{
                             //--<BEGINNING>--Clear Fields-------------------------------------------------------//
                             ItemNumberTxt.setText("");
                             UnitPriceTxt.setText("");
                             QuantityReqTxt.setText("");
                             TotPriceTxt.setText("");
                             //--<END>--Clear Fields-------------------------------------------------------------//
                             //CurrentRecord = MaxRecord;
                             MaxItems++;
                             innerCustOrdObj[MaxItems] = new InnerCustOrdObject();
                             System.out.println("Max Items "+MaxItems);
                             currentItem = MaxItems;
                             orderDetails[CurrentRecord].setMaxItems(MaxItems);
                             ///setInnerFieldText(currentItem);
                             internalnextbtn.setEnabled(false);
                             internalprevbtn.setEnabled(true);
                        } catch(Exception ec){ec.printStackTrace();}
              buttonpanel.add(additemreqbtn);
              externalnextbtn = new JButton(createNextButtonIcon());
              externalnextbtn.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent evt){
                        getFieldText(CurrentRecord);
                        externalprevbtn.setEnabled(true);
                        if(CurrentRecord < MaxRecord){
                             ++CurrentRecord;
                             setFieldText(CurrentRecord);
                             System.out.println(CurrentRecord);//Checking RECORD_NUM
                        if(CurrentRecord == MaxRecord){
                             externalnextbtn.setEnabled(false);
              buttonpanel.add(externalnextbtn);
              gotorecordbtn = new JButton("Go To Record", createGotoButtonIcon());
              gotorecordbtn.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent evt){
                         * The text from the GotorecordTxt textfield will be taken and assigned
                         * to a temporary integer variable called Find. 
                        int Find = Integer.parseInt(CustOrderIDTxt.getText());
                        for(int j=1; j <= MaxRecord; j++){
                              * Using a for loop, each record can be read using the readCustRecord
                              * method.
                             getFieldText(j);
                              * An if condition is utilized to check whether the temporary stored variable, Find,
                              * matches a field in a record. If this record is found, then using the RecordExists
                              * which was declared at the top, either a true or false statement can be assigned
                              * If the record exists, then a true statement will be assigned, if not a false
                              * statement will be assigned.
                             if(orderDetails[j].getCustOrderID() == Find){
                                  RecordExists = true;
                                  break;
                             }else{
                                  RecordExists = false;
                        if(RecordExists == false){
                              * If the RecordExists is assigned a false statement, then a message will be
                              * displayed to show that the record does not exist.
                             JOptionPane.showMessageDialog(null, "Record Does Not Exist!", "Error Message", JOptionPane.ERROR_MESSAGE, createErrorIcon());
                        }else{
                             getFieldText(Find);
              buttonpanel.add(gotorecordbtn);
              return buttonpanel;
         //TODO
         public void setFieldText(int orderID){//TODO
              orderDetails[orderID].setCustID(Integer.parseInt(CustIDTxt.getText()));
              orderDetails[orderID].setCustOrderID(Integer.parseInt(CustOrderIDTxt.getText()));
              orderDetails[orderID].setOrderDate(OrderedDateTxt.getText());
              orderDetails[orderID].setInnerCustOrdObj(innerCustOrdObj);
              orderDetails[orderID].setMaxItems(MaxItems);
              setInnerFieldText(currentItem);
              orderDetails[orderID].setGrandTotal(Float.parseFloat(GrandTotTxt.getText()));
         public void setInnerFieldText(int currentItem){//TODO
              innerCustOrdObj[currentItem] = new InnerCustOrdObject();
              innerCustOrdObj[currentItem].setMaxItems(MaxItems);
              innerCustOrdObj[currentItem].setItemNumber(Integer.parseInt(ItemNumberTxt.getText()));
              innerCustOrdObj[currentItem].setUnitPrice(Float.parseFloat(UnitPriceTxt.getText()));
              innerCustOrdObj[currentItem].setQuantityRequired(Integer.parseInt(QuantityReqTxt.getText()));
              innerCustOrdObj[currentItem].setTotalPrice(Float.parseFloat(TotPriceTxt.getText()));
         public void getFieldText(int orderID){
              CustIDTxt.setText(Integer.toString(orderDetails[orderID].getCustID()));
              CustOrderIDTxt.setText(Integer.toString(orderDetails[orderID].getCustOrderID()));
              OrderedDateTxt.setText(""+orderDetails[orderID].getOrderDate());          
              currentItem = orderDetails[orderID].getMaxItems();
              orderDetails[orderID].getInnerCustOrdObj();
              System.err.println("currentItem" + currentItem);
              //getInnerFieldText(currentItem);
              GrandTotTxt.setText(Float.toString(orderDetails[orderID].getGrandTotal()));
         public void getInnerFieldText(int currentItem){
              ItemNumberTxt.setText(Integer.toString(innerCustOrdObj[currentItem].getItemNumber()));
              UnitPriceTxt.setText(Float.toString(innerCustOrdObj[currentItem].getUnitPrice()));
              QuantityReqTxt.setText(Integer.toString(innerCustOrdObj[currentItem].getQuantityRequired()));
              TotPriceTxt.setText(Float.toString(innerCustOrdObj[currentItem].getTotalPrice()));
         public void writeOrder(){//TODO
              try {
                   objOut = new ObjectOutputStream(new FileOutputStream(OrderDetailsFile));
                   objOut.writeObject(orderDetails);
                   System.out.println("WORKING!");
                   objOut.flush();
                   objOut.close();
              } catch (IOException e) {
                   e.printStackTrace();
         public Object readOrder(){
              Object temporaryObj;
              try{
                   objIn = new ObjectInputStream(new FileInputStream(OrderDetailsFile));
                   temporaryObj = objIn.readObject();               
                   CustOrdObject[] blah = (CustOrdObject[]) temporaryObj;
                   /*               System.out.println("Outer: "+blah[1].getCustID());
                   InnerCustOrdObject[] whee = blah[1].getInnerCustOrdObj();
                   System.out.println("Inner: "+whee[1].getItemNumber());*/
                   objIn.close();
                   System.out.println("Read Worky!");
                   return temporaryObj;
              }catch(Exception e){
                   e.printStackTrace();
                   System.out.println("Read No Worky!");
                   return null;
         public void writeRecordNumber(int MaxRecord){
              try{
                   objOut = new ObjectOutputStream(new FileOutputStream(OrdRecordNumStore));
                   objOut.writeObject(MaxRecord);
                   System.out.println("WORKING!");
                   objOut.flush();
                   objOut.close();
              }catch(Exception e){e.printStackTrace();}
         public int readRecordNumber() {
              try {
                   objIn = new ObjectInputStream(new FileInputStream(OrdRecordNumStore));
                   int temporaryObj = Integer.parseInt(objIn.readObject().toString());
                   objIn.close();
                   System.out.println("Read Number Worky!");
                   return temporaryObj;
              } catch (Exception e) {
                   e.printStackTrace();
                   System.out.println("Read Number No Worky!");
                   return -1;
    }Message was edited by:
    Kilik07

  • Problem with yosemite and parallels

    Since I have upgraded to yosemite and parallels 10 my windows 7 has been using a lot of CPU resources.  Windows 7 runs very slow and it been using almost constantly 100% of one of the quads resources.  This just started to happen when I upgraded, because I did not have this problem with Mavericks and Parallels 9 or 10. I have an iMac 2011, 8GB of Ram.  Has anybody had this issue.  Thanks.

    Thanks for the response.  I was searching on a parallels forum website and found the following:
    As from the symptoms, the issue can lie in NVRAM preferences of your particular Mac.
    Please do the following to solve:
    open Terminal application on Mac (Applications/Terminal.app)
    please type this command (you may copy-paste it to the terminal from this message):
    sudo nvram boot-args="debug=0xd4e"
    Hit Enter.
    You will be prompted to enter Mac user password. Please type it and hit Enter.
    Note: you won't see what you are typing, just type and hit Enter. If you don't have Mac user password, please create a temporary one.
    Then you may restart your Mac and the issue should be solved.
    If not - please reply me here and I'll create a ticket for you in Support.
    I did the above and it seemed to correct the problem.

  • Problem with wpa and hidden ssid

    hi,
    I have a powerbook g4 (1,67ghz). i am having trouble connecting to a netgear router mr814 v3 if i use wpa and hidden ssid, i get a message, that the router would not support wpa!
    there is no problem with wep and hidden ssid or wpa with no hidden ssid.
    is also have no problems with wpa and hidden ssid with an ibook.
    the problems occur only with the powerbook with os x 10.3.9 as well as 10.4.2. even after the recent airport update, no change.
    thanks for the help,
    ben

    I would use WPA and broadcast your SSID.
    It use to be useful, but closing your Airport or wireless network (sometimes referred to as not broadcasting your SSID) is really no longer a real option when it comes to wireless security.
    Unfortunately "Closed" networks, MAC access control lists, and reduction in transmission power are all more "feel good" security rather than real security. All these various approaches are dated and mistakenly lead to overconfidence.
    WPA is your friend if you value wireless security.
    My recommendation is not to worry about broadcasting your SSID but use WPA. This will be more secure than a closed WEP encrypted network. Closing your network makes it very difficult for neighbouring networks to see which channels are free thus causing potential interference problems.
    Another thing to consider is that a closed network is still broadcasting and therefore is detectable (regardless of whether it is broadcasting a SSID). If someone was determined to hack into your network, then not broadcasting your SSID and MAC address access control is not going to stop them.
    WPA is virtually uncrackable (only really vunerable to a dictionary attack if a real word is used as a password) and therefore will stop the casual user and the determined hacker.

  • Problem with filePathSeperator and /

    Problem with fileSeperatorChar and /. When I use fileSeperatorChar (to lacate a folder), the path is specified wrong. I want my program to run on different OS, so I need this to work.
    If I do this:
    JLabel label = new JLabel("", new ImageIcon("Images/label.gif");
    //or something like that it works. Will this give me multiple platform support?
    But when I try:
    JLabel label = new JLabel("", new ImageIcon("Images" + filePathSeperatorChar + "label.gif");
    //or something like that They all compile, but I took this off the top of my head. Anyway, when I print out the path for the second technuige, the path reads like this:
    Images;label.gif

    You used filePathSeparator. On Windows you use a semicolon to separate the components of a path, which is a list of directories or jar files, which is why you are getting a semicolon. You want the system property "file.separator" instead. Or use the variable File.separatorChar.

Maybe you are looking for

  • Logon fail when creating Connection in Crystal Reports SP3

    Greetings, I am working on an issue where we have installed the SAP GUI 7.10, Crystal reports 2008 SP3, and SAP IK FP 3.1. We are testing the access to ECC.  We have setup the server in the GUI and can successfully logon to the server in the GUI.  We

  • Out put Determination Error

    Hi All, i have created a new out put type and added this output type to an existing output determination procedure. I have assigned this new output type to partner funcitons. Created a condition record for the out put type But when i create the sales

  • BW SQL Source System using DBCON

    I have created the Source system as mentioned in help.sap.com, and when I try to select Tables, it tell me that their are no tables. But I wrote an ABAP program and tested the connection is working and I was able to pull data from one of the tables u

  • Soap -- xi -- jdbc

    Hi, I want build this scenary. I review the blog's and appear that the correct form to invoke the ws in XI is: <a href="http://host:port/XISOAPAdapter/MessageServlet?channel=<party>:<service>:<channel>">http://host:port/XISOAPAdapter/MessageServlet?c

  • Using Rotronic HygroFlex w/ Labview

    Does anyone have any experience with Rotronic's HygroFlex Humidity Sensors?  I am trying to program this in Labview, but cannot seem to get commands to work. I have opened a Visa Session with the device, and have the correct visa resource name, but i