getBaseLocation() == null?

setLocation(CLocation.base().normalSouth( 0.5 ).east( 0.5 ).stack( 2 ))

but getBaseLocation() == null :confused:

dvw.setLocation(CLocation.base().normalSouth( 0.5 ).east( 0.5 ).stack( 2 ));
System.err.println(„getBaseLocation“+dvw.getBaseLocation());
dvw.setVisible(true);
System.err.println(„getBaseLocationVVVV“+dvw.getBaseLocation());

print?
getBaseLocation[ccontrol center] [normal SOUTH 0.5] [normal EAST 0.5] [stack 2]
getBaseLocationVVVVnull
:confused::confused::confused::confused::confused::confused::confused:

Sorry, my fault. I forgot an “if(){}” in the routine that calculates the location. Will be fixed soon.

thank you???wait Preview 5f out?Hurry.
thank?thank?thank…

Can not display Chinese?chinese display ???:confused:

hi?When the new version released?Preview 5f?
Hope can be written as?

public void addCDockable(CDockable dock){
      control.add(dock);
      if(selectedDock != null){
          CLocation cl = selectedDock.getBaseLocation();
          if(cl instanceof AbstractStackholdingLocation){
              dock.setLocation(((AbstractStackholdingLocation)cl).stack());
           }
       }
       dock.setVisible(true);

}
public void addCDockable(CDockable dock){
     control.add(dock);
     if(dock location saved){
         //how implement
         dock.setLocation(savedLocation);
     }else{
      if(selectedDock != null){
          CLocation cl = selectedDock.getBaseLocation();
          if(cl instanceof AbstractStackholdingLocation){
              dock.setLocation(((AbstractStackholdingLocation)cl).stack());
           }
       }
       }
       dock.setVisible(true);

According to the code,You know what I need to do?

sorry,My English is very bad.

Chinese: Right now I won’t support it because I don’t unterstand it, never have done anything with special charsets, nor have the time to dig into it. Sorry, you are welcome to add Chinese yourself (Java should support it?).

Your code is correct. You should also try and call “CLocation c2 = c1.aside()”: c2 will be a neighbour of c1, and it works with all locations.

I’ll upload the new version before next week (there is an additional bug that needs fixing first).

sorry,I said the Chinese is inside the Forum?Reply display chinese „???“.
But it does not matter.:stuck_out_tongue:

Your code is correct. You should also try and call “CLocation c2 = c1.aside()”: c2 will be a neighbour of c1, and it works with all locations.
——————————————————
thank,Just because getBaseLocation() == null,So my code is not work,I was puzzled.I can only wait for the new version.