需要一些帮助来计算串联并联电路的应用! [英] Need some help for a application to computation of series parallel circuits!

查看:65
本文介绍了需要一些帮助来计算串联并联电路的应用!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的名字是WanYee,我需要一些关于我目前正在做的应用程序的帮助,该应用程序就像一个计算器来查找串联并联电路的当前电阻......我的问题是,如果我有两个名为系列的按钮。 &安培; 并行,当用户点击系列时,注意事项首先发生,但是当我按下按钮计算时,我想让我的计算按钮使用系列公式,我如何让我的计算?按钮知道它。很抱歉我的解释不好。


注意:我使用的是Swing,NetBeans IDE 6.1! TY,帮助表示赞赏!

Hi, my name is WanYee, i need some help on an application i am currently doing, the application is like a calculator to find current resistance and etc... of a series-parallel circuit, my problem here is, if i have 2 buttons named "Series" & "Parallel", when the user clicks on "Series" noting happens first, but when i press the button "Calculate", i want to let my calculate button to use the series formula, how do i let my "Calculate" button knows it. Sorry for my poor explanation.

Note: I am using Swing, NetBeans IDE 6.1! TY, Help is appreciated!

推荐答案


您好,我的名字是WanYee,我需要一些关于应用程序的帮助我我正在做的,该应用程序就像一个计算器,以找到串联电路的当前电阻等...我的问题是,如果我有两个名为系列的按钮, &安培; 并行,当用户点击系列时,注意事项首先发生,但是当我按下按钮计算时,我想让我的计算按钮使用系列公式,我如何让我的计算?按钮知道它。很抱歉我的解释不好。


注意:我使用的是Swing,NetBeans IDE 6.1! TY,帮助表示赞赏!
Hi, my name is WanYee, i need some help on an application i am currently doing, the application is like a calculator to find current resistance and etc... of a series-parallel circuit, my problem here is, if i have 2 buttons named "Series" & "Parallel", when the user clicks on "Series" noting happens first, but when i press the button "Calculate", i want to let my calculate button to use the series formula, how do i let my "Calculate" button knows it. Sorry for my poor explanation.

Note: I am using Swing, NetBeans IDE 6.1! TY, Help is appreciated!



阅读ActionListeners和actionPerformed方法。

Read about ActionListeners and the actionPerformed method.



我的名字是WanYee,我需要一些关于我目前正在做的应用程序的帮助,应用程序就像一个计算器来查找串联电路的当前电阻等...我的问题是,如果我有2个按钮命名为 ;系列" &安培; 并行,当用户点击系列时,注意事项首先发生,但是当我按下按钮计算时,我想让我的计算按钮使用系列公式,我如何让我的计算?按钮知道它。对不起,我的解释很糟糕。
Hi, my name is WanYee, i need some help on an application i am currently doing, the application is like a calculator to find current resistance and etc... of a series-parallel circuit, my problem here is, if i have 2 buttons named "Series" & "Parallel", when the user clicks on "Series" noting happens first, but when i press the button "Calculate", i want to let my calculate button to use the series formula, how do i let my "Calculate" button knows it. Sorry for my poor explanation.



基本上你的按钮应该是ButtonGroup中的JToggleButtons,即一个或

另一个应该被''选中''。你的计算按钮应该有一个注册的

ActionListener,用于检查两个第一个按钮中的哪一个被选中并执行相应的计算




亲切问候,


Jos

Basically your buttons should be JToggleButtons in a ButtonGroup, i.e. one or
the other should be ''selected''. Your Calculate button should have a registerd
ActionListener that checks which of the two first buttons is selected and perform
the appropriate calculation.

kind regards,

Jos


我了解ActionListener和ActionPerformed,但我不知道如何使用groupButton,我是新的对于NetBeans,这实际上是我的学校项目,我的讲师要求我们使用NetBeans,我们不知道如何使用它,因为我们使用记事本来学习Java编码,它在NetBeans中如此不同,所以我需要帮助。


谢谢你,非常感谢帮助。
I know about ActionListener and ActionPerformed, but i do not know how to use the groupButton, i am new to NetBeans, this is actually my school project, and my lecturer asked us to do using NetBeans, which we do not know how to use it, as we use Notepad to learn Java coding, its like so different in NetBeans, so i needed help.

Thank you, help is going to be really appreciated.


这篇关于需要一些帮助来计算串联并联电路的应用!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆