使用AbstractTableModel构建Table在表格中添加JButton按钮,之前在网上找了2天没有找到好用的程序,最终终于找到一个好用的例子。
不要使,我退你们分。

singtheSwingJTableclasscanquicklybecomeastickybusinesswhenyouwanttocustomizeittoyourspecificneeds.FirstyoumustbecomefamiliarwithhowtheJTableclassisorganized.IndividualcellsarerenderedbyTableCellRendererimplementations.ThetablecontentsarerepresentedbyanimplementationoftheTableModelinterface.Bydefault,JTableusesDefaultTableCellRenderertodrawitscells.DefaultTableCellRendererrecognizesafewprimitivetypes,renderingthemasstrings,andcanevendisplayBooleantypesascheckboxes.ButitdefaultstodisplayingthevaluereturnedbytoString()fortypesitdoesnotspecificallyhandle.YouhavetoprovideyourownTableCellRendererimplementationifyouwanttodisplaybuttonsinaJTable.TheTableCellRendererinterfacecontainsonlyonemethod,getTableCellRendererComponent(...),whichreturnsajava.awt.Componentthatknowshowtodrawthecontentsofaspecificcell.Usually,getTableCellRendererComponent()willreturnthesamecomponentforeverycellofacolumn,toavoidtheunnecessaryuseofextramemory.Butwhenthecontentsofacellisitselfacomponent,itisallrighttoreturnthatcomponentastherenderer.Therefore,thefirststeptowardshavingJButtonsdisplaycorrectlyinaJTableistocreateaTableCellRendererimplementationthatreturnstheJButtoncontainedinthecellbeingrendered.Intheaccompanyingcodelisting,JTableButtonRendererdemonstrateshowtodothis.EvenaftercreatingacustomTableCellRenderer,you'restillnotdone.TheTableModelassociatedwithagivenJTabledoesnotonlykeeptrackofthecontentsofeachcell,butitalsokeepstrackoftheclassofdatastoredineachcolumn.DefaultTableModelisdesignedtoworkwithDefaultTableCellRendererandwillreturnjava.lang.String.classforcolumnscontainingdatatypesthatitdoesnotspecificallyhandle.Theexact
2024/6/23 0:29:22 4KB Table JButton 按钮
1
packageasc;importjava.awt.*;importjavax.swing.*;publicclasscsextendsJFrame{//定义组件JPaneljp1,jp2,jp3;//面板JLabeljlb1,jlb2;//标签JButtonjb1,jb2;//按钮JTextFieldjtf;//文本JPasswordFieldjpf;//密码publicstaticvoidmain(String[]args){cswin=newcs();}//构造函数publiccs(){//创建面板jp1=newJPanel();jp2=newJPanel();jp3=newJPanel();//创建标签jlb1=newJLabel("用户名");jlb2=newJLabel("密码");//创建按钮jb1=newJButton("登录");jb2=newJButton("重置");//创建文本框jtf=newJTextField(10);//创建密码框jpf=newJPasswordField(10);//设置布局管理this.setLayout(newGridLayout(3,1));//网格式布局//加入各个组件jp1.add(jlb1);jp1.add(jtf);jp2.add(jlb2);jp2.add(jpf);jp3.add(jb1);jp3.add(jb2);//加入到JFramethis.add(jp1);this.add(jp2);this.add(jp3);//设置窗体this.setTitle("用户登录");//窗体标签this.setSize(300,150);//窗体大小this.setLocationRelativeTo(null);//在屏幕中间显示(居中显示)this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);//退出关闭JFramethis.setVisible(true);//显示窗体//锁定窗体this.setResizable(false);}}
2024/6/21 2:27:16 2KB ..
1
这个只是方便生成授权,只要填入各个程序的licensehash就能生成不通的应用程序的授权了,licensehash的外置,比原版的生成器方便使用,只要一个生成器就能给你所有的加密程序提供授权的生成了。
GeneralWinlicenseregistrationcodegenerator(finalversion)WinlicenseKeygenaftertheformationofZhuceji,volumeisverylarge,butdonotoperatewiththeSpecialShunshou!Today,thewayshewrotetheoriginalZhucejiandabasicfunctionofthesamething,lovetosharewithfriendsWlicenseJiake!Calculatedusingthissoftwaretofacilitatetheregistrationcodemore!A.supportforageneration.Filearegistrationkey2.Registedintheregistry3.Registedversion4.SmartKey.B.supportoftheoperationsetuparegistrationkeynumber,thenumberofdaysandtheclosingdaterestrictions.Howtouse:youwillbetheworks"Hash"key(knownastheonlyauthorizedkey/LicenseUniqueKey)tokeydata.txtcopyofthedocumentcanbeyourdedicatedZhuceji.将压缩包解开后WinLicense.exe是中文版的程序目录WinLicenseKeygenFinal中的是英文版的程序目录LicGenerator_code是C#的源程序WinLicenseKeygenFinal
2024/6/14 7:30:48 559KB WinLicense 授权注册机 生成器
1
Title:RMachineLearningEssentialsAuthor:MicheleUsuelliLength:218pagesEdition:1Language:EnglishPublisher:PacktPublishingPublicationDate:2014-11-25ISBN-10:178398774XISBN-13:9781783987740GainquickaccesstothemachinelearningconceptsandpracticalapplicationsusingtheRdevelopmentenvironmentAboutThisBookBuildmachinelearningalgorithmsusingthemostpowerfultoolsinRIdentifybusinessproblemsandsolvethembydevelopingeffectivesolutionsHands-ontutorialexplainingtheconceptsthroughlotsofpracticalexamples,tipsandtricksWhoThisBookIsForIfyouwanttolearnhowtodevelopeffectivemachinelearningsolutionstoyourbusinessproblemsinR,thisbookisforyou.Itwouldbehelpfultohaveabitoffamiliaritywithbasicobject-orientedprogrammingconcepts,butnopriorexperienceisrequired.InDetailRMachineLearningEssentialsprovidesyouwithanintroductiontomachinelearningwithR.Machinelearningfindsitsapplicationsinspeechrecognition,search-basedoperations,andartificialintelligence,amongotherthings.Youwillstartoffbygettinganintroductiontowhatmachinelearningis,alongwithsomeexamplestodemonstratetheimportanceinunderstandingthebasicideasofmachinelearning.ThisbookwillthenintroduceyoutoRandyouwillseethatitisaninfluentialprogramminglanguagethataidseffectivemachinelearning.Youwilllearnthethreestepstobuildaneffectivemachinelearningsolution,whichareexploringthedata,buildingthesolution,andvalidatingtheresults.Thebookwilldemonstrateeachstep,highlightingtheirpurposeandexplainingtechniquesrelatedtothem.Bytheendofthisbook,youwillbeabletousethemachinelearningtechniqueseffectively,identifybusinessproblems,andsolvethembyapplyingappropriatesolutions.TableofContentsChapter1.TransformingDataintoActionsChapter2.R–APowerfulToolforDevelopingMachineLearningAlgorith
2024/6/9 17:14:38 2.81MB R Machine Learning
1
基于STM32F407VET6的数控直流电源,GUI触摸调节电压,可以实时显示电压输出和反馈电压曲线,GUI库使用STemWin,ADC使用的是外置ADC模块,型号是AD7705。
2024/5/30 12:13:07 24.29MB STM32 PWM ADC 数控直流电源
1
Sharinghealthcaredatabetweeninstitutionsischallenging.Heterogeneousdatastructuresmayprecludecompatibility,whiledisparateuseofhealthcareterminologylimitsdatacomprehension.Evenifstructureandsemanticscouldbeagreedupon,bothsecurityanddataconsistencyconcernsabound.Centralizeddatastoresandauthorityprovidersareattractivetargetsforcyberattack,andestablishingaconsistentviewofthepatientrecordacrossadatasharingnetworkisproblematic.InthisworkwepresentaBlockchain-basedapproachtosharingpatientdata.Thisapproachtradesasinglecentralizedsourceoftrustinfavorofnetworkconsensus,andpredicatesconsensusonproofofstructuralandsemanticinteroperability.
2024/5/26 3:19:09 402KB 区块链 医疗 交易网络
1
基于STM32F103VET和AD9850的信号发生器的电路图+源代码+设计文档
2024/5/24 0:51:52 1.99MB STM32 AD3850 波形发生器
1
在线考试系统文献综述中文摘要:随着网络技术的日益成熟,网络已经深入到生活的每一个角落,包括教育、购物、咨询、办公等等许多领域。
在网络迅速发展的今天,网页技术的应用也越来越广泛。
网页技术的应用对于教育行业来说优势更加的明显。
教育行业可以通过网络进行学生和教职工的管理、组织学生在线考试、在网站上发布学校相关信息等活动。
这样不仅能增加学校管理的透明度,还提高了学校的管理水平。
在线考试还能充分的利用学校的现有资源,大大减轻教师的工作量,把老师从出卷、阅卷等一些繁重中做中解脱出来。
本文重点论述了由于网络的存在扩大了学校的服务范围,为学校的管理提供了更多的条件。
对此做出了详细的调查,可行性研究和分析。
系统采用了B/S结构,在网络上建立学校自己的教育网站。
系统开发经历了系统分析、系统设计和系统实施三个阶段。
从设计方案的提出,经过详细的调查,分析了方案的可行性和必要性,通过详细的系统设计,力图提高系统的集成性和快捷性;
并在系统实施阶段收集了大量的实验数据,以便测试阶段系统的准确性和稳定性。
系统整体是基于浏览器/服务器,前台应用JSP技术,后台采用SQLServer2000作为数据库与前台连接。
关键词:网络教育在线考试B/S结构JSP技术 AbstractWiththeincreasinglysophisticatednetworktechnologies,thenetworkhadpenetratedeverycorneroflife,includingeducation,shopping,advice,officeandsomanyfields.Today,therapiddevelopmentofthenetwork,theapplicationofwebtechnologymoreandmorewidely.Webtechnologyadvantagefortheeducationindustryismoreevident.Educationsectorthroughanetworkofstudentsandfacultymanagement,studentorganizations,onlineexaminations,inthewebsiteinformationandotherschoolactivities.Thiscannotonlyincreasethetransparencyofschoolmanagement,butalsotoimprovetheschoolmanagementlevel.Onlinetestcanfullyutilizetheschool'sexistingresources,greatlyreducingtheworkloadofteachers,theteacherfromthevolumeofgradingtodoandsomeheavyfreed.Thisarticlefocusesontheexistenceofasnetworkservicestoexpandthescopeoftheschool,theschoolmanagementtoprovidemoreconditions.Havemadeadetailedsurvey,feasibilitystudiesandanalysis.SystemusestheB/Sstructureofthenetworktoestablishtheirownschools,educationalwebsites.Systemdevelopmentthroughsystemanalysis,systemdesignandsystemimplementationofthethreestages.Fromthedesignoftheproposal,afteradetailedinvestigationofthefeasibilityandnecessity,throughdetaileddesign,tryingtoimprovesystemintegrationandspeed;andimplementationphaseinthesystem,alargenumberofexpe
2024/5/22 22:19:21 20KB 在线考试系统 文献综述
1
AngularJSiswhatHTMLwouldhavebeen,haditbeendesignedforbuildingweb-apps.Declarativetemplateswithdata-binding,MVC,dependencyinjection.
2024/5/11 21:07:55 152KB Angular20210210b
1
MIMOOFDMSimulator:OFDM.m:OFDMSimulator(outerfunction)create_channel.m:GeneratesaRayleighfadingfrequency-selectivechannel,parametrizedbytheantennaconfiguration,theOFDMconfiguration,andthepower-delayprofile.svd_decompose_channel.m:Sincefullchannelknowledgeisassumed,transmissionisacrossparallelsingularvaluemodes.Thisfunctiondecomposesthechannelintothesemodes.BitLoad.m:Applythebit-loadingalgorithmtoachievethedesiredbitandenergyallocationforthecurrentchannelinstance.ComputeSNR.m:Giventhesubcarriergains,thissimplefunctiongeneratestheSNRvaluesofeachchannel(eachsingularvalueoneachtoneisaseparatechannel).chow_algo.m:ApplyChow'salgorithmtogenerateaparticularbitandenergyallocation.EnergyTableInit.m:GiventheSNRvalues,formatableofenergyincrementsforeachchannel.campello_algo.m:ApplyCampello'salgorithmtoconvergetotheoptimalbitandenergyallocationforthegivenchannelconditions.ResolvetheLastBit.m:Anoptimalbit-loadingofthelastbitrequiresauniqueoptimization.modulate.m:Modulatetherandominputsequenceaccordingtothebitallocationsforeachchannel.ENC2.mat:BPSKModulatorENC4.mat:4-QAMModulator(Graycoded)ENC16.mat:16-QAMModulator(Graycoded)ENC64.mat:64-QAMModulator(Graycoded)ENC256.mat:256-QAMModulator(Graycoded)precode.m:Precodethetransmittedvectorateachtimeinstancebyfilteringthemodulatedvectorwiththeright-inverseofthechannel'srightsingluarmatrix.ifft_cp_tx_blk.m:IFFTblockoftheOFDMsystem.channel.m:ApplythechanneltotheOFDMframe.fft_cp_rx_blk.m:FFTblockoftheOFDMsystem.shape.m:Completethediagonalizationofthechannelbyfilteringthereceivedvectorwiththeleft-inverseofthechannel'sleftsingularmatrix.demodulate.m:Performanearestneighborsearchknowingthetransmitconstellationused.
2024/5/11 19:05:15 1.65MB OFDM-MIMO,matlab,
1
共 255 条记录 首页 上一页 下一页 尾页
在日常工作中,钉钉打卡成了我生活中不可或缺的一部分。然而,有时候这个看似简单的任务却给我带来了不少烦恼。 每天早晚,我总是得牢记打开钉钉应用,点击"工作台",再找到"考勤打卡"进行签到。有时候因为工作忙碌,会忘记打卡,导致考勤异常,影响当月的工作评价。而且,由于我使用的是苹果手机,有时候系统更新后,钉钉的某些功能会出现异常,使得打卡变得更加麻烦。 另外,我的家人使用的是安卓手机,他们也经常抱怨钉钉打卡的繁琐。尤其是对于那些不太熟悉手机操作的长辈来说,每次打卡都是一次挑战。他们总是担心自己会操作失误,导致打卡失败。 为了解决这些烦恼,我开始思考是否可以通过编写一个全自动化脚本来实现钉钉打卡。经过一段时间的摸索和学习,我终于成功编写出了一个适用于苹果和安卓系统的钉钉打卡脚本。
2024-04-09 15:03 15KB 钉钉 钉钉打卡