swing

最让你印象深刻的模拟电路是什么电路?这个电路巧妙在哪儿?

元气小坏坏 提交于 2021-02-15 10:56:41
@匿名用户 对我而言,绝对是Paul R. Gray经典的bootstrap,没有之一,简直让人拍案叫绝。 电路用在各种ADC之前的Sample电路,可以让ADC实现rail to rail的input,sample电路的工作电压超过Vdd,极大的减少了了setting time,而且几乎没有reliability的问题。 电路里没有任何一个器件是可以被减少或者改变位置的。此电路直接使得ADC的发展往前跃进了一大步,现在已经几乎成为除ΔΣ之外各种ADC的标配,成为历史上最经典的模拟电路之一。当然,电路原理一眼看去也不是很好理解。 工作波形看着都让人舒服: @TANG XKEPHY 个人非常喜欢那些实现起来非常简单,性能却相当好的电路。 1.switch cap 的CMFB 仅仅4个电容加6个开关就实现了CMFB,非常简洁,且几乎不会影响OPAM本身像output swing,gain之类的spec,非常高效。 2. Data Weighted Averaging 基本思想是快速遍历DAC中的每一个电流元从而减少电流元mismatch对ADC信噪比的影响,仅仅通过几个简单的数电模块就实现对电流元mismatch的first order noise shaping,非常巧妙。 @原子弹lll 本科那会儿对我影响最深的就是万能的H桥电路,驱动电机正反转,妥妥的好用而且实惠

Java随笔

寵の児 提交于 2021-02-14 23:28:43
1.switch 控制表达式支持的类型有byte、short、char、int、enum(Java 5)、String(Java 7)。 2.nagios+python 系统监控 3.RestTemplate对接 4.工作流activity 5.swing theme swing theme http://www.open-open.com/61.htm napkinlaf http://napkinlaf.sourceforge.net/ jtattoo http://www.jtattoo.net/ //change theme core code UIManager.setLookAndFeel("com.seaglasslookandfeel.SeaGlassLookAndFeel"); SwingUtilities.updateComponentTreeUI(ShowTabPanel.this);//ShowTabPanel extends JFrame 6.数据库连接池proxool 7.修改.class文件:jclasslib.jar 8.打包插件fatjar 9.EJB事务传播属性 https://www.ibm.com/developerworks/cn/java/j-lo-springejbtrans/ 10.Jvm分析工具

Java线程面试题 Top 50

倖福魔咒の 提交于 2021-02-14 17:40:18
原文链接: http://www.importnew.com/12773.html   本文由 ImportNew - 李 广 翻译自 javarevisited 。欢迎加入 Java小组 。转载请参见文章末尾的要求。   不管你是新程序员还是老手,你一定在面试中遇到过有关线程的问题。Java语言一个重要的特点就是内置了对并发的支持,让Java大受企业和程序员的欢迎。大多数待遇丰厚的Java开发职位都要求开发者精通多线程技术并且有丰富的Java程序开发、调试、优化经验,所以线程相关的问题在面试中经常会被提到。   在典型的Java面试中, 面试官会从线程的基本概念问起, 如:为什么你需要使用线程, 如何创建线程,用什么方式创建线程比较好(比如: 继承thread类还是调用Runnable接口 ),然后逐渐问到并发问题像在Java并发编程的过程中遇到了什么挑战,Java内存模型,JDK1.5引入了哪些更高阶的并发工具,并发编程常用的 设计模式 ,经典多线程问题如生产者消费者,哲学家就餐,读写器或者简单的有界缓冲区问题。仅仅知道线程的基本概念是远远不够的, 你必须知道如何处理 死锁 , 竞态条件 ,内存冲突和线程安全等并发问题。掌握了这些技巧,你就可以轻松应对多线程和并发面试了。   许多Java程序员在面试前才会去看面试题,这很正常。因为收集面试题和练习很花时间

Click a button to open a new JFrame / GUI,

时光怂恿深爱的人放手 提交于 2021-02-13 17:34:25
问题 I seem to not be able to find a way to get my code to work. I am making a program and until now everything was working, i have some buttons and they do what they should. But now i added a button that when a user click it, it should close the current GUI and open a new one. I also want to point out that i created a new class for this new GUI. The other GUI class that i want to call is the GuiCrafting , in that class the GUI is also all coded, and works if i call it on the Main . My question is

Click a button to open a new JFrame / GUI,

走远了吗. 提交于 2021-02-13 17:32:33
问题 I seem to not be able to find a way to get my code to work. I am making a program and until now everything was working, i have some buttons and they do what they should. But now i added a button that when a user click it, it should close the current GUI and open a new one. I also want to point out that i created a new class for this new GUI. The other GUI class that i want to call is the GuiCrafting , in that class the GUI is also all coded, and works if i call it on the Main . My question is

Eclipse进行可视化插件——WindowBuilder的安装

泄露秘密 提交于 2021-02-12 19:25:57
https://blog.csdn.net/yerenyuan_pku/article/details/82861589 WindowBuilder插件的简单介绍 大家都知道在做窗体程序的开发中,传统的Java语言在开发窗体应用程序中仅靠代码语句来实现对控件的控制显得不够灵活和准确,难以高效的开发具有良好用户界面的应用程序,所以我们应该寻找Java中可以拖拽控件来实现窗体绘制的插件。所幸的是找到了一种还算好用的插件——WindowBuilder,它是一款基于Eclipse平台的双向Java的GUI设计插件式的软件,它具备SWT/JFACE开发、Swing开发及GWT开发三大功能,是一款不可多得的Java体系中的WYSIWYG工具。 下载 打开浏览器,在地址栏中输入网址:http://www.eclipse.org/windowbuilder/。 单击Download按钮。 在打开的网站中单击如下link。 接着跳到一个下载页面,点击Download按钮进行下载即可。最后下载到的zip压缩包为repository.zip。 WindowBuilder离线安装 由于下载到本地之后是一个zip压缩文件,所以可离线安装WindowBuilder插件了。安装步骤如下: 打开Eclipse,Help→Install New Software...,出现如下图所示界面。 点击Add按钮

how to set Jframe for 5 second

纵然是瞬间 提交于 2021-02-11 17:52:45
问题 I'm using netbeans 7.1.1, to create a JFrame. I want to automatically dispose the JFrame 5 seconds after calling setVisible() . How can I do this? 回答1: HINT Use Swing Timer to wait for 5 seconds before calling setVisible(false) or dispose() whichever way you want it implemented. Hidden/Disposed 回答2: Did u do your research on this? Seems straight forward. new Timer().schedule(new TimerTask() { public void run() { // this should be final jframe.dispose(); } }, 5000); 来源: https://stackoverflow

Component setSize method in FlowLayout object

混江龙づ霸主 提交于 2021-02-11 17:24:17
问题 I'm currently making a GUI that makes use of the FlowLayout class. Now, this class is meant to allow components be set by their prefer sized methods and I believe, isn't supposed to have priority in setting the component size. However, when I used a setSize method for a JTextField, the FlowLayout object didn't seem to recognize the change size command. But when I used the setColumn method, the FlowLayout object did respond to the change in size command. Why is this? 回答1: FlowLayout object

Java: Method wait for ActionListener in another class [closed]

我怕爱的太早我们不能终老 提交于 2021-02-11 17:23:41
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 7 years ago . Improve this question I am making a board game. One class contains main UI (save, load, Labels etc.), and another class contains the actual board game buttons(8x8 array of buttons). I'd like the first class to wait until all the buttons in the second class are pressed and then continue with the

cannot find symbol in JButton

女生的网名这么多〃 提交于 2021-02-11 17:19:27
问题 my problem is that it cannot find the symbol but i already declare the 'r1button' before that class. already googled similar problems but cant seem to find one. im getting error in the 'e.getSource()==r1button' part. package projectwindow; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class ProjectWindow extends JFrame { public static void main(String[] args) { JFrame nframe = new JFrame ("Bus Reservation"); nframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);