Pack() changes sizes of contained components

I'm having some weird experiences with the lastest OpenJDK. Seeing how it is an unreleased JDK, I don't really know if it's just a bug in it (the stock Sun JDK does not display this behavior), or if I have misunderstood something in AWT again, though. Please see the below code:
public class test {
    public static void main(String[] args) {
     Frame f = new Frame("Test");
     Canvas c = new Canvas();
     f.add(c);
     c.setSize(100, 100);
     System.out.println(c.getSize() + ", " + f.getSize());
     f.pack();
     System.out.println(c.getSize() + ", " + f.getSize());
     f.setVisible(true);
}When I run this code, it first tells me the sizes of the Canvas and the frame as 100x100 and 0x0, as one would expect, and then, after the pack() method has been called, as 110x130 and 120x160. So the pack() method called on the Frame changes the size of the Canvas.
Is this supposed to be like this?

AndrewThompson64 wrote:
- Increase the size to 200x200 and it does not change. Guess why.I can't speak for your results, but it does for me. Again by exactly 10x30 more than the set size.
- Layouts generally honor the preferred size over the size.I thank both you and SomasekharPatil for this advice, but it does not seem to work for me. I called setPreferredSize as well, but I get the exact same result.
- Don't mix Swing with AWT.I don't -- I only use AWT. Ever, actually -- I dislike Swing. :)

Similar Messages

  • JButton changes size

    My button changes size when it has label START and STOP. How can i do, it not changes (sorry for my english)
      import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class Ramka extends JFrame {
         JButton b2 = new JButton("START");
         JPanel p1 = new JPanel(new FlowLayout());
        JPanel p2 = new JPanel();
        JButton b1 = new JButton("NOWA GRA");
         public Ramka() {
              setTitle("Waz");
              setSize(500,350);
              setLocation(200,100);
              setResizable(false);
            //JButton b2 = new JButton("START");
            Container cp = getContentPane();
            p1.setBackground(Color.blue);
            p2.setBackground(Color.red);          
            cp.add(BorderLayout.NORTH,p1);
            cp.add(p2);
            p1.add(b1);
            //b2.setText("STOP");
              p1.add(b2);
              b2.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent e){
                        if (b2.getText()=="START") {
                        b2.setText("STOP");}
                        else {
                             b2.setText("START");
    public class Waz {
         public static void main(String[] args) {
              Ramka ramka = new Ramka();
            ramka.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            ramka.show();
    }

    Add this as the last line of the constructor of Ramka:
    b2.setPreferredSize(b2.getPreferredSize());

  • JLayeredPane - keeping all contained components filling the layeredPane

    I'm having some troubles keeping contained components inside a JLayeredPane so they're all filling the pane.
    The desired effect I want is to have a region of the window that contains two panels -- one for standard view/editing, and an overlayed transparent panel above it, which, at times, will show icons overlayed over the base panel -- basically an OSD layer over a panel that will be showing video.
    I've gone the approach of using a JLayeredPane and adding the base panel, but I'm having troubles getting it to make sure it fills the entirety of the JLayeredPane.
    I thought of several approaches:
    1.) Set up the JLayeredPane with a BorderLayout, and set the components all to CENTER, but then I realized that with BorderLayout, each position can only have one component assigned to it.
    So, this approach is a no-go. :(
    2.) Set up a ComponentListener on the JLayeredPane, listening for componentResized, and resizing the contained panels to event.getComponent().getSize(). This approach did result in a resize happening on the component I was testing, but alas, it resizes it to the original, pre-resized size! Reading the docs, and what others have said on the msg board, this seems to be going against what I'm reading and hearing about.
    Does anyone have any ideas for me? I'm all ears.
    Is there a radically different approach I could take?
    What I'm going after is kinda like the glassPane feature on a Frame, but I'm not working with a frame, just one panel inside the frame of my main application window.. And I'd like it so I could encapsulate the OSD panel in it's own derived class -- that's what I'm doing right now -- so I can have custom methods for manipulating the OSD.

    bsampieri wrote:
    For this type of situation, I usually subclass JLayeredPane and override the doLayout() method. In there, assuming you want to have everything on it's layer fill the layer it's on, just set it's bounds to (0, 0, w, h) with the width/height of the layered pane itself. Aha! That worked like a charm! Just what I was after. I need to get more comfortable altering the inner-workings of swing components through subclassing.
    If you need something more advanced, you'd have to have a way to determine which components should go where/what size.Nope -- I didn't need to subclass in this case -- I want each and every item in the JLayeredPane to fill the entirety of the container. I sorta figured that there should be a relatively easy solution to it, but I hadn't been able to figure out how, and googling it up didn't seem to result in any useful information on the subject.
    Thank you very much bsamieri!
    Here's exactly what I ended up doing:
    package com.tripleplayint.newvideopreviewermockup;
    import java.awt.Component;
    import javax.swing.JLayeredPane;
    * A panel widget that allows components to be layered on top of one another,
    * where each component fills the entirety of this container.
    * This is only useful when all but the lowest layer is set transparent, as
    * the highest opaque layer will obscure any layers below it.
    * @NOTE If one wants to move the layers to choose which one is visible, your
    * better option is to use a JPanel with the CardLayout.
    * @author kkyzivat
    public class FilledLayeredPane extends JLayeredPane {
         * Layout each of the components in this JLayeredPane so that they all fill
         * the entire extents of the layered pane -- from (0,0) to (getWidth(), getHeight())
        @Override
        public void doLayout() {
            // Synchronizing on getTreeLock, because I see other layouts doing that.
            // see BorderLayout::layoutContainer(Container)
            synchronized(getTreeLock()) {
                int w = getWidth();
                int h = getHeight();
                for(Component c : getComponents()) {
                    c.setBounds(0, 0, w, h);
    }

  • Change colors to all components in a consistent way

    Is there a way to change color to all components of an application (or of a JFrame), such as all JButtons backgrounds, JFrame backgrounds etc.?
    I suppose i've to deal with UIManager defaults, but is there some facility, or some check-list to help achieve this task?.
    Thanks in advance
    Agostino

    Check out my ComponentMapper class. You could do it with this by running the mapper on the contentpane (and potentially the JMenuBar too if you like)
    You are welcome to use and modify this code but please don't change the package or take credit for it as your own work
    tjacobs.util.ComponentMapper
    ======================
    package tjacobs.util;
    import java.awt.Component;
    import java.awt.Container;
    import java.awt.TextComponent;
    import javax.swing.JFileChooser;
    import javax.swing.JTextField;
    import javax.swing.SwingUtilities;
    import javax.swing.event.DocumentEvent;
    import javax.swing.event.DocumentListener;
    import javax.swing.text.JTextComponent;
    public class ComponentMapper {
         public static interface MappedFunc {
              public void func(Component c);
         public static void map(Component c, MappedFunc func) {
              func.func(c);
              if (c instanceof Container) {
                   Container con = (Container)c;
                   int count = con.getComponentCount();
                   for (int i = 0; i < count; i++) {
                        map(con.getComponent(i), func);
         public static void main(String[] args) {
              JFileChooser fc = new JFileChooser();
              MappedFunc mf = new MappedFunc() {
                   public void func(Component c) {
                        if (c instanceof JTextComponent) {
                             System.out.println("found");
                             final JTextField tf = ((JTextField)c);
                             tf.setEditable(false);
                             tf.getDocument().addDocumentListener(new DocumentListener() {
                                  public void insertUpdate(DocumentEvent de) {
                                       Runnable r = new Runnable() {
                                            public void run() {
                                                 tf.setText("");
                                       SwingUtilities.invokeLater(r);
                                  public void removeUpdate(DocumentEvent de) {
                                  public void changedUpdate(DocumentEvent de) {
                             while (c != null) {
                                  System.out.println(c.getClass());
                                  c = c.getParent();
                             //disable the textfield
              map(fc, mf);
              fc.showSaveDialog(null);
    }

  • Photos and layouts change size when adding photos in book layout

    I am using the Classic layout to create books.
    Sometimes, when I move a photo down into the layout, unpredictable things happen. For example, when I drag a photo down onto the page layout, sometimes the photo will change sizes, and sometimes the layout will move around (esp. with 3 or 4 images on a page). On a page with a single image, sometimes the photo comes in large, and sometimes it shrinks. On a 3 photo per page layout, sometimes the layout starts with 3 photo boxes in a row. I can add one or two, and then I add another (could be the 1st, 2nd or 3rd - it's the image file that I think triggers the change) and all the boxes scramble and instead of a row of 3 equal-sized boxes, now I have a page with 1 big and 2 small boxes. Totally unpredictable!
    Is there any way to control this?
    All the photo files I'm starting with are high resolution tiffs, around 8 inches square (most are squares, not 4x6 snapshots) at 300 dpi.
    I have had this issue on 3 computers (and probably 2 different versions of iPhoto): a 2-year-old G5, and two brand new iMacs.
    Any help or advice is welcome. Thanks.
    iMac   Mac OS X (10.4.8)  

    If you Control-click on the square photo in a book frame you can select the "Fit photo to frame size" option and the entire image will be contained in the frame. there will be some white space on the short side.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Fonts changing size in deployed code

    I'm stuck here.  We have  2 identical deployed .exe progs on what should be identical laptops (ordered together, same product, fairly untouched) running windows 7.  Somehow the fonts on one laptop are off (changed sizes, look like they might also have turned to bf, probably a different font) while on the other "identical" labtop things look ok.  A quick check of the obvious possible suspects: same number and type of fonts appear to be installed, fonts setting appear the same, can't find anything different installed on the laptops that might explain the discrepancy like MS word or adobe software that might contain other fonts (but as I mentioned seems that the installed fonts are the same). Only difference in installed programs seem to be Matlab and Firefox installed on the laptop with the font problems. Would uninstalling these programs even make a difference?
    Anyone have an idea what is going on here, and for things I might try?
    Edit: uninstalling Matlab and Firefox in fact did not make any difference, FYI.

    Did you develop the application yourself or is it from elsewhere?
    A LabVIEW developer should never use default fonts on the front panel. Always use defined fonts.
    (I wonder if it would help to add the current font entries to the application.ini file. I have not tried. Anyone?)
    Font handing is currently one of the real weak points of LabVIEW, and there are plenty of ideas to make it better ( e.g. here)
    LabVIEW Champion . Do more with less code and in less time .

  • Constructor witch changing size...

    hi
    i have to make a class called "Vector" that contains x ints as a parameters...
    and i have to make a constructor:
    public vector(int x){
    // here it makes x parameters...
    it have to be smth like point2D/3D structure... but i dont know how to make
    changing-size one...
    i've tried this.p[i] but it doesnt work ... plz help - if u can
    dont answer if u dont know haw to make it... i dont want to rea answers that says "i'm moron" or sth like that...
    just answer how to do it
    thx

    http://forum.java.sun.com/thread.jsp?thread=341784&forum=31&message=1407080

  • Expected behaviour?: input controls change size with iterator in findMode

    Hi all
    I'm trying to work out if the following is expected behaviour with the JDev 11g ADF Faces RC input components or a bug, before lodging a support request.
    I've noticed that fields resize themselves based on the parent bound iterator being in find mode (as separate to the default execute (show) mode). This causes all sorts of havoc with page layout when switching between the 2 modes.
    To demonstrate the code I have a simple inputText control with a hardcoded column size, and a Find commandButton:
    <af:inputText value="#{bindings.Status.inputValue}"
       label="#{bindings.Status.hints.label}" columns="20"
       maximumLength="#{bindings.Status.hints.precision}" shortDesc="#{bindings.Status.hints.tooltip}"
       disabled="true">
      <f:validator binding="#{bindings.Status.validator}"/>
    </af:inputText>
    <af:commandButton actionListener="#{bindings.Find.execute}" text="Find" disabled="#{!bindings.Find.enabled}"/>There's nothing unusual about the bindings for these components:
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel" version="11.1.1.51.88" id="untitled1PageDef"
                    Package="view.pageDefs">
      <parameters/>
      <executables>
        <iterator Binds="TableView1" RangeSize="25" DataControl="AppModuleDataControl"
                  id="TableView1Iterator"/>
      </executables>
      <bindings>
        <attributeValues IterBinding="TableView1Iterator" id="Status">
          <AttrNames>
            <Item Value="Status"/>
          </AttrNames>
        </attributeValues>
        <action IterBinding="TableView1Iterator" id="Find" RequiresUpdateModel="true" Action="iteratorFind"/>
        ...and so on...Before I press the Find button (ie. Execute/show mode), the inputText renders 20 columns in width as expected, but in Find mode the field changes size.
    Is this expected behaviour or a bug? Alternatively can we influence the field's size in find mode (as the column attribute seems to be ignored), as I'd like to make it the same as the execute/result mode, so my page doesn't resize.
    Cheers,
    CM.

    Hi Frank
    I've recorded this following ScreenToaster session to show you the behaviour under Firefox. It's a standard search form dragged straight from the data control window. I haven't modified the columns attr at all, each component column is bound #{bindings.<fieldname>.hints.displayWidth}.
    Note when the Find button is pressed the fields change size to set defined width, then after the Execute button is pressed they go back to their dynamic sizes (presumably coming from the binding):
    http://www.screentoaster.com/watch/stWUtSQUVLRl1XRlpVXVta
    Let me know if you can't access the ScreenToaster video, it's my first try in publlishing a video via it.
    Cheers,
    CM.

  • I click on a link or start typing text in a box on a webpage, any page, and the browser window either randomly changes size, reduces & goes to the toolbar, or some other strange random thing occurs. Why is this?

    Whenever I am using Firefox, when I am on a webpage (any webpage) & I either click on a link in that page, start typing in a box, click on a button, or click on a tab, the browser window either reduces to the toolbar, or just changes size, usually from full-screen to 2/3 of its size. I reinstalled Firefox (downloaded from the web) after wiping my hard drive because I was having so many problems from my browser constantly crashing, to the computer itself crashing often, to the computer running exceptionally slow. At first everything seemed fine. But then after having opened my computer a few times, a few different windows began to freeze, then that stopped, then this thing with the browser started a few times later after opening it. Now it does it every time I open it. Also, whenever I try to click on a button on other windows on my computer, I get the 'warning' sound, nothing happens, then after a couple more tries, the button works. All of this is just weird. I had antivirus protection on my computer, but it apparently did not catch whatever virus infected my computer, or the damage was already done when it did get it. I thought once the hard drive was wiped, that everything would be ok, but then these weird things began to start up, and now I am wondering.... Of course, it could also be something wrong with the browser, too. I've also had some trouble getting my printer to working again, but I've managed to solve that problem.

    I have had a similar problem with my system. I just recently (within a week of this post) built a brand new desktop. I installed Windows 7 64-bit Home and had a clean install, no problems. Using IE downloaded an anti-virus program, and then, because it was the latest version, downloaded and installed Firefox 4.0. As I began to search the internet for other programs to install after about maybe 10-15 minutes my computer crashes. Blank screen (yet monitor was still receiving a signal from computer) and completely frozen (couldn't even change the caps and num lock on keyboard). I thought I perhaps forgot to reboot after an update so I did a manual reboot and it started up fine.
    When ever I got on the internet (still using firefox) it would crash after anywhere between 5-15 minutes. Since I've had good experience with FF in the past I thought it must be either the drivers or a hardware problem. So in-between crashes I updated all the drivers. Still had the same problem. Took the computer to a friend who knows more about computers than I do, made sure all the drivers were updated, same problem. We thought that it might be a hardware problem (bad video card, chipset, overheating issues, etc.), but after my friend played around with my computer for a day he found that when he didn't start FF at all it worked fine, even after watching a movie, or going through a playlist on Youtube.
    At the time of this posting I'm going to try to uninstall FF 4.0 and download and install FF 3.6.16 which is currently on my laptop and works like a dream. Hopefully that will do the trick, because I love using FF and would hate to have to switch to another browser. Hopefully Mozilla will work out the kinks with FF 4 so I can continue to use it.
    I apologize for the lengthy post. Any feedback would be appreciated, but is not necessary. I will try and post back after I try FF 3.16.6.

  • When I change size of icons or icon vs list display, why does it affect the whole computer?

    When I change size of icons, or icon vs list display, why does it affect the whole computer? In some folders I want to see a list and others I want to see an icon and I don't need a large icon in all folders. I used to be able to set each folder separately in the old OS. How do I fix this?

    I can hilight an item, go to the finder/file/getinfo but there is no box next to icon view.
    I can go to view/options and adjust the icon size etc, but this applies to every folder in the whole computer. I need varied options in different folders, i.e., I want to view images as icons and text as text. I have to change it every time I open a folder. I used to be able to set it per folder in the old OS.

  • New to flash, swf loaded while changing size

    i'm trying to create a button that will replace the current
    swf with another and i want the size to change between the various
    sizes of each page. i'm currently using the following code in the
    action inspector:
    on(release){loadMovieNum("myfilename.swf",0);
    i know there has to be a simple way to do this! a very
    grateful thanks to anyone who tries to help!

A: new to flash, swf loaded while changing size

b3autiful_dizaster wrote:
> i'm trying to create a button that will replace the
current swf with another
> and i want the size to change between the various sizes
of each page. i'm
> currently using the following code in the action
inspector:
>
> on(release){loadMovieNum("myfilename.swf",0);
> }
>
> i know there has to be a simple way to do this! a very
grateful thanks to
> anyone who tries to help!
You can't change size dynamically as it is defined by the
object embed tags.
You could use WMODE transparency which could help you fake it
tho not always best
solution to go with WMODE. It's a very buggy parameter.
WMODE will remove the background color so the flash movie
appear over the html and you
can see the HTML content trough the movie.
You could define some solid shape for the background on
bottom layer to make it look
like SWF background, than change it with the other loaded
movie making it appear as it
changed size while the over all flash size stats the same. As
said above - faking it.
Best Regards
Urami
!!!!!!! Merry Christmas !!!!!!!
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami>

b3autiful_dizaster wrote:
> i'm trying to create a button that will replace the
current swf with another
> and i want the size to change between the various sizes
of each page. i'm
> currently using the following code in the action
inspector:
>
> on(release){loadMovieNum("myfilename.swf",0);
> }
>
> i know there has to be a simple way to do this! a very
grateful thanks to
> anyone who tries to help!
You can't change size dynamically as it is defined by the
object embed tags.
You could use WMODE transparency which could help you fake it
tho not always best
solution to go with WMODE. It's a very buggy parameter.
WMODE will remove the background color so the flash movie
appear over the html and you
can see the HTML content trough the movie.
You could define some solid shape for the background on
bottom layer to make it look
like SWF background, than change it with the other loaded
movie making it appear as it
changed size while the over all flash size stats the same. As
said above - faking it.
Best Regards
Urami
!!!!!!! Merry Christmas !!!!!!!
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami>

  • Navigation Buttons Change Size

    My admittedly-crude website is taking shape but when I roll over the navigation buttons (which don't have actual links yet) the font type seems to change to bold and the button itself changes size to accomodate the larger font.
    www.ourhealthcare.info
    Any suggestions?
    Thanks.

    Line 219, has a syntax error.
    Change
    <li><a href="federalagency.html">Creating a Federal Healthcare Insurance Agency</a><li>
    to
    <li><a href="federalagency.html">Creating a Federal Healthcare Insurance Agency</a></li>
    The closing <li> has been changed to </li>.
    That should clear up the validation errors.

  • How change size of an anchored object ?

    Hello, I make a script that change size of a element by looking name (label and name).
    So It's work very well :
    var myStories = app.activeDocument.pageItems.everyItem().getElements();
    for(var i=0;i<myStories.length;i++){
    if(myStories[i].name=="Post_it"){
    var g_obj1 = get1(myStories[i]);
    var g_obj2 = get2(myStories[i]);
    var g_obj3 = get3(myStories[i]);
    var g_obj4 = get4(myStories[i]) + 5 ;
    myStories[i].geometricBounds = [g_obj1,g_obj2,g_obj3,g_obj4];
    But when I copy it and paste in a text to do a anchored object, it doesn't work!
    I check the name and the label, it's the same.
    Why it doesn't work when the object in anchored and how can I resolved it ?
    Thanks a lot!

    Yes! Very nice ! Thank a lot !
    Like this :
    var myStories = app.activeDocument.allPageItems;
    for(var i=0;i<myStories.length;i++){
            if(myStories[i]  instanceof TextFrame){
                    if(myStories[i].name=="Post_it" || myStories[i].label=="Post_it"){
                            var num_page_active = myStories[i].parentPage.name;
                            alert(num_page_active);
                            var g_obj1 = get1(myStories[i]);
                            var g_obj2 = get2(myStories[i]);
                            var g_obj3 = get3(myStories[i]);
                            var g_obj4 = get4(myStories[i]) + 5 ;
                            myStories[i].geometricBounds = [g_obj1,g_obj2,g_obj3,g_obj4];
    So, It's work! Now, I would like to do this only on the even page.
    In CS5, all is ok :
    var myStories = app.activeDocument.allPageItems;
    for(var i=0;i<myStories.length;i++){
            if(myStories[i]  instanceof TextFrame){
                    if(myStories[i].name=="Post_it" || myStories[i].label=="Post_it"){
                            var num_page_active = myStories[i].parentPage.name;
                             Number.prototype.isEven = function (){return (this%2 == 0) ? true : false;}
                            if(Number(num_page_active).isEven()==false){
                                var g_obj1 = get1(myStories[i]);
                                var g_obj2 = get2(myStories[i]);
                                var g_obj3 = get3(myStories[i]);
                                var g_obj4 = get4(myStories[i]) + 5 ;
                                myStories[i].geometricBounds = [g_obj1,g_obj2,g_obj3,g_obj4];
                                myStories[i].name="Post_it_Dec";
                                myStories[i].label="Post_it_Dec";
    But in CS4, the parent.name give me some problème that I can't resolved.
    In CS4, it does'nt know ".name" but ".label" only.
    So this does'nt work for CS4 :
    var myStories = app.activeDocument.allPageItems;
    for(var i=0;i<myStories.length;i++){
                                  if( myStories[i].label=="Post_it"){
                                            myStories[i].select();
                                            var num_page_active = myStories[i].parent.name;
                                            Number.prototype.isEven = function (){return (this%2 == 0) ? true : false;}
                                            if(Number(num_page_active).isEven()==false){
                                       var g_obj1 = get1(myStories[i]);
                                                                          var g_obj2 = get2(myStories[i]);
                                                                          var g_obj3 = get3(myStories[i]);
                                                                          var g_obj4 = get4(myStories[i]) + 5 ;
                                                                          myStories[i].geometricBounds = [g_obj1,g_obj2,g_obj3,g_obj4];
                                                                          myStories[i].label ="Post_it_Dec";
    Can you help me here or I create a new topic?

  • The row key or row index of a UIXCollection component is being changed outside of the components context ????

    Hello Guys,
    I'm working at this moment on implementing GANTT functionality via the <dvt:projectGantt> in my Web App :
    Rather than using data binding technology, I use a managed bean in this way :
    @ManagedBean(name="myBeanController")
    @ViewScope
    public class MyBeanController implements Serializable{
    private List<InternalTask> internalTasks;
    @EJB
    private InternalTaskDao internalTaskDao;
    //Root for tree component
    private List<TreeNode> root;
    private transient TreeModel model;
    public MyBeanController(){
         this.internalTasks = new ArrayList<InternalTask>();
    @PostConstruct
    public void init(){
         //Here I construct my TreeModel
         this.model = new ChildPropertyTreeModel(root,"collection");
    //getters and setters
    And my Component in my JSF page would be :
    <dvt:gantt value="#{myBeanController.model}></...>
    In my Browser the component seems to work properly without any problems but if I expand each node then I can see in my log :
    "<org.apache.myfaces.trinidad.component.UIXCollection> <BEA-000000> <The row key or row index of a UIXCollection component is being changed
    outside of the components context. Changing the key or index of a collection when the collection
    is not currently being visited, invoked on, broadcasting an event or processing a lifecycle method, is not valid.
    Data corruption and errors may result from this call...>"
    What's going on here ? Something with rowKeySet ?
    Thanks,
    Remy

    Hi,
    I made my tree model variable non transient and the warning message appears again.
    I implement the gantt in the same way as you did in the demo
    1st) populate ArrayList (As far as I'm concerned, it's populated via @EJB)
    2nd) create TreeModel with a helper class as in the demo which extends ChildPropertyTreeModel and implements TaskKey
    In my browser all the stuff is running fine except this warning message.
    I use for info JDev 12c
    Thanks,

  • How do you change size of text cursor or 'insertion point' in adobe cc for mac?

    how do you change size of text cursor or 'insertion point' in adobe ID cc for mac?  I have looked everywhere.  It's possible in Windows and Word but not in Mac.  Please help.  I spend half my time trying to find that blinking upright bar.

    Thanks for your note but it’s still a skinny rod that seems to disappear.  Why can’t it become a little thicker so it doesn’t disappear no matter what size I have set the screen?  My poor old eyes aren’t what they used to be.  I do appreciate your answering and I’ll enlarge the screen so the blankety-blankety blinking rod is at least visible.  Nancy
    how do you change size of text cursor or 'insertion point' in adobe cc for mac?
    created by Peter Spier in InDesign - View the full discussion
    Cursor size is governed by the type size and will be be larger or smaller on screen depending on how close you are zoomed in.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6729964#6729964
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in InDesign by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Maybe you are looking for