toolkit

Detect which monitor shows the Window

☆樱花仙子☆ 提交于 2019-12-04 15:13:01
问题 I do have main application JFrame window which can include different components. I open a self implemented OnScreenKeyboard when the user select a editable textfield. The OSK is also a JFrame window. When the user drag the main window to another monitor, the OSK should also be shown on the same monitor. For this i have to detect the monitor the main JFrame is shown. I try to find a method in Toolkit.getDefaultToolkit() but was not able to find someting. Do you know how i can detect the

How to make a swing app aware of screen size change?

眉间皱痕 提交于 2019-12-04 07:18:29
while my swing app is running I change the size of the screen (e.g. from 1024x768 to 800x600). Is there any event I can listen to to be notified about this? Alternatively I could check the screen size in every couple of second, but the Toolkit.getScreenSize() keeps telling me the old value. How could I get the real screen size after the change? Environment: Linux (tested on SuSE ES 11 and Ubuntu 9.04) I appreciate your help. Marton The following worked for me, but I'm on a Mac, so I can't say for sure that it will work on Linux: System.out.println(GraphicsEnvironment

Custom collection crashes DataGrid on Edit

放肆的年华 提交于 2019-12-04 05:46:12
Im currently trying to bind the DataGrid.ItemsSource to a custom RowCollection, which implements IList and INotifyCollectionChanged: Public Class RowCollection(of T) Implements IList(Of T) Implements INotifyCollectionChanged Private _List As New List(Of T) ... (Sorry for the VB code, I'll be translating all my code to C# soon.) Notice the class does not derive from any existing CLR collection. I created my own class because I need to override GetItemAt, in order to implement record paging. The Collection Internally adds and removes objects from its own private List _List . Now, I am able to

Extendscript Toolkit debugger fails: Can't start debug session

百般思念 提交于 2019-12-03 12:26:09
Not a programming problem per se, but rather a programming environment problem that I have been unable to find a solution to. The problem relates to Adobe's Extendscript Toolkit (both 3.5 and 4), but so far I haven't been able to solve the problem, so here I am... The error I get has appeared more or less over night. I didn't experience this problem yesterday, nor this morning. But exactly WHAT has happened is beyond me. I have removed preferences, I have uninstalled, reinstalled, created a new user, restored old preferences from Time Machine and I'm now pretty much lost for options. Basically

Toolkit Options for 2D Python Game Programming [closed]

陌路散爱 提交于 2019-12-03 09:02:54
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . What are some toolkits for developing 2D games in Python? An option that I have heard of is Pygame, but is there anything that has

How to get scaled instance of a bufferedImage

落花浮王杯 提交于 2019-12-03 07:20:23
I wanted to get scaled instance of a buffered image and I did: public void analyzePosition(BufferedImage img, int x, int y){ img = (BufferedImage) img.getScaledInstance(getWidth(), getHeight(), Image.SCALE_SMOOTH); .... } but I do get an exception: Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: sun.awt.image.ToolkitImage cannot be cast to java.awt.image.BufferedImage at ImagePanel.analyzePosition(ImagePanel.java:43) I wanted then to cast to ToolkitImage then use the method getBufferedImage I read about in other articles. The problem is there is no class such as sun.awt

Agent-based modeling resources [closed]

核能气质少年 提交于 2019-12-02 18:16:36
I would like to know what kind of toolkits, languages, libraries exist for agent-based modeling and what are the pros/cons of them? Some examples of what I am thinking of are Swarm , Repast , and MASS . darlinton I found a survey from June 2009 that answer your question: Survey of Agent Based Modelling and Simulation Tools Au. R.J. Allan Abstract Agent Based Modelling and Simulation is a computationally demanding technique based on discrete event simulation and having its origins in genetic algorithms. It is a powerful technique for simulating dynamic complex systems and observing “emergent”

Java beginner web-development toolkit/environment

夙愿已清 提交于 2019-12-02 17:20:52
I have been tasked to develop an interactive website using java & mysql: using servlets to retrieve & massage data, applets to do special handling of the data client-side, and to handle requests from the client for different data views. What would you recommend as an proper general-purpose toolkit/environment for web development using java. I need to know what to use for the following: Server side (tomcat?/?) CMS Editor / IDE General tools/utilities Directed (special purpose) tools/utilities Testing and QA tools/utilities/techniques Reference material (both on- & off-line) Please evaluate the

how to get string value entered in numericupdown silverlight control?

主宰稳场 提交于 2019-12-02 10:54:30
问题 I am using silver-light numeric up-down control. Control is set for decimal numbers. Maximum limit 28 and minimum limit is -28 Increment steps are 0.25 using this control in dutch culture so it accept value in the form 1,2 and converts it in to 1.2 3,5 and converts it in to 3.5 10,3 and converts it in to 10.3 27,5 and converts it in to 27.5 Now my issue is that when try to enter value 1.2 it converts it into 12,00 ( I want 1.2 should reflect to 1,2 ) How do I achieve it? or How do I get

推荐一款VC++程序员用的开源界面库Xtreme Toolkit

ぃ、小莉子 提交于 2019-12-02 08:49:13
现在软件的用户界面漂亮对于一个软件来说是至关重要的,我们现在看到的web应用,移动设备应用,界面都做到非常炫,并且用户体验非常友好。 那么作为VC++程序员可能平时考虑的更多的是软件的功能,甚至是底层开发,对于用户界面这块没有专门的人员来做,一般都是直接使用VC++自带的UI控件。今天我看到了一款codejock开发的Xtreme Toolkit Pro控件包,感觉它做的非常漂亮,而且还是源代码开放,开发经典的Office界面,VS界面都非常方便,适合开发企业使用的应用软件。 Codejock Xtreme Toolkit Pro 包含的主要组件达到了11个:Command Bars, Controls, Chart Pro, Calendar, Docking Pane, Property Grid, Report Control, Shortcut Bar, Syntax Edit, Skin Framework 和Task Panel。 现在的应用对于数据可视化也非常重要, Xtreme Toolkit Pro居然提供了一个图表组件,以前我们都是用系统自带的MSChart组件,这里边提供的 Chart Pro支持的图表种类非常多,而且配色特别漂亮。 了解 http://www.codejock.com 官网 来源: oschina 链接: https://my.oschina