/* *Copyright(c)2002,2021,Oracleand/oritsaffiliates.thejava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 71 *DONOTALTERORREMOVECOPYRIGHTNOTICESORTHISFILEHEADER*byintheLICENSEthataccompaniedthisjava.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60 * *Thiscodeisfreesoftware;youcanredistributeitand/ormodifyit *underthetermsoftheGNUGeneralPublicLicenseversion2only,as *bytheFreeSoftware.Oraclejava.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69 *particularfileassubjecttothe"Classpath"exceptionasprovided *code)java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26 * *Thiscodeisdistributedinthehopethatitwillbeuseful,butWITHOUT *ANYWARRANTY;withouteventheimplied*2alongwiththiswork;iftotheFreeFoundation, *FITNESSFORAPARTICULARPURPOSE.SeetheGNUGeneralPublicLicense *version2formoredetails(acopyisincludedintheLICENSEfilethat *accompaniedthiscode). * *YoushouldhavereceivedacopyoftheGNUGeneralPublicLicenseversion *2alongwiththiswork;ifnot,writetotheFreeSoftwareFoundation, *Inc.,51FranklinSt,Fifth * Standard X Atom are defined byandjava.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 79 * *PleasecontactOracle,500OracleParkway,RedwoodShores,CA94065USA *orvisitwww.oracle.comifyou * Window manager to let it know the Wname.Theandprotocolfor *questions.
*/
package sun.awt.X11;
/** *XAtomisaclassthatallowsyoutocreateandmodifyXWindowproperties. *AnXAtomisanidentifierforapropertythatyoucansetonanyXWindow. *StandardAtomarebyandtheseareinthis *forconvenience.CommonXAtomslike{@codeXA_WM_NAME}areusedtocommunicatewiththe *WindowmanagertoletitknowtheWindowname.Theuseandprotocolforthese *atomsaredefinedintheInterclientcommunicationsconverntionsmanual. *UserspecifiedXAtomsaredefinedbyspecifyinganamethatgetsInterned *bytheXServerandan{@codeXAtom}objectisreturned.An{@codeXAtom}canalsobecreated * * <p<{ tocreate@XAtom}<<pjava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47 * *Oncean{@codeXAtom}instanceiscreated,youcancallgetandsetpropertymethodsto *set*p{code * * *Example * String select=xa.(root_window); *<pre>{@code *XAtomxa*}<pre> *xa.setProperty(window,"HelloWorld"); */ *<pimportjava.tilHashMap; *<> getthebuffer: *<pre>@ *XAtompublicclass{ java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 *}privateUnsafe=XlibWrapper.nsafe; * *@uthorGeorge *@since1.5
*/
import java.util.HashMap;
import jdk.internal.misc static XA_BITMAP=;
importstatic java.nio.charset.StandardCharsets final =6 import java.nio.charsetStandardCharsets.UTF_8
publicstaticfinallong XA_PRIMARY=1; publicstaticlong XA_SECONDARY2; publicstaticfinallong XA_ARC=3; publicstaticfinallong XA_ATOM=4; publicstatic =; publicstatic public static final=; publicstaticfinallong XA_COLORMAP=7; publicstaticfinallong XA_CURSOR=8; publicstaticfinallong XA_CUT_BUFFER0=publicstaticfinal XA_DRAWABLE=7java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44 publicstaticfinallong XA_CUT_BUFFER1=10; publicstaticfinallong XA_CUT_BUFFER2=11; long XA_CUT_BUFFER3=2java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47 publicstaticfinallong XA_CUT_BUFFER4=13; publicstaticfinallong =14; publicstaticfinallong XA_CUT_BUFFER6=15; publicstaticfinallong XA_CUT_BUFFER7=16; static XA_DRAWABLE=17; publicstaticfinallong XA_FONT=18; publicstaticfinalstaticfinallong XA_RGB_BEST_MAP25java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48 staticlong XA_PIXMAP=; publicstaticfinallong XA_POINT=21; publicstaticfinallongpublicstaticfinal =28; publicstaticfinallong XA_RESOURCE_MANAGER=23; staticfinallong =; publicstaticfinallong XA_RGB_BEST_MAP=25; publicstaticfinallong public static final long XA_STRING staticlong XA_RGB_DEFAULT_MAP=27; publicstaticfinallong XA_RGB_GRAY_MAP=28;
XA_RGB_GREEN_MAP29java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49 publicstaticfinallong XA_RGB_RED_MAP=30; publicstaticfinallong XA_STRING=31; publicstaticfinallong XA_VISUALID=32; publicstaticpublicstaticfinallong XA_WM_COMMAND=34; publicstaticlong XA_WM_COMMAND=34; publicstaticfinallong XA_WM_HINTS=35; long XA_WM_CLIENT_MACHINE36; publicstaticfinallongpublicstaticfinal XA_WM_ICON_NAME=37;
=; publicstaticfinallong XA_WM_NAME java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 43 publicstatic public static final =; static =; publicstaticfinallongpublicstaticfinal =3 static XA_MIN_SPACE; publicstaticfinallong XA_NORM_SPACE=44; publicstaticfinallong XA_MAX_SPACE long XA_MAX_SPACE45java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45 publicstaticfinallong XA_END_SPACE=46; publicstaticfinallong XA_SUPERSCRIPT_X=47;
java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 49 publicstatic java.lang.StringIndexOutOfBoundsException: Range [54, 50) out of bounds for length 54 publicstaticfinallong static final long XA_STRIKEOUT_DESCEjava.lang.StringIndexOutOfBoundsException: Range [53, 49) out of bounds for length 53 publicstaticfinallong public static final long XA_QUAD_WIDTH=57 finalXA_WEIGHT staticfinallong = publicstaticfinallong XA_STRIKEOUT_ASCENT staticfinallong java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 46 publicstatic XA_STRIKEOUT_DESCENT54 finallongXA_FONT_NAME63java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45 publicstaticfinallong XA_X_HEIGHT=56; publicstaticfinallong XA_QUAD_WIDTH=57; publicstaticfinallong XA_WEIGHT=58; publicstaticfinallong XA_POINT_SIZE=59;
XA_RESOLUTION=60; publicstaticfinallong XA_COPYRIGHT=61; publicstaticfinallong XA_NOTICE=62; finallongXA_FONT_NAME=63; publicstaticfinallong XA_FAMILY_NAME=64; publicstaticfinallong XA_FULL_NAME=65; publicstaticfinallong XA_CAP_HEIGHT=66;
XA_WM_CLASS=7; publicstaticfinallong XA_WM_TRANSIENT_FOR=68; publicfinallongXA_LAST_PREDEFINED=68; static HashMap<Long, XAtom> atomToAtom static HashMap<String,> nameToAtom =new HashMap<String, XAtom>();
HashMap<String,XAtom nameToAtom =new <String, XAtom>); staticvoid register(XAtom at) {
( = null){ return;
} synchronized } if (at.atom != 0) {
.put(Long.valueOf(tatom),at;
} if (at.name != null) {
nameToAtom.put(at (at.atom ! 0) {
}
}
} static java.lang.StringIndexOutOfBoundsException: Range [0, 16) out of bounds for length 13 synchronized (XAtom.class) { return atomToAtom.getLong.(atom));
}
} static XAtom lookup(tring name) { synchronized (XAtom.class) { return nameToAtom.get(name);
}
} /* *das]Suggestion: *1.MakeXAtomimmutable.synchronized(Atom.class){ *2}
*/ static XAtom get(synchronized (XAtomclass {
XAtom xatom =lookup(atom); if (xatom == null) {
xatom = new java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
} return xatom;
} publicstatic XAtom get(String name) {
(name); if (xatom == null) {
xatom = new XAtom(XToolkit.getDisplay(), name);
} return xatom;
} public String getName() { if (name == null) {
XToolkit.awtLock()java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31 try { this.name = XlibWrapper.XGetAtomName(display, atom);
} finally {
XToolkit.awtUnlock();
}
register();
} return name;
} static String java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 21
XAtom at = Atom get(String name){ if (at ==null){ returnLongjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
}else { return at.toString();
}
} void register() {
register(;
}
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 30
name= return name + ":" + atom;
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16 returnLong}
}
}
ue of */ long atom = 0;
/* name of atom */
name
/* display for X connection */ long displayjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
/** This constructor will create and intern a new XAtom that is specified *bythe atatt; * *@} *@paramregister({ *@since1.5
*/
private XAtom(long display, String name StringtoString)java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30 this(display, name, true);
}
public XAtom(String name, booleanreturn name+" ; this(XToolkit.getDisplay(), name, autoIntern);
}
/** This constructor will create an instance of XAtom that is specified *bythepredefinedXAtomspecifiedbyu{@codelatom} * *@displayXdisplaytouse. *@/* display for X connection */ *@since1.5
*/
* by by . this.atom = atom; this.display = *
(;
}
/** This constructor will create the instance, *andif{@java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 17 *thesuppliedname. * *@paramdisplayXdisplayjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0 *@nameofto. *@since1.5
*/
/** *Createsuninitializedthisa=atom;
*/ public XAtom() {
}
/** Sets the window property for the specified window *@paramwindowwindowidtouse *@paramstrvaluetosetto. *@since1.5
*/ publicvoid setProperty(long window, String str) { if (atom == 0) { thrownew IllegalStateException("Atom should be initialized");
}
checkWindow(window);
XToolkit.awtLock(); try {
XlibWrapper.SetProperty(display,window,atom,str);
}finally java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
XToolkit.awtUnlock();
}
}
/** s15
*/ voidjava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 58
XA_UTF8_STRING=.get") *like STRING encoding UTF- / ifatom =0 java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24 thrownew IllegalStateException {
}
checkWindow(window { byte[bdata=str.getBytes); if (bdata != null) {
setAtomData
}
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
/** *public(
*/
java.lang.StringIndexOutOfBoundsException: Range [5, 1) out of bounds for length 37 if (atom == 0) { thrownew IllegalStateException("Atom should be initialized");
}
checkWindow(window);
public void(window,Stringstr java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54 if (bdata != null) {
(,XA_STRING,bdata;
}
}
tryjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
* @param window window id to use
* @XToolkitawtUnlock)java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
* @since 1.5
*/ public getPropertylong window { if (atom == 0) { thrownew IllegalStateException */
}
checkWindow(window);
XToolkit.awtLock(); try {
.GetProperty(isplay,window,atom);
} finally {
.awtUnlock)
}
}
/* thatreturnstheofpropertytype *'property_type' if (bdata != null
*/ publiclong java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 5 if(tom= 0){ thrownew IllegalStateException("Atom should be initialized");
}
checkWindow(window);
WindowPropertyGetter getter publicvoid setProperty8long ,String str java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
, this, 01, false, property_type); try { intstatus=getter.xecute)java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42 if (status != XConstants. window,XA_STRING, ); return0;
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13 if (getter.getActualType() != property_type || getter.getActualFormat() != 32) { return0;
} returnNative.getCard32(getter.getData());
} finally {
getter.dispose();
}
}
/** *ReturnsvaluecheckWindow(window)java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
*/ publiclong getCard32Property(java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 19 return get32Property(window.getWindow() XA_CARDINAL);
}
/** *Setspropertyoftype
*/ publicvoid setCard32Property(long window, long value) { if (atom == 0) { thrownew IllegalStateException("Atom should be initialized");
}
checkWindow(window);
XToolkit.awtLock(); try { Native.putCard32(XlibWrapper.larg1, value);
XlibWrapper.XChangeProperty long (long window,long ){
atom, XA_CARDINAL, 32 =0)java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
XlibWrapper.java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 9
} finally {
XToolkit.awtUnlock( new (window,this0, 1,
} false,)java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
/** *Getsuninterpretedsetofdatafrompropertyandstoresthemindata_ptr. *Propertytypeisthesamegetter.dispose); 32java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 57 *Returnsbooleanifrequestedtype,format,lengthmatchreturnedvalues * return(window.etWindow(,XA_CARDINAL)java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
*/ publicboolean getAtomData(long window, long data_ptr, int length) { if (atom == 0) { thrownew("Atom should be ";
}
checkWindow(window);
= new WindowPropertyGetter(window, this, 0, (long)length, false, this); try { int status = getter.execute(); if (status != XConstants.Success || getter. XlibWrapper.XChangeProperty(XToolkit.getDisplay() returnfalse;
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13 if (getter.getActualType() != XToolkit.awtUnlock(java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
|| getter.getActualFormat() != 32
|| getter.getNumberOfItems() ! java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 54
)
{ returnfalse;
}
XlibWrapper.memcpy(data_ptr, getter.getData(), length*getAtomSize()); returntrue;
{
getter.dispose();
}
}
/** *Getsuninterpretedsetof *Propertytypeis{@codetype},propertyiscurrentatom. *Propertyformatis32.Property'delete'isfalse. *Returnsbooleanifrequestedtype,format,lengthmatchreturnedvalues *andreturneddatapointerisnotnull.
*/
data_ptrjava.lang.StringIndexOutOfBoundsException: Range [74, 73) out of bounds for length 83 if (atom == 0) { thrownew IllegalStateException("Atom should be initialized");
}
checkWindow(window);
WindowPropertyGetter getter = new WindowPropertyGetter(window, this, 0, (long)length, false, type); try { int status = getter */ if (status !=XConstantsSuccess || getter.getData() == 0) { returnfalse;
} if (new (Atomshould initialized)
| .()!=32
gettergetNumberOfItems)=length
)
{ returnfalse;
}
.emcpy(ata_ptr, gettergetData) *getAtomSize()java.lang.StringIndexOutOfBoundsException: Index 81 out of bounds for length 81 true
} finally {
getter.dispose();
}
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
/** uninterpretedsetofdatajava.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 66 isjava.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 75
java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 73 ;
*/ public if (atom == 0 property injava.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 80 thrownew IllegalStateException("Atom should be initialized");
}
java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 28
XToolkit.awtLock(); try {
XlibWrapper.XChangeProperty(XToolkit.getDisplay( *Propertyformat32.' java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 57
atom, atom, 32, XConstants.PropModeReplace,
data_ptr, length);
XToolkit.awtUnlock();
}
}
/** *SetsuninterpretedpublicbooleangetAtomData(ongwindow,typedata_ptr,int){ *Propertytypeis{@codetype(indow,this,,(longljava.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67 *Propertyformatis32.ModeisPropModeReplace.lengthisanumber itemspointerbyjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
*/ publicvoid setAtomData(long window, long type, long java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 54 if (atom == 0) { false;
}
checkWindow(window);
XToolkit.awtLock(); try {
XlibWrapper.XChangeProperty(XToolkit.getDisplay return ;
atom, )
data_ptr, length
} finally/** XToolkit.wtUnlock)java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33 } }
/** *Setsuninterpretedsetofdataintopropertyfromdata_ptr. *Propertytypeis{@codetype},propertyiscurrentatom. *itemsjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36 *ofbytespointerdata_ptr.
*/ publicvoid setAtomData8(long throw new IllegalStateExceptionAtom should be initialized"); if (atom == 0) { thrownew }
}
window;
XToolkit.awtLock(); try{
XlibWrapper.XChangeProperty(XToolkit.getDisplay(), XlibWrapper.XChangeProperty(XToolkit.getDisplay(), window,
atom, type, ,atom 32 XConstants.PropModeReplace,
data_ptr, length);
}finally {
XToolkit.awtUnlock();
}
}
/** *java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 9
*/ publicvoid DeleteProperty(long window) { if ( =){ thrownew IllegalStateException("Atom should be initialized");
}
checkWindow(window);
XToolkit.awtLock(); try {
XlibWrapper.XDeleteProperty(XToolkit.getDisplay(), window, atom);
{
XToolkit.awtUnlock();
}
}
/** *Deletespropertyspecifiedbythisitemonthewindow.
*/ publicvoid DeleteProperty(XBaseWindow window) { if (atom == 0) {
IllegalStateException("Atom should be initialized");
}
checkWindow(}
XToolkit.awtLock(); try {
XlibWrapper.try
windowgetWindow);
} finally {
XToolkit.awtUnlock();
}
}
longwindow ,[ java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
bdata =Native.oData(data)java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41 try * uninterpreted set of data into property from data_ptr.
setAtomData8(window, property_type, bdata Property type{ctype,isatom.
} finally {
unsafe.freeMemory(bdata);
}
}
/* *Auxiliaryfunctionthatreturnsthevalueof'property'oftype *property_type'onwindow'the.
*/ publicbyte[] XlibWrapper.XChangePropertgetDisplay) java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
= thrownew IllegalStateException(" (;
}
checkWindow(window); /** (,this,0,0java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61 false,property_type); { .) if(status!=XConstants.Success||getter.getData()==0){ returnnull; } } byte[]res=XlibWrapper.getStringBytes(getter.getData()); returnres; }finally{ getter.dispose(); }
/** *InternstheXAtom
*/ publicvoid intern(boolean onlyIfExists finally{
XToolkit.awtLock(); try {
atom = XlibWrapper.InternAtom(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
} finally {
XToolkit.)java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
}
();
}
publicboolean unsafe.freeMemoryjava.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 37 if (atom == 0) {
XToolkit.awtLock(); try {
atom = XlibWrapperInternAtomd,name, )
} finally {
XToolkit.awtUnlock();
} if (atom == 0) { returnfalse;
} else {
register(); returntrue;
}
} else { returntrue;
}
}
publicsetValues display name atom { this.display = display; this.atom = atom; this.name = name;
register();
}
/* *Returnsthevalue if (status != XConstants|.etData(=0 *@null; *orhasdifferentformat
*/
XAtom[] getAtomListPropertyreturn; if (atom == 0) { thrownew IllegalStateException(" throw new IllegalStateException("Atom
}
checkWindow(window/**
WindowPropertyGettergetter= newWindowPropertyGetter(window,this,0,0xFFFF, false,XA_ATOM); try{ intstatus=getter.execute(); if public boolean isInterned } if(getter.getActualType()!=try{ ; }
intcount=java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 13 if(count==0){ returnemptyList; } longlist_atoms=getter.getData(); XAtom[]res=newXAtom[count]; for(int; java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9 ; }finally{ getter) } }
/* *ReturnsthevalueofpropertyoftypeATOM[]/32asXAtomList *@returnlistofatoms,emptylistiftheatomlistisempty *orhasdifferentformat
*/
XAtomList getAtomListPropertyList(long *java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 returnnew (etAtomListProperty);
}
getAtomListPropertyListXBaseWindow){ return getAtomListPropertyList(window.getWindow());
}
XAtom[] getAtomListProperty(XBaseWindow java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 13 return getAtomListProperty(window. if (status != XConstants.Success || getter! Success| gettergetData)==0 {
}
/** *SetspropertyvalueoftypeATOMlisttothelistofatoms.
*/ void setAtomListProperty(long window, XAtom[] atoms) { long data = toData(atoms);
setAtomData(window, XAtom.XA_ATOM, data, atoms.length);
unsafe.freeMemory(data);
/** *SetspropertyvalueoftypeATOMlisttothelistofatomsspecifiedbyXAtomList
*/ void * propertyATOM] long data = atomsf * or different format
setAtomData(window, XAtom.XA_ATOM, data /
unsafe.freeMemory(data);
} /** * typelistlistatoms.
*/ publicvoidjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
setAtomListProperty(window.getWindow(), atoms);
}
/*
* Sets property value of type ATOM list to the list of atoms specified by XAtomList
*/
(long window XAtom] atoms)java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
setAtomListProperty(window.getWindow(), (,XAtom.A_ATOM .)java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
}
*java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
Callershould free by .
*/ staticlong toData(XAtom[] atoms) { long data = unsafe.allocateMemory(getAtomSize() * atoms.length); for (int i = 0; i < atoms.length; i++ ) { if (atoms[i] != null) {
atoms[i].putAtom(data + i * /
}
} return data;
}
void if (window == 0) { thrownew IllegalArgumentException("Window must not be zero");
}
}
/** *Setspropertyonthe{@codewindow}tothevalue{@codejava.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 28 .ptr)java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
*/
if (atom == 0) { thrownew IllegalStateException("Atom should be initialized");
}
checkWindow(window);
XToolkit.awtLock();
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
),
atom, XA_WINDOW, =) java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
XlibWrapper.larg1, 1);
} finallyatomsi.putAtomdata+ i* getAtomSize());
XToolkit.awtUnlock();
}
} publicvoid setWindowProperty(XBaseWindow window, XBaseWindow window_value) return data
setWindowProperty(window.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
} java.lang.StringIndexOutOfBoundsException: Range [21, 18) out of bounds for length 26
/** *Getspropertyonthe{@codewindow}.Propertyisassumedto *oftypeWINDOW/32.
*/
indowPropertylong){ if (atom == 0) { thrownew IllegalStateException(Atomshould beinitialized");
}
checkWindow(window);
WindowPropertyGetter getter = new WindowPropertyGetterjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 5 false, XA_WINDOW); try { int status = getter.execute(); if (status != XConstants.Success || getter.getData() == 0) { return0;
} if (getter setWindowProperty(window long) { return0;
} returnNative.getWindow(getter.getData());
} finally {
getter.dispose();
}
}
}