Problems with Overlay Layout - can anyone spot something wrong/missing?

Hi folks, I'm developing a tool that allows you to draw rectangles around objects on an image. The rectangles are then saved, and you can move between images. For some reason, though my rectangles are not drawing on the panel. I am using the Overlay Layout. Can anyone spot what I'm doing wrong? (The TopPanel canvas appears to be there, as it's taking input from the mouse - the problem is simply that the red rectangles are not drawing on the panel). Please help!!
So you know, there is a JFrame in another class which adds an instance of the ObjectMarker panel to it. It also provides buttons for using the next and previous Image methods.
Any other general advice is appreciated too.
* Object_Marker.java
* Created on 07 April 2008, 15:38
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.RenderingHints;
import java.awt.event.MouseEvent;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import javax.imageio.ImageIO;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.OverlayLayout;
import javax.swing.event.MouseInputAdapter;
* @author Eric
public class ObjectMarker extends javax.swing.JPanel {
     private static final long serialVersionUID = 6574271353772129556L;
     File directory;
     String directory_path;
     Font big = new Font("SansSerif", Font.BOLD, 18);
     List<File> file_list = Collections.synchronizedList(new LinkedList<File>());
     String[] filetypes = { "jpeg", "jpg", "gif", "bmp", "tif", "tiff", "png" };
     // This Hashmap contains List of Rectangles, allowing me to link images to collections of rectangles through the value 'index'.
     public static HashMap<Integer, List<Rectangle>> collection = new HashMap<Integer, List<Rectangle>>();
     BufferedImage currentImage;
     Thread thread;
     Integer index = 0;
     OverlayLayout overlay;
     private TopPanel top;
     private JPanel pictureFrame;
     String newline = System.getProperty("line.separator");
      * Creates new form Object_Marker
      * @throws IOException
     public ObjectMarker(File directory) {
          System.out.println("Got in...");
          this.directory = directory;
          File[] temp = directory.listFiles();
          directory_path = directory.getPath();
          // Add all the image files in the directory to the linked list for easy
          // iteration.
          for (File file : temp) {
               if (isImage(file)) {
                    file_list.add(file);
          initComponents();
          try {
               currentImage = ImageIO.read(file_list.get(index));
          } catch (IOException e) {
               System.out.println("There was a problem loading the image.");
          // 55 pixels offsets the height of the JMenuBar and the title bar
          // which are included in the size of the JFrame.
          this.setSize(currentImage.getWidth(), currentImage.getHeight() + 55);
     public String getImageList() {
          // Allows me to build the string gradually.
          StringBuffer list = new StringBuffer();
          list.append("Image files found in directory: \n\n");
          for (int i = 0; i < file_list.size(); i++) {
               list.append((((File) file_list.get(i))).getName() + "\n");
          return list.toString();
     private void initComponents() {
          top = new TopPanel();
          pictureFrame = new javax.swing.JPanel();
          OverlayLayout ol = new OverlayLayout(this);
          this.setLayout(ol);
          this.add(top);
          this.add(pictureFrame);
      * private void initComponents() {
      * javax.swing.GroupLayout pictureFrameLayout = new
      * javax.swing.GroupLayout(pictureFrame);
      * pictureFrame.setLayout(pictureFrameLayout);
      * pictureFrameLayout.setHorizontalGroup(
      * pictureFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      * .addGap(0, 497, Short.MAX_VALUE) ); pictureFrameLayout.setVerticalGroup(
      * pictureFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      * .addGap(0, 394, Short.MAX_VALUE) );
      * javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
      * this.setLayout(layout); layout.setHorizontalGroup(
      * layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      * .addComponent(pictureFrame, javax.swing.GroupLayout.DEFAULT_SIZE,
      * javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) );
      * layout.setVerticalGroup(
      * layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
      * .addComponent(pictureFrame, javax.swing.GroupLayout.DEFAULT_SIZE,
      * javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); }
      * This function returns the extension of a given file, for example "jpg" or
      * "gif"
      * @param f
      *            The file to examine
      * @return String containing extension
     public static String getExtension(File f) {
          String ext = null;
          String s = f.getName();
          int i = s.lastIndexOf('.');
          if (i > 0 && i < s.length() - 1) {
               ext = s.substring(i + 1).toLowerCase();
          } else {
               ext = "";
          return ext;
     public String getDetails() {
          saveRectangles();
          StringBuffer sb = new StringBuffer();
          for (int i = 0; i < file_list.size(); i++) {
               try{
               int count = collection.get(i).size();
               if (count > 0) {
                    sb.append(file_list.get(i).getPath() + " "); // Add the
                    // filename of
                    // the file
                    sb.append(count + " "); // Add the number of rectangles
                    for (int j = 0; j < collection.get(i).size(); j++) {
                         Rectangle current = collection.get(i).get(j);
                         String coordinates = (int) current.getMinX() + " "
                                   + (int) current.getMinY() + " ";
                         String size = ((int) current.getMaxX() - (int) current
                                   .getMinX())
                                   + " "
                                   + ((int) current.getMaxY() - (int) current
                                             .getMinY()) + " ";
                         String result = coordinates + size;
                         sb.append(result);
                    sb.append(newline);
               } catch (NullPointerException e){
                    // Do nothing.  "int count = collection.get(i).size();"
                    // will try to over count.
          return sb.toString();
     private boolean isImage(File f) {
          List<String> list = Arrays.asList(filetypes);
          String extension = getExtension(f);
          if (list.contains(extension)) {
               return true;
          return false;
     /** Draw the image on the panel. * */
     public void paint(Graphics g) {
          if (currentImage == null) {
               g.drawString("No image to display!", 300, 240);
          } else {
               // Draw the image
               g.drawImage(currentImage, 0, 0, this);
               // Write the index
               g.setFont(big);
               g.drawString(index + 1 + "/" + file_list.size(), 10, 25);
     public void nextImage() throws IOException {
          if (index < file_list.size() - 1) {
               printOutContents();
               System.out.println("Index: " + index);
               saveRectangles();
               index++;
               currentImage = ImageIO.read(file_list.get(index));
               this
                         .setSize(currentImage.getWidth(),
                                   currentImage.getHeight() + 55);
               top.setSize(this.getSize());
               top.rectangle_list.clear();
               if (collection.size() > index) {
                    loadRectangles();
               repaint();
     private void saveRectangles() {
          // If the current image's rectangles have not been changed, don't do
          // anything.
          if (collection.containsKey(index)) {
               System.out.println("Removing Index: " + index);
               collection.remove(index);
          collection.put(index, top.getRectangleList());
          System.out.println("We just saved " + collection.get(index).size()
                    + " rectangles");
          System.out.println("They were saved in HashMap Location " + index);
          System.out.println("Proof: ");
          List<Rectangle> temp = collection.get(index);
          for (int i = 0; i < temp.size(); i++) {
               System.out.println("Rectangle " + (i + 1) + ": " + temp.get(i));
          // If the rectangle list has changed, set the list the current index
          // as the new list.
     private void loadRectangles() {
          System.out.println("We just loaded index " + index
                    + " into temporary memory.");
          System.out.println("Proof: ");
          List<Rectangle> temp = collection.get(index);
          top.rectangle_list = collection.get(index);
          for (int i = 0; i < temp.size(); i++) {
               System.out.println("Rectangle " + (i + 1) + ": " + temp.get(i));
     private void printOutContents() {
          System.out.println();
          System.out.println("Contents printout...");
          for (int i = 0; i < collection.size(); i++) {
               for (Rectangle r : collection.get(i)) {
                    System.out.println("In collection index: " + i + " Rectangle "
                              + r.toString());
          System.out.println();
     public void previousImage() throws IOException {
          if (index >= 1) {
               printOutContents();
               System.out.println("Index: " + index);
               saveRectangles();
               index--;
               currentImage = ImageIO.read(file_list.get(index));
               this
                         .setSize(currentImage.getWidth(),
                                   currentImage.getHeight() + 55);
               top.setSize(this.getSize());
               top.rectangle_list.clear();
               if (index >= 0) {
                    loadRectangles();
               repaint();
     public void removeLastRectangle() {
          // This method removes the most recent rectangle added.
          try {
               int length = collection.get(index).size();
               collection.get(index).remove(length - 1);
          } catch (NullPointerException e) {
               try {
                    top.rectangle_list.remove(top.rectangle_list.size() - 1);
               } catch (IndexOutOfBoundsException ioobe) {
                    JOptionPane.showMessageDialog(this, "Cannot undo any more!");
* Class developed from SSCCE found on Java forum:
* http://forum.java.sun.com/thread.jspa?threadID=647074&messageID=3817479
* @author 74philip
class TopPanel extends JPanel {
     List<Rectangle> rectangle_list;
     private static final long serialVersionUID = 6208367976334130998L;
     Point loc;
     int width, height, arcRadius;
     Rectangle temp; // for mouse ops in TopRanger
     public TopPanel() {
          setOpaque(false);
          rectangle_list = Collections
                    .synchronizedList(new LinkedList<Rectangle>());
          TopRanger ranger = new TopRanger(this);
          addMouseListener(ranger);
          addMouseMotionListener(ranger);
     public List<Rectangle> getRectangleList() {
          List<Rectangle> temporary = Collections
                    .synchronizedList(new LinkedList<Rectangle>());
          temporary.addAll(rectangle_list);
          return temporary;
     protected void paintComponent(Graphics g) {
          super.paintComponent(g);
          Graphics2D g2 = (Graphics2D) g;
          g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                    RenderingHints.VALUE_ANTIALIAS_ON);
          g2.setPaint(Color.red);
          // Draw all the rectangles in the rectangle list.
          for (int i = 0; i < rectangle_list.size(); i++) {
               g2.drawRect(rectangle_list.get(i).x, rectangle_list.get(i).y,
                         rectangle_list.get(i).width, rectangle_list.get(i).height);
          if (temp != null) {
               g2.draw(temp);
     public void loadRectangleList(List<Rectangle> list) {
          rectangle_list.addAll(list);
     public void addRectangle(Rectangle r) {
          rectangle_list.add(r);
class TopRanger extends MouseInputAdapter {
     TopPanel top;
     Point offset;
     boolean dragging;
     public TopRanger(TopPanel top) {
          this.top = top;
          dragging = false;
     public void mousePressed(MouseEvent e) {
          Point p = e.getPoint();
          top.temp = new Rectangle(p, new Dimension(0, 0));
          offset = new Point();
          dragging = true;
          top.repaint();
     public void mouseReleased(MouseEvent e) {
          dragging = false;
          // update top.r
          System.out.println(top.getRectangleList().size() + ": Object added: "
                    + top.temp.toString());
          top.addRectangle(top.temp);
          top.repaint();
     public void mouseDragged(MouseEvent e) {
          if (dragging) {
               top.temp.setBounds(top.temp.x, top.temp.y, e.getX() - top.temp.x, e
                         .getY()
                         - top.temp.y);
               top.repaint();
}Regards,
Eric

Alright so I fixed it! I created a new class called BottomPanel extends JPanel, which I then gave the responsibility of drawing the image. I gave it an update method which took the details of the currentImage and displayed it on the screen.
If anybody's interested I also discovered/solved a problem with my mouseListener - I couldn't drag backwards. I fixed this by adding tests looking for negative widths and heights. I compensated accordingly by reseting the rectangle origin to e.getX(), e.getY() and by setting the to original_origin.x - e.getX() and original_origin.y - e.getY().
No problem!

Similar Messages

  • Is everybody having problems with Canoscan drivers-can anyone help, please?

    After starting with Leopard, my LIDE25 refuses to work, and the window from the toolbox tells me a driver cannot be found, even after redownloading the driver, which, according to the Canon website, is perfectly compatible with the LIDE25 driver. Someone is not being honest, or Apple has made a huge mistake in the bug department. My smart mailboxes don't work either.Can anyone help? I see there are others with Canon scanner driver problems on this forum - what can we do? I'm so tired of fragile scanners breaking down and needing replacement - they are like VCRs in this respect, somehow a crap technology - but this time it's surely not the scanner to blame.

    I have a Conoscan 8400F scanner, and after downloading the latest driver it actually works BETTER than it ever has... used to take almost 3 minutes to scan a 8.5 X 11 page, now less than a minute.
    Jeff

  • Despite 10.5.2 my problems with Leopard continue -can anyone comment?

    Since installing 10.5 on the 26/10/07 I have waited patiently for the supposed panacea that is 10.5.2 for all the problems I've been having on both my iMac and MacBook. Strangely I have exactly the same problems on both machines.
    To get around some of these while waiting on the upgrade I had to create new administrator accounts as one of the major problems I have encountered is that .dmg and .pkg files will not install within my original administrator accounts on both machines.
    I have set up and installed at least 3 new machines for friends recently all of which came with Leopard and none of which display any problems at all. I cannot change to my new administrator accounts exclusively because of the sheer volume of tunes, photos, movies and TV shows in my original accounts and rather than try and move these, I was hoping the 10.5.2 would cure the original default accounts. I cannot comment on any increased stability -it's too soon, but here are just some of the problems that I face every day (common to both machines).
    Firefox won't run
    iTunes (frequently) cannot find the default music folder and fails to launch (even though it's there)
    .dmg and .pkg files are not recognised
    DVD player will not run (Initialisation error 108)
    Software update will not run from Apple menu (have to trigger from within sys preferences)
    Nothing appears on the desktop whatsoever -no HDs, no files, no folders.
    Programmes (such as iWeb) just disappear for no reason; a folder (such as Flickr) will magically appear within the desktop folder without being created by me (within sidebar) but not on the proper desktop itself
    Cannot create new folders on desktop - error code 8058 appears each and every time
    None of my Apple programmes (ex: Mail and iWeb) have any help files within them; switch to the alternative administrator accounts and suddenly they have all those files
    iPod Touch not recognised in default (original) administrator accounts
    Windows sharing at best of times if flaky
    Screen sharing will not work in original accounts: when I change to new ones, suddenly it all works perfectly.
    eyeTV will not keep channel settings between each launch
    And so on.....
    Exasperated last October, I gave up and did a totally clean install of Leopard over Tiger. That made no difference. Tonight I installed the combo update but really, all my problems are still there. I have no idea what could be preventing my two original Admin accounts from Tiger from working and I find it bizarre that the same problems manifest themselves on both machines.
    Anyone any ideas?

    I eventually did *erase and install* back in October because I was having so many problems with the new OS -I had originally just done the upgrade from Tiger.
    Tunes are on an external HD and therefore that isn't the biggest problem, but the original admin account houses a great number of large eyeTV recordings and DivX downloads and that would be a pain to organise as well as all my Mail accounts.
    By 'original admin account' I mean the first one that I created once the installation was performed. In my experience, Leopard doesn't appear to care too much for these ones. Whether this has something to do with .Mac prefs and settings associated with these accounts I don't know but I have the exact same problems on both machines. Like many others on these forums I have had many issues with syncing, iDisks, .Mac and so on since Leopard.
    Everything works on any newly-created admin account. Yes, I suppose I will have to bite the bullet and change everything over to these but it has been a long, arduous and unpleasant task with Leopard since October and the prospect of setting up mail, bookmarks and copying extremely large media files back and forth is not one that I relish.
    What could be causing so much hassle on the default admin accounts that I wish to use?
    Message was edited by: Éamonn Ó Catháin

  • Massive problems with Logic/Network -can anyone advise?

    Is anyone out there using Logic on a network together with other composers, with shared samples and audio on an external RAID system via File Server? If you are, can you please offer some advice on what does work, because at the moment our system does not!
    We are a studio with 3 workspaces & 3 G5 Macs, making music for TV and media. Our samples and our music archive are on 2 separate RAID 5 configurations of about 2TB each. The samples are on one of the RAIDS, most of the music Archive on the other RAID. A G4 Dual operates as file server. Our RAID system hardware is custom, not Apple's X-serve.
    This system served us well for a year or two, but now we are having extreme difficulties for the second time in several months. The system has actually had a heavier load because in the last few months we went from 2 Workspaces to 3, but it's hard to make a direct correlation between this and the current problems.
    What's happening is that repeatedly the data on the RAID system becomes unavailable -samples get cut off, and in exs24 you can see the "couldn't get samples in time" error. The problem is probably more serious than just a bottleneck of data because when it occurs, files also become inaccessible via the Finder: in other words, we can navigate through the folder structure within the Finder, but the individual files themselves can't be previewed as is usually possible from the Finder; when you click on the Preview triangle (for an Audio file let's say) there is the message "fetching", and you wait....and wait. Generally a Restart of Logic, or a Fileserver Restart cures the problem but only for a very short time (sometimes minutes, sometimes hours) before it crops up again. Basically, communication between the Workspaces and the RAID system at file level is hung up or lost completely.
    This problem caused our File Server computer to have Kernel Panics (last Autumn) and we thought there was a Data Registry problem on one of the RAID systems, so we re-initialized the RAID hoping that would cure it. Things went fine for a few months, but last week the File Server had a KP again and according to my computer Tech the problem is similar to the one we had before.
    We have multiple deadlines every week, and I originally chose this system for its capacity and reliability as our organization has expanded. At the weekend we will try out a different File Server configuration - a G5 and a more powerful Switcher. What I don't know is whether the problems are hardware-based or actually a result of using Logic on a Network, which perhaps it was never intended for.
    Any feedback/advice/suggestions would be much appreciated. We're all on Logic 7.2.3 under OS 10.4.7.
    Thanks very much
    Nigel
    G5 Quad /4.5 GB RAM   Mac OS X (10.4.7)   RME Fireface

    If I was you, I'd recommend buying a cheap PC
    dedicated to Gigasampler for each of your 3 rooms,
    and duplicate the sample library on each of their
    drives. Guaranteed to work, though again it may
    violate the sample library license agreement. Check
    with your lawyer and your conscience.
    Good luck.
    you could do this. but even just buying a dedicated hard drive for each of the 3 stations, and installing the EXS library locally would work too, and wouldn't require as much of a change to workflow as setting up external gigasamplers would. you'd of course get higher performance with the gigasamplers being that they're in entirely dedicated machines, but the tradeoff is not having everything within a single logic session anymore, which may or may not be worth it.
    as for the sample library license agreement thing. indeed.. you'd want to look into that, if not just for the possibility of getting into trouble, but at least for the moral issues of the matter. a working studio with plenty of projects going out the door should have no trouble paying for the correct legal use of the gear and intellectual property they use.

  • I am having a major problem with swapfiles. Can anyone help

    I have had a recurring issue for a few months now with accumulating swapfiles. My system drive fills with these files (65 x 1.9gb, the latest) slowing down the system due to finite disk space and causing some maintenence to be carried out. I have up to now been able to get rid of them using the finder to delete the actual files after making them visible in the finder(using IceClean by MacDentro). I can also use Omni disk sweeper to see the space on the drive as well as Disk Inventory X. Now I cannot delete the files. They have conglomerated into a unknown space that cannot be grabbed and trashed nor physically deleted through the finder.
    I am using an SSD 120gb drive with a system size count of 42gb. Bar 5gb the rest is this ether space that wont go away. I have a feeling that this is going to need to terminal commands witch I do not have at my disposal. Can any please help? This is driving me mad. I have reset the PRAM numerous times but this is too lightweight.
    Hard core terminal shyte, Bring it on. Please
    regards
    Ken

    The 2 places I’ve seen recommended most to buy reliable RAM are below. I have purchased RAM several times from Other World Computing and have always been very satisfied with the product and service. OWC has also tested RAM sizes above Apples official limit.
    Crucial
    Other World Computing

  • Having problems with iphone 3g, can anyone help!!

    I bought a secondhand iphone 3G and i am having trouble setting it up, didn't get the booklet that would off come with the phone, the problem is. when the phone is switched on and when the apple logo dissapears the next screen has a usb cable with an arrow pointing to iTunes and a slide bar, when sliding the bar to open the phone i get banner message saying Emergency calls only,
    How do i get pass this problem?

    set up itunes and have it running on PC
    Then plug iPhone into a USB port and iTunes should see it
    http://manuals.info.apple.com/en_US/iPhone_iOS4_User_Guide.pdf
    here is a user guide assuming the iPhone is running 4.2.1

  • Problems with constructors? can anyone help

    I want to use the Math.random() class to generate a random number
    to fill an array.In the 2 constructors i have this:
    private int[] rand;
    public Randomize(int ra[])
    {rand = new int[7];}
    public Randomize()
    {Math.random();}
    *note ra is a formal parameter
    but nothing happens. The array rand does not fill up with random numbers
    how can i fill it up with random numbers?

    Hi Mike,
    The Math.random() is a static method that returns a double value with a positive sign, greater than or equal to 0.0 and less than 1.0.
    It does not return an array or a int. If you use the Math.random method, you will have to cast your double into an int. Also you need to create a for loop to fill your array and add code to check that the value returned from the Math.random method has not already been used.

  • Can anyone spot the problem with this coding??

    can anyone spot this problem with my program. it keeps saying
    "missing return statement } " with a little arrow beneath the bracket.
    many thanks
    public class Game extends GameInterface
         GameInterface gameInt = new GameInterface();
         String boardString;
         // final static char NOUGHT='O', CROSS='X';
         private int square = 0;
         Player player1 = new Player();
         Player player2 = new Player();
         String firstPlayer, secondPlayer;
         public Game() // Constructor
              boardString = "0123456789";
    public boolean initialise(boolean first)
                   gameInt.setPlayerNames(player1,player2);
              MyPrint.myPrintln("Player one name is " + player1.getName());
              MyPrint.myPrintln("Player two name is " + player2.getName());
              String P1 = player1.getName();
              String P2 = player2.getName();
    }

    It means you declare your method to return something, but you don't actually return anything.

  • I can't move photos from iPhoto to my secondary hard drive or to a burn folder.  I have never had a problem with this before.  This is something new.   They will not drop into either folder.  Nothing happens.

    I can't move photos from iPhoto to my secondary hard drive or to a burn folder.  I have never had a problem with this before.  This is something new.   They will not drop into either folder.  Nothing happens. 
    I checked my secondary harddrive and there is plenty of memory.
    I emptied my burn folder but the photos still will not drop into it.
    I created a new burn folder, no luck with this either.
    230 photos is the maximum size of the events I am trying to move from iPhoto to save elsewhere.
    I have shut down and restarted my computer.   No change. The photos still will not drop out of iPhoto.
    My Mac Computer Storage shows that I have 62.2GB free out of 249.2GB (movies, photos and contacts taking up the most space)
    My Lacie External Harddrive (2TB capacity) shows that I have 1.79TB available.  It shows that 207,729,520,640 bytes (207.73 GB on disk) are used.
    I have never had this problem before.  It is usually very easy to move my photos from iPhoto.
    I am not a computer expert (I work in surgery so don't have a need for lots of computer knowledge) so please explain in simple terms.  
    Thank you so much for any help you can provide.
    I really appreciate it.

    YES Terence!  Thank you. Exporting allowed me to move my photos from iPhoto into the Burn Folder on my desktop.   But that doesn't explain why I'm having to go that route now.   Have I done something (accidentally changed some setting) on my computer that will not allow me to just click and drag anymore?   I really liked the convenience of the click and drag option. 
    I don't have the time tonight to export and burn a lot of CD/DVDs.  I'll try that tomorrow and make sure my photos are moving properly.  I also need to export photos to my external hard drive to make sure that route is working. 
    Wouldn't you know that my Apple Care Plan runs out this Wednesday?!  I need to make sure everything is working properly before that expires. 
    Thank you so much for your help.   I really, really appreciate it.

  • When i try to sync contact via itunes to outlook, it doesnt get sync, even i checked the sync contact with outlook. Can anyone guide whats the actual problem.

    When i try to sync contact via itunes to outlook, it doesnt get sync, even i checked the sync contact with outlook. Can anyone guide whats the actual problem?

    I have similar problems trying to synchronize my calendar, also after update on 7.1.1. on my Iphone 5.
    It doesn;t replace the outlook entries on Iphone 5.
    I didn,t try to synchronize the contacts, because it may fail.
    Has any one an idea what could be the reasson for thid synchronize problems.

  • I have lost my itunes icon from my desktop. I have recently downloaded windows 9 and thought maybe this had something to do with it. Can anyone help me get it back?

    I've lost my itunes icon from my desktop and can't see it anywhere else. I have recently upgraded to windows 9 and thought maybe this had something to do with it. Can anyone help please?

    Has iTunes been uninstalled or removed from you system?
    Is it no longer in the Start Menu or in Control Panel?
    What exactly was downloaded and installed?  There is no Windows 9, so it's not possible that it is installed on your computer.

  • I am using a MacBook Pro and am trying to print double sided copies on the HP Deskjet 3054 that came with it. Can anyone tell me how to do this?

    I am using a MacBook Pro and am trying to print double sided copies on the HP Deskjet 3054 that came with it. Can anyone tell me how to do this? I am a total MacBook nube and can use any help you may offer! Thank you so much.

    How you enable double-sided printing can depend on the applications from whick you wish to print. Example: if I print to my HP PhotoSmart  from Safari, I get this print dialog box:
    (Edit: OOPS! Note that I forgot to switch printers when i took the scene-shots, so ignore the "Brother" reference. It's should look the same for your HP.
    Note the selection labled "Safari" near the bottom. If I change that form "safari to "Layout: I get this:
    Note the option for two-sided printing appears for your selection. If I print from Word, the box is different:
    The "Copies & Pages" option can be changed to "Layout" when you click it, again allowing the selection of two-sided printing.
    If you tell us what applciaiton is vexing you, we may be able to give better-focused information.
    A

  • After installed mavericks i cannot sign in to my facetime and i messages. i tried it 100 times, but it is showing couldn't sign in check your network and try again. there is no problem with my network. if anyone knows the solution please help me .

    After installed mavericks i cannot sign in to my facetime and i messages. i tried it 100 times, but it is showing couldn't sign in check your network and try again. there is no problem with my network. if anyone knows the solution please help me .

    Hi,
    What version of the OS did you upgrade from ?
    Anything before OS X 10.8.2 may have an issue if the Logic/Mother board has been replaced and the Serial Number not "flashed" back to it.
    In the Apple Icon menu use the About this Mac item.
    In the new panel click twice on the line that tells you the current OS level
    It will change to the Build number (and alternative count to the OS versions) and then the Serial Number.
    If it is missing you need to get it replaced.
    (It is supposed to be done on Repair or Refurbishment).
    An Apple Store or Apple Authorised Service Provider as the best choices.
    There are apps you can download (They are Mac Model specific) but needs careful typing as it is a once only trip.
    8:56 pm      Sunday; November 24, 2013
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    Message was edited by: Ralph Johns (UK)

  • HT201210 I was trying to update my ipod for ios 6. It got downloaded but could not update my ipod. my ipod screen is now showing one message usb -up arrow-itunes, can anyone suggest something please.

    I was trying to update my ipod for ios 6. It got downloaded but could not update my ipod. my ipod screen is now showing one message usb -up arrow-itunes, can anyone suggest something please.

    Try:
    - iOS: Not responding or does not turn on
    - If not successful and you can't fully turn the iPod fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • Can ANYONE spot the memory leak??

    Hi, I have some code here, and there is a SERIOUS memory leak. Basically, I realized the leak was there when a report tried to execute this 100,000+ times and it bogged the system down to a crawl. Can anyone spot the leak? I will explain the variables below the code:
    char* getDescription(char* chFlag, char* chDEID, char* chKey, int keysize)
    //first, we need to allocate new Byte arrays....
    jbyteArray JchFlag = (*env1)->NewByteArray(env1,1);
    jbyteArray JchDEID = (*env1)->NewByteArray(env1,2);
    jbyteArray JchKey = (*env1)->NewByteArray(env1,40);
    //next, we need to put the correct info in those byte arrays....
    (*env1)->SetByteArrayRegion(env1,JchFlag,0,1,(jbyte*)chFlag); (*env1)->SetByteArrayRegion(env1,JchDEID,0,2,(jbyte*)chDEID); (*env1)->SetByteArrayRegion(env1,JchKey,0,40,(jbyte*)chKey);
    getDescriptionID =(*env1)->GetMethodID(env1,myjclass,"getDescription","([B[B[BI)Ljava/lang/String;");
    result              =(jstring)((*env1)->CallObjectMethod(env1,myjobject,getDescriptionID,JchFlag,JchDEID,JchKey,keysize))  ;   
        returnvalue = NULL;
        if(result == NULL)
           strcpy(holder1, "**********Error Finding Description**********");
        else { //now, we convert the jstring to a char *, so we can return the proper type...                       
                returnvalue=(char*)((*env1)->GetStringUTFChars(env1,result,&isCopy)) ;
                strcpy(holder1,returnvalue);           
                if(isCopy == JNI_TRUE)                    
                    (*env1)->ReleaseStringUTFChars(env1,result,returnvalue);                         
    (*env1)->DeleteLocalRef(env1,result);
    return holder1;
    //return description;
    }//end getDescription function
    -myjclass is global, it gets its value in the initialization.
    -any variables that are not declared in this function are, of course, globally defined.

    Hello Friends,
    I had also tried to use the ReleaseStringUTFChars after making the check of whether it does a copy or not.
    For me in Windows, it works fine most of the time. But when I go on increasing the no. of strings in a Vector of objects to more than 500 or something , then it occasionally fails.
    Just before ReleaseStringUTF, I do have the copied string in char* .
    Soon after Releasing, I do get a junk in the character array.
    I dont know why it happens like this.
    Please advice.
    Everyone suggest ReleaseStringUTF.
    But why it fails in Windows.
    And any one know about how it will behave in Alpha.
    It totally fails in Alpha.
    I could not get the string at all.
    Please help
    LathaDhamo

Maybe you are looking for

  • HT6337 HandOff feature does NOT work

    HandOff feature does NOT work on my iPhone6 and iPad Air. I have the latest updates (iOS 8.1) installed and my MBP is on Yosemite 10.10... I have my iPad Air, iPhone6, and MBP on the same network. And, I have bluetooth enabled. Yet, I don't see the h

  • Integration issue in mm

    Dear sap gurus, in obyc i had assign trasaction event key bsx in this one i assigned to stock account and i create one account gr/ir this one i asigned to wrx, i created one 4% tax this one assigned to ob40. after gr/ir (migo) stock a/c dr 100 to  gr

  • Ps4 connect to laptop using hdmi

    Hi! Tell me how I can connect Ps4 to laptop screen using hdmi-cable?

  • Using a Macbook by -30 degrees Celcius (-22 degrees Fahrenheit)

    Hi, I will be part of an arctic expedition in Baffin Island during march and april 2007. We are planning to send data back to our HQ in europe through the INMARSAT broadband system. For that purpose we need to operate a laptop at very extreme tempera

  • Need box for 30" display

    I am moving and need to get hold of a Apple 30" Display box. If you have one you would like to sell to me, please let me know. Thanks David