如何在netbeans上使用jtable
我只是想知道如何在 netbeans 上使用 jtable,因为我正在苦苦挣扎,但我无能为力。 请帮我
I just wanna know how to use jtable on netbeans because I'm scruffing along and I could'nt do anything good. please, help me
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以在 google 上搜索教程,尤其是在 YouTube 上。 这完全取决于您想对桌子做什么。
如果您想将 Jtable 连接到数据库(例如 MySQL),那么这里是编码。 我添加了注释,以便您可以轻松理解。
请记住,您将需要进行导入,例如
如果想在界面运行或使用按钮时立即加载,您可以将该方法放置在构造函数中。
但如需了解更多信息和其他任何信息,请随时回复,我会为您提供帮助。
你也可以使用这个家伙频道,因为他非常好,他准确地解释了如何做吧。
希望这可以帮助你。
You can rather search for tutorials on google, especially on YouTube. It all depends on what you would like to do with the table.
If you want to connect your Jtable to the database such as MySQL then here is the coding. I have added comments so that you can easily understand it.
Remember that you will need to have imports such as
You can place the method in your constructor if want to load immediately when the interface is run or using a button.
BUT for more information and anything else, feel free to reply and I will help you out.
you can also use this guys channel as he is very good and he explains exactly how to do it.
Hope this helps you out.
以下将对您有所帮助,它是一个 Netbeans 项目。
The following will help you, it is a Netbeans Project.