Rectangle problems can't see cel height

Can anyone help me?
I use the celheight to measure a height of a text?
For some reason it dissapeared. I'll include a photo for what i mean i lost.

Found it, it's was set in dutch so had to translate everything.

Similar Messages

  • Spool file problem,Can't see the query in output file.

    Hello ,
    I am facing a very old school kind of problem .....about spool file ....
    The scenario -
    I have made a script by name DB_Status_checkup.sql which i want to fire on the database to check the database status. In this script their are many queries regarding the data dictionary views to know about the database. It consist of nearly 25-30 different select queries..
    The problem is i want to make a spool file of the output of that query....i want to see the SQL query & the output below in the spool file, so it will be easy for me to judge the result. But i can't see the SQL query , i can only see the output , & in so many queries it all gets jumbled up....even i can't understand where the next output starts ...
    Sample of my SQL Script ....
    clear buffer
    spool D:\DB_status.txt
    /*To check the database startup time*/
    Select to_char(startup_time, 'HH24:MI DD-MON-YY') "Startup time"
    from v$instance
    .........next query n so on....
    spool off;
    In the output pf the spool file at D:\db_status.txt..
    Startup time
    08:25 16-JUL-10It shows only the output of the query in the spool file not the query,
    What should i do to get the SQL query as well as the output of that query just below it in the spool file ???
    Please suggest if you have anymore ideas , regarding this .....
    ORACLE 10g R2
    Windows Server 2008
    Thanks in advance ...

    Why don't you just use database control, instead of re-inventing the wheel?
    Apart from that, SQL*Plus has it's own reference manual, which you apparently refuse to read.
    The answer to your quiz/doc question is
    set echo on
    Sybrand Bakker
    Senior Oracle DBA

  • Help With PS Cs4 GPU Problem Can't see photo

    I have an problem with the graphics card acceleration. It detects my video card but when i enabled it, and go open a photo, the photo opens but can't see no photo. I can see that i'm zooming in and out of the photo but nothing, the only thing i see is gray. Nothing more. And when i close PS, and then open it again it tells me to go to the manufacturer's site to update the latest drivers. And i have already installed the latest but the same problem.
    I hope you guys can help me out...
    Pc Specs
    Intel Core 2 Quad Q9300 2.50GHz
    RAM 8.00GB
    64 Bit Vista Home Premium Service pack 1
    Graphic Card Asus ENGTX 280 1GB
    Graphics GPU Features
    NVIDIA® GeForce GTX280
    PCI Express & PCI Express 2.0 support
    Microsoft DirectX 10 and Shader Model 4.0 support
    OpenGL®2.1 support
    HDCP complian

    Contact NVidia - you need updated drivers, and they may not have posted all the fixes for your model card and OS yet.

  • Premiere Pro CC rendering problems : can't see my medias anymore

    Hello,
    I started my first project on Premiere Pro CC, but it looks like PP CC isn't working well concerning rendering, I think I'm going to use my Premiere Pro CS6 again...
    Sometimes, the rendering simply stops working : I can't see my output view anymore, only the "Media Pending". Removing media cache, rendering files, no effect. Closing the project and opening it again, still the same. Sometimes I can get the files back by selecting another rendering Engine, but after a few minutes, I loose my medias again.
    I've seen the other post concerning preview files lost and the "empty sequence solution', but mine is different : I can't simply get the view back.
    The other problem is that when I close PP CC, and try to launch it again, If first have to manually stop the PP CC process, which seems to be crashed as it doesn't completly stop.
    Olivier

    Ok, I just met a new problem, with the "unexpected MUTE" bug.
    No need to answer my previous problem, I've decided to stop using Premiere Pro CC, which needs to be seriously fixed by Adobe teams. more than 60 euros per month for such a quality is a SHAME.
    Let's switch back to PP CS6.

  • Love this tool, but one problem: can't see beach balls on remote machines!

    Hi, I have the lastest OSX and ARD on the machines on our small biz lan, and I have one problem: when controlling or observing other machines I can't see the beach ball when it occurs...making it look like ARD is hung (or something). It's very disconcerting...is there a switch somewhere to make this right? Thx
    coocoo

    I'd be very surprised if ARD is ever able to display the spinning beach ball on the managing Mac.
    A couple of tips that may help:
    1. Set the client computers to display seconds on the clock in the menubar. If the seconds are counting, you at least know that you are receiving visual updates. If you can't access a menu in the hung app, but can still see the seconds counting, you likely have a beach ball.
    2. Run Activity Monitor on the client machine. A quick glance at the process list will show if an app is hung (and how much CPU it's gobbling).
    3. Select "Force Quit" from the Apple menu. This will also show which apps are hung.
    4. Peek into the /Library/Logs/HangReporter/ folder.
    Cheers.

  • IPhoto problem - can't see pictures

    I can see the thumbnail of some pictures after I import them but can't see anything when I try to open the picture. It usually happens on pictures that I've edited. Please help!
    Ann

    Rebuild iPhoto Database
    Step by Step to fix your Mac

  • More Battery problems: can´s see presets

    I dont know why for some reason I can´t see my effect presets on battery inside logic. Any Help?

    I don´t know why this happened but I just want to mark this question as solved as long as I cannot reply it anymore

  • Weird Problem - can only see Mac in "Share my Screen"

    I've been having a strange problem that I think might have something to do with OpenGL, but I'm not sure. I think it might be because I've gotten some error messages that said that OpenGL wasn't available or working properly.
    When I boot my mac, I have a hugely corrupted screen (gray with green stripes) which doesn't change at all. However, I can hear things starting up, and when I use "Share my Screen" from my MacBook, I can see everything, and the computer runs just fine.
    I've tried attaching a different monitor; it looks exactly the same, and both monitors run perfectly when attached to other computers.
    I tried taking out all the cards and things, wiping everything down, and putting them back. No change.
    I tried booting in Safe Mode. It never actually booted. (I left it to try for about 20 hours before I gave up.)
    I've tried resetting the PRAM, and that didn't help. (Before that, I had scattered green dots, and a fractured apple logo, with the widget that showed the computer was loading, until the point where the screen should turn blue, when it would freeze. Now I just have green stripes.)
    I've tried to reinstall the original system, but when I attempt to boot from the CD, I get a kernal panic. This is true, no matter what CD I attempt to boot from.
    I've opened the computer as a Firewire Drive (using an older Macbook) to change the system from there; but you can only install the stystem on the boot drive from the disks I have. While I was running it like this, the Firewire icon showed up just fine on my monitor, white on the gray with green stripes.
    I've tried upgrading to Lion (I was using Snow Leopard) and was able to do it, but that didn't solve anything.
    I don't appear to have the Lion reboot partition. At least, if I do, I don't know how to find it. The keyboard shortcuts don't do anything as far as I can tell. Since I cannot actually see anything on the screen until the comptuer is fully booted, so it might be there, but invisible.
    Unfortunately, I didn't try the old install disks until after the Lion upgrade. Now, if I try to just install from the disk (using Share my Screen, so I can see what I'm doing) I'm told that I can't.
    When I run Disk Utility, it says everything is fine.
    The computer is due to be replaced in October anyway. Should I just give up and get the new one now? Or can any of you think of anything else that I might be able to try? Everything is totally backed up, so if I need to wipe my disks, that's not a problem.
    The computer is a
         Mac Pro
         2 x 3 GHz Quad-Core Intel Xeon processor
         4 GB 800 MHz DDR2 FB-DIMM memory
         NVIDIA GeForce 8800 GT 512MB Graphics card
         OS 10.7.4
    Thanks for any help you can give me. I'm at my wits end!
    Robin

    Hi Robin,
    The no boot in Safe Mode is a big clue, generally a serious Hard Drive problem, but can be others.
    Are you saying the blotched screen showed up fine in Screen Sharing? If so the problem is downwind of the Video Card/VRAM, & you seem to have eliminated the Cable & Monitor, so I'd quess Logic Board most likely.
    On the HDD problem, try Zeroing the drive while it's in Target Mode...
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
       2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
          *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
       3. Click the Erase tab.
       4. Click the disclosure triangle to the left of the hard drive icon to display the names of your hard disk volumes and partitions.
       5. Select that iMac volume.
       6. Highlight the drive, select Partition Tab, then Format type... MacOS Extended Journalled, select the Security Options button, choose Zero Out Data one pass, Erase... after completion do a new install... after completion hopefully you'll be able to get a good install.

  • ITune v8 problems -can't see iPod

    Since installing iTunes v8, computer does not recognize iPod. Also, when trying to find remote speakers, get unknown error -3256. I cannot trace problem. Also, ITunes help window is blank and does not respond.

    I connect my 2003 old iPod to my intel duo 2007 iMac, but nothing appears in Itunes and the OS does not see it in itunes or on the desk top. All that happens is it starts charging the ipod! Tried Disk repair, tried ipod reboot, tried imac reboot - nothing! Everything was working fine a few weeks ago before doing the last itunes upgrade. Can we three be the only one's having this issue?

  • IPhoto Library Problem; Can't See Photos

    Hi guys. Looking for a little help here. I typically ran a desktop and my wife ran a laptop. We kept our files for iTunes and iPhoto separate. I had an account set up on her laptop just for basic browsing, email and iWork via iCloud documents. However I really need to take her laptop on some work related travel for over a week. I set up a copy of my music and my iPhoto library on an external hard drive to use on my account and it was working great. We ended up buying her a new laptop today and set it up via her most recent Time Machine back up (which was this morning). It set up both her account and mine. We ended up deciding to sell her old laptop and used disc utility to reformat and reinstall 10.10.
    As we will be moving around a bunch soon we decided to sell my desktop as well so I did one final Time Machine backup and then reformatted and reinstalled 10.10 as well. Just minutes later I went to open iPhoto on the new laptop under my account and it said it needed to be updated before I could use it. It was working fine only a few hours earlier. Unfortunately it no longer sees the photos in my iPhoto library file on my external drive. The file is still there and is still the same size. The Old Masters folder inside the library package still has the pics, but iPhoto doesn't see it. So I tried to use the back up from my desktop to restore the library, but I can't seem to get my desktop back ups to work with Time Machine on the laptop.
    So I have all the pictures on my small external drive library, just iPhoto won't see it. I also have a back up on my Time Machine external drive from just this morning (so only missing the five or six pictures taken today), but I can't seem to access that on the new laptop as it was set up with my wife's Time Machine back up. Is there any way to get the library file working or to get it off my back up drive? Or do I have to just get the raw files out of the Old Masters folder?
    Thanks

    Then I can just wipe it again before shipping it to its new owner.
    Be sure to prepare the Mac according to this Apple document: What to do before selling or giving away your Mac - Apple Support

  • Carbon Copy Cloner Problem: Can't see my Macs HD when selecting Target Disk

    I cannot find an answer anywhere on the net, so I'm trying the trusty Apple Discussions forums. Using Carbon Copy Cloner, I backed up everything onto an external HD and I erased everything from my G5 and reinstalled the software it came with. I then also reinstalled Tiger OS X and now, using CCC, I chose all the original backed up volume from my external HD as my Source Disk, but when I try to save them back onto my G5's HD, I cannot see my Macintosh HD under CCC's Target Disk options. (Note: I recently did exactly the same thing with my iBook using CCC and I was able to see the iBook's HD under CCC's Target Disk options without any problems).
    More info: I'm trying to do an Incremental backup, though I tried the "Backup everything" option too (which, incidentally, would defeat the purpose of erasing and reinstalling) just to see if my Macintosh HD would show up under the Target Disk, but it still didn't.
    I would really appreciate it if someone could tell me how to get my Macintosh HD to appear under my Target Disk options on CCC. Thx.

    I was able to figure out what I was doing wrong on my own
    Well done! but you don't need to be "on your own" - you would do well to:
    •  use the link that 'baltwo' gave you and at the very least look at Announcements and Stickies
    •  use CCC Help available online here or (same docs) from the CCC Help menu.
    Andreas   Bombich Forums Moderator

  • Preview print problem-can someone see if this happens on their machine too?

    If I select multiple images with Preview, select all and then ask to print, colours are scrambled on all images after the first one. This also appears in the print preview, when printing to PDF, etc.
    Is anyone else able to reproduce this and so it can be reported as a bug? I've only got Leopard on one machine so can't check on another. It seems to happen regardless of what images are chosen, and after trashing the Preview plist files.
    Best wishes
    Alex

    If I select multiple images with Preview, select all and then ask to print, colours are scrambled on all images after the first one. This also appears in the print preview, when printing to PDF, etc.
    Is anyone else able to reproduce this and so it can be reported as a bug? I've only got Leopard on one machine so can't check on another. It seems to happen regardless of what images are chosen, and after trashing the Preview plist files.
    Best wishes
    Alex

  • Problem: Can't see photos on TV with video IPod

    I'm having a *** of a time getting my photos on the iPod to show up on my TV. I have one of those cables with the white/yellow/red ends made by Griffin for the iPod. I have an amp with the three color plugs, and a VCR which has the same. I get the audio ok, but in no permutation do I get the photos. It's true my TV is 15 years old and has no color input receptacle, but when I connect my camcorder in the usual way I get audio and video. Just not with iPod.
    I have a newer TV in another room which has the three color inputs, and when I connect the iPod to that, I get no photos either.
    Am I missing some setting within the iPod that I should be using??

    They are the two options for TV signal on the iPod. To be honest, I don't know what they mean or how they relate to various television sets. My suggestion is to try both and see if either one works. NTSC is the one that works on both TV sets I've plugged my iPods into, one being a photo iPod, the other being a video iPod.
    CG

  • Individual cell heights in JList

    hi!
    i'm trying to write a cellrenderer for a JList, which can show different cell heights.
    i.e. in unselected mode, i only want to show a name of a person; in selected mode, i want do show the name of the person AND some other details in the same cell (like the "add and remove programs"-dialog of Windows XP when you select a program to uninstall (it shows then some information about usage etc.))
    if(!isSelected) {
        /* Not selected */
        setPreferredSize(new Dimension(0,25));
        setBackground(Color.BLUE);
    } else {
        /* Selected: */
        setPreferredSize(new Dimension(0,45));
        setBackground(Color.RED);                      
    }i tried this code in the getListCellRendererComponent(...)-method, but the JList only uses the first size (25) ... i tried to set the JList-propertie fixedCellHeight to -1, but no changes....
    does anybody know how i can solve my problem?
    thx a lot & greetz
    swissManu

    thank you for your hints! ... i think i will take some time to develop a Model for my DetailList....
    if you like, you can use my improved code.... here it is:
    here is the mainpart, the DetailList.java
    * Created on 02.12.2004
    package detaillist;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Container;
    import java.awt.Dimension;
    import java.awt.Insets;
    import java.awt.LayoutManager;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import java.util.Vector;
    import javax.swing.JPanel;
    * Die Items einer DetailList k�nnen per Klick "aufgeklappt" werden und zeigen
    * anschliessend weitere Deteils zum entsprechenden Item.<br>
    * Um eigene DetailListItem's mit eigener Darstellung zu erstellen kann einfach
    * eine Klasse welche von DetailListItem ableitet erstellt werden.<br>
    * <br>
    * hoverSelection:<br>
    * Mit setHoverSelection(true) wird der Hover-Modus aktiviert. Der Benutzer muss
    * anschliessend nur noch �ber Items mit der Maus fahren um diese aufzuklappen.<br>
    * <br>
    * multiSelection:<br>
    * Per setMultiSelection(true) wird dem Benutzer erm�glicht, mehrere Items auf
    * einmal aufzuklappen.<br>
    * <br>
    * ACHTUNG! hoverSelection & multiSelection k�nnen nicht gleichzeitig aktiviert
    *          sein!
    * @author Manuel Alabor; adapted from Pierre LE LANNIC (weebib)
    * @version 1.1
    public class DetailList extends JPanel {
        /* Eigenschaften: */
        private boolean hoverSelection = false;
        private boolean multiSelection = false;
        /* Objekte: */
        private Vector selectedItems;
        private ItemSelectionListener itemListener;
        public DetailList() {
              super(new ListLayout());
            setOpaque(true);
              setBackground(Color.WHITE);
              itemListener = new ItemSelectionListener();
              selectedItems = new Vector();
         * Setzt das markierte Item und klappt das betreffende auf bzw. zu.<br>
         * Wird ein aufgeklapptes Item nochmals angeklickt, wird dieses zugeklappt.<br>
         * <br>
         * Ist multiSelection == true, so k�nnen mehrere Items auf einmal aufge-
         * klappt sein. Falls multiSelection == false, so wird das bereits offene
         * Item geschlossen.
         * @param item
         private synchronized void setSelectedItem(DetailListItem item) {
              if (item == null) return;
              /* Offenes Item bei erneutem Klick schliessen: */
              // Offenes Item schliessen und aus der selectedItems-Liste entfernen.
              for (int i = 0; i < selectedItems.size(); i++) {
                  DetailListItem selItem = (DetailListItem)selectedItems.get(i);
                  if(item == selItem) {
                      if(item.isExpanded()) {
                          item.setExpanded(false);
                          selectedItems.remove(i);
                          System.out.println(selectedItems.size());
                          return;
              /* Ausgeklappte Items zuklappen wenn ein anderes gew�hlt wurde: */
              // Wenn nicht mehrere offene Items erlaubt sind (!multiSelection),
              // werden hier alle anderen Items zugeklappt (falls vorhanden)
              if(selectedItems.size() > 0 && !multiSelection) {
                  for (int i = 0; i < selectedItems.size(); i++) {
                      DetailListItem tmpItem = (DetailListItem)selectedItems.get(i);
                      if(item != tmpItem) {
                          tmpItem.setExpanded(false);
                          selectedItems.remove(i);
              /* Geklicktes Item ausklappen: */
              item.setExpanded(true);
              selectedItems.add(item);
              System.out.println(selectedItems.size());
          * F�gt dieser DetailList ein neues DetailListItem hinzu.<br>
          * Es wird dem neuen Item automatisch der ItemSelectionListener dieser
          * DetailList zugewiesen.
          * @param newItem
         public void addItem(DetailListItem newItem) {
             newItem.addMouseListener(itemListener);
             add(newItem);
              revalidate();
              repaint();
         /* Anonyme Klassen: */
          * Diese anonyme Klasse fungiert als Klick-Listener f�r die DetailListItem's
          * dieser DetailList.
          * @author Manuel Alabor
         private class ItemSelectionListener extends MouseAdapter {
              public void mouseClicked(MouseEvent e) {
                   Object o = e.getSource();
                   if(!hoverSelection) {
                        if (o instanceof DetailListItem) {
                             setSelectedItem((DetailListItem)o);
             * Erm�glicht einen "Hover"-Effekt welche bewirkt dass ein Item auf-
             * geklappt wird sobald sich der Mauszeiger dar�ber befindet.<br>
             * Ist multiSelection aktiv, wird hier nichts unternommen, auch wenn
             * hoverSelection aktiviert ist.
              public void mouseEntered(MouseEvent e) {
                   if(hoverSelection && !multiSelection) {
                      Object o = e.getSource();
                        if (o instanceof DetailListItem) {
                            // Wenn ein Item offen ist, soll dieses nicht zugeklappt
                            // werden wenn der Benutzer erneut mit dem Cursor auf das
                            // Item f�hrt.
                            if(selectedItems.size() == 1) {
                                if(selectedItems.get(0) != o) {
                                    setSelectedItem((DetailListItem)o);
                             } else {
                                 setSelectedItem((DetailListItem)o);
          * Dieser LayoutManager wird benutzt um alle DetailListItems in einer Listen-
          * Anordnung anzuzeigen.
          * @author Manuel Alabor
         private static class ListLayout implements LayoutManager {
              public void removeLayoutComponent(Component comp) {}
              public void addLayoutComponent(String name, Component comp) {}
              public void layoutContainer(Container target) {
                   synchronized (target.getTreeLock()) {
                        Insets insets = target.getInsets();
                        int nmembers = target.getComponentCount();
                        int x = insets.left;
                        int y = insets.top;
                        for (int i = 0; i < nmembers; i++) {
                             Component m = target.getComponent(i);
                             if (m.isVisible()) {
                                  Dimension d = m.getPreferredSize();
                                  m.setBounds(x, y, target.getWidth(), d.height);
                                  y += d.height;
              public Dimension preferredLayoutSize(Container target) {
                   synchronized (target.getTreeLock()) {
                        Dimension dim = new Dimension(0, 0);
                        int nmembers = target.getComponentCount();
                        for (int i = 0; i < nmembers; i++) {
                             Component m = target.getComponent(i);
                             if (m.isVisible()) {
                                  Dimension d = m.getPreferredSize();
                                  dim.height += d.height;
                                  dim.width = Math.max(dim.width, d.width);
                        Insets insets = target.getInsets();
                        dim.width += insets.left + insets.right;
                        dim.height += insets.top + insets.bottom;
                        return dim;
              public Dimension minimumLayoutSize(Container target) {
                   synchronized (target.getTreeLock()) {
                        Dimension dim = new Dimension(0, 0);
                        int nmembers = target.getComponentCount();
                        for (int i = 0; i < nmembers; i++) {
                             Component m = target.getComponent(i);
                             if (m.isVisible()) {
                                  Dimension d = m.getMinimumSize();
                                  dim.height += d.height;
                                  dim.width = Math.max(dim.width, d.width);
                        Insets insets = target.getInsets();
                        dim.width += insets.left + insets.right;
                        dim.height += insets.top + insets.bottom;
                        return dim;
         /* Getter- & Setter-Methoden: */
        public boolean isHoverSelection() {
            return hoverSelection;
        public void setHoverSelection(boolean hoverSelection) {
            multiSelection = false;
            this.hoverSelection = hoverSelection;
        public boolean isMultiSelection() {
            return hoverSelection;
        public void setMultiSelection(boolean multiSelection) {
            hoverSelection = false;
            this.multiSelection = multiSelection;
    }this is the DetailListItem.java ... the prototype for individual items:
    * Created on 02.12.2004
    package detaillist;
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.Toolkit;
    import javax.swing.BorderFactory;
    import javax.swing.Box;
    import javax.swing.ImageIcon;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    * Ein Standart-Item f�r DetailList.<br>
    * Um eigene Items zu realisieren kann ganz einfach von dieser Klasse abgleitet
    * werden und anschliessend das Item individualisiert werden. (Beispiel siehe
    * DetailListAdressItem)
    * @author Manuel Alabor
    * @version 1.0
    * @see detaillist.DetailListAdressItem
    public abstract class DetailListItem extends JPanel {
        /* Components: */
        protected JLabel lblTitle;
        protected JPanel details;
        private Component margin;
        /* Eigenschaften: */
        protected boolean expanded = false;
        protected int unexpandedHeight = 18;
         * Standart-Konstruktor mit Angabe f�r den Titel sowie ein Symbol.
         * @param text
         * @param icon
        public DetailListItem(String title, String icon) {
            super(new BorderLayout());
            /* Item anpassen: */
            setOpaque(true);
            /* Titel initialisieren: */
            lblTitle = new JLabel(title);
            if(!icon.equals("")) {
                lblTitle.setIcon(new ImageIcon(Toolkit.getDefaultToolkit().createImage(icon)));
            /* details-Panel initialisieren & vorbereiten: */
            details = new JPanel();
            margin = Box.createHorizontalStrut(10);
            /* Components anordnen: */
            add(lblTitle, BorderLayout.NORTH);
            add(margin, BorderLayout.WEST);
            add(details, BorderLayout.CENTER);
            update();
         * Verk�rzter Konstruktor ohne angabe f�r ein Symbol.
         * @param text
        public DetailListItem(String text) {
            this(text, "");
         * Klappt das Item entweder auf oder zu.
         private void update() {
              margin.setVisible(expanded);
              details.setVisible(expanded);
              if (expanded) {
                   setBackground(Color.LIGHT_GRAY);
                   setBorder(BorderFactory.createLineBorder(Color.BLACK));
              } else {
                   setBackground(Color.WHITE);
                   setBorder(BorderFactory.createLineBorder(Color.WHITE));
              this.revalidate();
              this.repaint();
          * Im zugeklappten Zustand sollte per unexpandedHeight-Variabel die H�he des
          * Items definiert werden, da es ansonsten jenachdem zu unsch�nen Effekten
          * kommen kann.<br>
          * F�r ein normales Item betr�gt die "Standarth�he" 18pixel.
        public Dimension getPreferredSize() {
            Dimension dim = super.getPreferredSize();
            /* H�he: */
            // Wenn das Item nicht ausgeklappt ist, unexpandedHeight als h�he
            // nehmen:
            if(!expanded) {
                dim.height = unexpandedHeight;
            return dim;
        /* Getter- & Setter-Methoden: */
        public String getTitle() {
            return lblTitle.getText();
        public void setTitle(String text) {
            lblTitle.setText(text);
        public boolean isExpanded() {
            return expanded;
        public void setExpanded(boolean expanded) {
            this.expanded = expanded;
            update();
    }here my first basic sample for a item:
    * Created on 02.12.2004
    package detaillist;
    import java.awt.Font;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    import com.jgoodies.forms.factories.Borders;
    import com.jgoodies.forms.layout.CellConstraints;
    import com.jgoodies.forms.layout.FormLayout;
    * Ein DetailListItem mit Texteingabe-Feld
    * @author Manuel Alabor
    * @version 1.0
    public class DetailListTextItem extends DetailListItem {
        /* Components: */
        private JTextArea txtText;
         * Standartkonstruktor.
         * @param text
         * @param name
         * @param adress
         * @param email
         * @param photo
        public DetailListTextItem(String title, String icon, String text) {
            super(title, icon);
            unexpandedHeight = 20;  // H�he in zugeklapptem Modus festlegen
            /* lblTitle anpassen: */
            lblTitle.setFont(new Font("Tahoma",Font.BOLD + Font.ITALIC,11));
            lblTitle.setBorder(Borders.createEmptyBorder("1dlu,1dlu,1dlu,1dlu"));
            /* Werte �bernehmen: */
            txtText = new JTextArea(text);
            /* FormLayout f�r details erstellen: */
            details.setLayout(new FormLayout("d:g", "f:30dlu:g"));
            CellConstraints cc = new CellConstraints();
            /* Components hinzuf�gen: */
            details.setBorder(Borders.DLU2_BORDER);
            details.add(new JScrollPane(txtText), cc.xy(1,1));
    }and here a testapp:
    import java.awt.BorderLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JCheckBox;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import detaillist.DetailList;
    import detaillist.DetailListItem;
    import detaillist.DetailListTextItem;
    * Created on 02.12.2004
    * @author Manuel Alabor
    public class DetailListTest {
        public static void main(String[] args) {
            JFrame frame = new JFrame();
            JPanel contentPane = (JPanel)frame.getContentPane();
            contentPane.setLayout(new BorderLayout());
            final DetailList list = new DetailList();
            contentPane.add(new JScrollPane(list), BorderLayout.CENTER);
            JButton btnAdd = new JButton("Add Textitem...");
            btnAdd.addActionListener(new ActionListener() {
                 public void actionPerformed(ActionEvent arg0) {
                     DetailListItem item = new DetailListTextItem("Text-Item", "small_gear.png", "Dies ist ein Testitem");
                     list.addItem(item);
            contentPane.add(btnAdd, BorderLayout.SOUTH);
            JPanel options = new JPanel(new BorderLayout());
            final JCheckBox chkHover = new JCheckBox("HoverSelection");
            final JCheckBox chkMulSel = new JCheckBox("MultiSelection");
            chkHover.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent arg0) {
                    list.setHoverSelection(chkHover.getModel().isSelected());
                    chkMulSel.getModel().setSelected(false);
            options.add(chkHover, BorderLayout.NORTH);
            chkMulSel.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent arg0) {
                    chkHover.getModel().setSelected(false);
                    list.setMultiSelection(chkMulSel.getModel().isSelected());
            options.add(chkMulSel, BorderLayout.SOUTH);
            contentPane.add(options, BorderLayout.NORTH);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setSize(262,250);
            frame.setLocation(200,200);
            frame.show();
    }hope you like it :)

  • JList Cell Height Problem

    I am trying to use a customer cell renderer for a JList. It sort of works, but my cell heights are incorrect because when a cell is selected the JPanel returned from my cell renderer need more space to paint on than an unselected list item.
    Sample code below demontrates the problem - use it as the cell renderer for something and make some selections - you can see that when the text is enlarged when the cell is selected, it is not resized to accommodate the larger text.
    I've tried various combinations of setSize, revalidate etc at various points but nothing helps...
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class TestListCellRenderer extends JPanel implements ListCellRenderer {
         JLabel l;
         public TestListCellRenderer() {
              setLayout( new BorderLayout() );
              l = new JLabel( );
              setBorder( BorderFactory.createLineBorder( Color.BLACK ) );
              add( l, BorderLayout.NORTH );
         public Component getListCellRendererComponent(
                   JList list,
                   Object value,
                   int index,
                   boolean isSelected,
                   boolean hasFocus ) {
              if( isSelected == false ) {
                   l.setText( value.toString() );
                   l.setFont( new Font( "Serif", Font.BOLD, 12 ) );
              else {
                   l.setText( value.toString() );
                   l.setFont( new Font( "Serif", Font.BOLD, 18 ) );
              return this;
    }

    I came across this thread when I was having a similar problem. I have found a way to get it to work.
    My problem was this: I have a list of news headlines. When I increased the font size of the items in my list I needed to increase the height of each cell in the list so that the headline wouldn't get cut off top and bottom by the restrictive height of the list cell.
    Solution is to use setFixedCellHeight(int height) from the JList class.
    In my case I find set the fixed cell height in 3 places.
    the constructor - when the list is being created
    the cell renderer method - when the list is being rendered
    in an action listener method - to act when a user changes the size of the font.
    The code excerpt below is a chopped down version of the working code but gives you an idea.
    public class NewsWindow implements ListSelectionListener {
         /** Component which holds the headlines */
         public JList list;
         public NewsWindow(Container parent, WindowProperties properties) {
              DefaultListModel listModel = new DefaultListModel();
              list = new JList(listModel);
              list.setCellRenderer(new HeadlineCellRenderer());
              bounceListCellHeight(); // set the correct list cell height up front
         /** when the font size has changed this method is eventually called via a super class */
         public void fontSizeHasChangedListener() {         
         bounceListCellHeight();
         /** THIS METHOD SETS THE HEIGHT OF THE LIST CELLS */     
         public void bounceListCellHeight() {
              int height = getFontMetrics(getNewsFont()).getHeight(); // get the height of the font
              list.setFixedCellHeight(height + 10); // set the cell height
         * Inner class to render the list.
         private class HeadlineCellRenderer extends JLabel implements ListCellRenderer {
              public HeadlineCellRenderer() {
              setOpaque(true);
              public Component getListCellRendererComponent(JList myList, Object value, int index, boolean isSelected, boolean cellHasFocus) {
              bounceListCellHeight(); // call the method to set the list cell height
              setText(getHeadlineText());
              this.revalidate();
              setFont(getNewsFont());
              return this;
    Hope this is of some help.

Maybe you are looking for

  • Had to rebuild iTunes library and it won't accept most of the videos it previously had? Why?

    I'm having a strange problem with iTunes - My boot hard drive recently crashed and took iTunes and my library with it. Fortunately I had all of the music and video files themselves backed up on another drive. When I reinstalled the OS and iTunes and

  • Salvage of Finished goods

    Dear Friend , I want to salvage the finished goods and take back raw material in the store . Provide me solution for configuration and process . Thanks & Regards Rajan Keshri

  • HP 6300 ALL IN ONE NOT PRINTING

    MY HP 6300 ALL IN ONE IS CONNETED TO MY AIRPORT EXTREEM. I CAN NOT GET THE PRINTER TO PRINT. THE PRINT DOCUMENT LOADS AND SHOW THE PRINT JOB PRINTING BUT NOTHING HAPPENS. I HAVE THE PRINTER CONNECTED TO THE AIRPORT EXTREEM VIA ETHERNET. THE PRINTER W

  • Can't save a connection on SQL Developer 1.5

    I just installed SQL Dev 1.5. The first time I run it all was fine. The second time it was giving me severe errors. The first one was 'failed to create naming Context for db connections at url: file:/C:/Documents and Settings/thatzi/Application Data/

  • Returns Process - movement type 161 and 122

    When I do returns process with help of movement type 122 then it picks stock from "blocked stock". But when I do it from movement type 161, it does not pick it from blocked stock. I have checked transaction OMJJ and found no major difference in setti