ورود

View Full Version : خطا هنگام BUILD کردن پروژه



cnmeysam
دوشنبه 13 شهریور 1396, 00:59 صبح
سلام
شرمنده از اینکه همه ناشی گریهام رو واسه این انجمن میارم:لبخندساده::خجالت:
موقع بیلد کردن پروژه بهم کلی وارنینگ میده که دلیلش هم setNextFocusableComponent هستش چون توی پروپرتیس کنترلها گفتم موقع زدن کلید تب به کنترل دلخواه من بره تا ترتیبشون رعایت بشه نسبت به طراحی فرم
وارنینگها رو براتون میذارم اگه میشه براشون راه حل بهم بدید ممنون میشم


E:\sampleproject\Patient Identification\PatientIdentification\src\PI\city.j ava:180: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnsearch.setNextFocusableComponent(combostate);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\city.j ava:188: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
txtsearch.setNextFocusableComponent(btnsearch);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\city.j ava:218: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnfirst.setNextFocusableComponent(btnnext);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\city.j ava:227: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnnext.setNextFocusableComponent(btnprevious);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\city.j ava:236: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnprevious.setNextFocusableComponent(btnlast);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\city.j ava:245: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnlast.setNextFocusableComponent(txtsearch);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\city.j ava:319: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnregister.setNextFocusableComponent(btnedit);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\city.j ava:328: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnedit.setNextFocusableComponent(btndelete);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\city.j ava:337: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btndelete.setNextFocusableComponent(btnnew);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\city.j ava:346: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnnew.setNextFocusableComponent(btnfirst);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\city.j ava:354: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
combostate.setNextFocusableComponent(txtcity);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\city.j ava:357: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
txtcity.setNextFocusableComponent(btnregister);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\hospit al.java:150: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
txtsearch.setNextFocusableComponent(btnsearch);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\hospit al.java:154: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnsearch.setNextFocusableComponent(txthospital);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\hospit al.java:191: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
txthospital.setNextFocusableComponent(btnregister) ;
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\hospit al.java:195: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnregister.setNextFocusableComponent(btnedit);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\hospit al.java:204: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnedit.setNextFocusableComponent(btndelete);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\hospit al.java:213: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btndelete.setNextFocusableComponent(btnnew);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\hospit al.java:222: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnnew.setNextFocusableComponent(btnfirst);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\hospit al.java:278: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnfirst.setNextFocusableComponent(btnnext);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\hospit al.java:287: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnnext.setNextFocusableComponent(btnprevious);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\hospit al.java:296: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnprevious.setNextFocusableComponent(btnlast);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\hospit al.java:305: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnlast.setNextFocusableComponent(txtsearch);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\patien t.java:213: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnfirst.setNextFocusableComponent(btnnext);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\patien t.java:222: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnnext.setNextFocusableComponent(btnprevious);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\patien t.java:231: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnprevious.setNextFocusableComponent(btnlast);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\patien t.java:240: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnlast.setNextFocusableComponent(txtfile);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\patien t.java:320: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
txtdescriptions.setNextFocusableComponent(btnturn) ;
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\patien t.java:327: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
txttell.setNextFocusableComponent(txtmobile);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\patien t.java:333: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
txtmobile.setNextFocusableComponent(combostate);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\patien t.java:339: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
combostate.setNextFocusableComponent(combocity);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\patien t.java:351: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
txtfname.setNextFocusableComponent(txtlname);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\patien t.java:357: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
combocity.setNextFocusableComponent(txtdescription s);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\patien t.java:369: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
txtlname.setNextFocusableComponent(txttell);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\patien t.java:373: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnregister.setNextFocusableComponent(btnedit);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\patien t.java:382: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnedit.setNextFocusableComponent(btndelete);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\patien t.java:391: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btndelete.setNextFocusableComponent(btnnew);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\patien t.java:400: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnnew.setNextFocusableComponent(btnfirst);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\patien t.java:409: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnpic.setNextFocusableComponent(btnsurgery);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\patien t.java:421: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnsurgery.setNextFocusableComponent(btnregister);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\patien t.java:430: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnturn.setNextFocusableComponent(btnpic);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\patien t.java:552: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
txtfile.setNextFocusableComponent(combosex);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\patien t.java:555: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
txtbirth.setNextFocusableComponent(txtnationalcode );
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\patien t.java:561: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
txtnationalcode.setNextFocusableComponent(txtfathe r);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\patien t.java:565: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
combosex.setNextFocusableComponent(txtbirth);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\patien t.java:577: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
txtfather.setNextFocusableComponent(txtfname);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\patien t.java:635: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
combosearch.setNextFocusableComponent(txtsearch);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\patien t.java:646: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
txtsearch.setNextFocusableComponent(btnsearch);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\patien t.java:650: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnsearch.setNextFocusableComponent(txtfile);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\pictur e.java:255: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
BtnBrows.setNextFocusableComponent(datePic);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\pictur e.java:266: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
txtdescriptions.setNextFocusableComponent(btnregis ter);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\pictur e.java:276: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
txtfile.setNextFocusableComponent(BtnBrows);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\pictur e.java:280: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
datePic.setNextFocusableComponent(txtdescriptions) ;
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\pictur e.java:284: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnregister.setNextFocusableComponent(btnedit);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\pictur e.java:293: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnedit.setNextFocusableComponent(btndelete);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\pictur e.java:302: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btndelete.setNextFocusableComponent(btnnew);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\pictur e.java:311: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnnew.setNextFocusableComponent(btnfirst);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\pictur e.java:420: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnfirst.setNextFocusableComponent(btnnext);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\pictur e.java:429: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnnext.setNextFocusableComponent(btnprevious);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\pictur e.java:438: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnprevious.setNextFocusableComponent(btnlast);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\pictur e.java:447: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnlast.setNextFocusableComponent(txtfile);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\pictur e.java:521: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
combosearch.setNextFocusableComponent(txtsearch);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\pictur e.java:532: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
txtsearch.setNextFocusableComponent(datesearch);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\pictur e.java:543: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
datesearch.setNextFocusableComponent(btnsearch);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\pictur e.java:579: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
lblpic.setNextFocusableComponent(BtnBrows);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\prosth esis.java:149: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
txtsearch.setNextFocusableComponent(btnsearch);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\prosth esis.java:153: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnsearch.setNextFocusableComponent(txtprosthesis) ;
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\prosth esis.java:188: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnregister.setNextFocusableComponent(btnedit);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\prosth esis.java:197: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnedit.setNextFocusableComponent(btndelete);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\prosth esis.java:206: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btndelete.setNextFocusableComponent(btnnew);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\prosth esis.java:215: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnnew.setNextFocusableComponent(btnfirst);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\prosth esis.java:226: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
txtprosthesis.setNextFocusableComponent(btnregiste r);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\prosth esis.java:283: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnfirst.setNextFocusableComponent(btnnext);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\prosth esis.java:292: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnnext.setNextFocusableComponent(btnprevious);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\prosth esis.java:301: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnprevious.setNextFocusableComponent(btnlast);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\prosth esis.java:310: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnlast.setNextFocusableComponent(txtsearch);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\state. java:151: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
txtsearch.setNextFocusableComponent(btnsearch);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\state. java:155: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnsearch.setNextFocusableComponent(txtstate);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\state. java:190: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnregister.setNextFocusableComponent(btnedit);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\state. java:199: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnedit.setNextFocusableComponent(btndelete);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\state. java:208: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btndelete.setNextFocusableComponent(btnnew);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\state. java:217: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnnew.setNextFocusableComponent(btnfirst);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\state. java:225: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
txtstate.setNextFocusableComponent(btnregister);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\state. java:281: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnfirst.setNextFocusableComponent(btnnext);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\state. java:290: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnnext.setNextFocusableComponent(btnprevious);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\state. java:299: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnprevious.setNextFocusableComponent(btnlast);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\state. java:308: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnlast.setNextFocusableComponent(txtstate);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\surger y.java:152: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
txtsearch.setNextFocusableComponent(btnsearch);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\surger y.java:156: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnsearch.setNextFocusableComponent(txtsurgery);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\surger y.java:191: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnregister.setNextFocusableComponent(btnedit);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\surger y.java:200: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnedit.setNextFocusableComponent(btndelete);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\surger y.java:209: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btndelete.setNextFocusableComponent(btnnew);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\surger y.java:218: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnnew.setNextFocusableComponent(btnfirst);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\surger y.java:226: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
txtsurgery.setNextFocusableComponent(btnregister);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\surger y.java:290: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnfirst.setNextFocusableComponent(btnnext);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\surger y.java:299: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnnext.setNextFocusableComponent(btnprevious);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\surger y.java:308: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnprevious.setNextFocusableComponent(btnlast);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\surger y.java:317: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnlast.setNextFocusableComponent(txtsurgery);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\surger ypatient.java:242: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnfirst.setNextFocusableComponent(btnnext);
E:\sampleproject\Patient Identification\PatientIdentification\src\PI\surger ypatient.java:251: warning: [deprecation] setNextFocusableComponent(Component) in JComponent has been deprecated
btnnext.setNextFocusableComponent(btnprevious);
Note: Some input files additionally use or override a deprecated API.
100 warnings
compile:
Created dir: E:\sampleproject\Patient Identification\PatientIdentification\dist
Copying 1 file to E:\sampleproject\Patient Identification\PatientIdentification\build
Copy libraries to E:\sampleproject\Patient Identification\PatientIdentification\dist\lib.
Building jar: E:\sampleproject\Patient Identification\PatientIdentification\dist\PatientI dentification.jar
To run this application from the command line without Ant, try:
java -jar "E:\sampleproject\Patient Identification\PatientIdentification\dist\PatientI dentification.jar"
jar:
BUILD SUCCESSFUL (total time: 5 seconds)

vahid-p
پنج شنبه 16 شهریور 1396, 11:27 صبح
warning اش گفته این تابع deprecated هست یعنی منسوخ شده. هر چند هنوز پشتیبانی میشه ولی در آینده نزدیک از jre حذف میشه و دیگه برنامتون رو نسخه های جدید قابل اجرا نیست.

cnmeysam
پنج شنبه 16 شهریور 1396, 15:21 عصر
warning اش گفته این تابع deprecated هست یعنی منسوخ شده. هر چند هنوز پشتیبانی میشه ولی در آینده نزدیک از jre حذف میشه و دیگه برنامتون رو نسخه های جدید قابل اجرا نیست.
خب وقتی من توی پروپرتیس میرم تیک میزنم خودش این کد رو مینویسه قابل ویرایشم نیست مگه اینکه برم با نوت پد بازش کنم ادیتش کنم
و در ضمن پس برای تب ایندکس ( بعد از زدن تب بره روی آیتم مورد نظر من ) یا همون setNextFocusableComponent باید از چه کدی استفاده کنم؟

vahid-p
پنج شنبه 16 شهریور 1396, 17:48 عصر
خب وقتی من توی پروپرتیس میرم تیک میزنم خودش این کد رو مینویسه قابل ویرایشم نیست
به هر حال شاید کد قدیمی درست میکنه، میتونید ازش استفاده نکنید و یه راه جایگزین داشته باشید یا خودتون بنویسید به جای اینکه از ابزارهای آماده استفاده کنید. به هر حال این اررور حرفی که میزنه واضحه.
جاواداکش رو بخونید + در اینترنت سرچ کنید قطعا در موردش مطلب هست

البته این کد که جواب میده و اشتباه نیست.