


Hello,to be more specific: Is it dynamically possible for example, to map 4 neighbour pixels to a virtual single pixel? So that MouseEvents and all Coordinates correpond to this virtual resolution?Any help appreciated!Thanks in advance!alex ...
我用swing组件-- JTextField的 setText(aaa) 方法;其中aaa 是一个String 类型, String aaa= "中文汉字";aaa的值是中文,在window下没问题, 但是放在solaris上出问题了, 是乱码!有办法能帮忙一下吗?但是奇怪的是我的solaris完全是中文的!象 JLabel cfgLab = new JLabel("配置文件"); JButton testButton= new ...
I have 2 arrays of radiobuttons, lRB[] and, corresponding to that array, zRB[][], ie when lRB[1] is selected, the buttons in zRB[1][] are displayed in zPanel and the previous buttons displayed in zPanel are removed. It is working fine but my problem is:The "zPanel.revalidate()" (or ...
There is an application, which acts as a GUI-server.A client can connect to this server and askthe server to produce and show a JFrame withits content. But the problem is that the JFrame does notalways show in front of the other windows.The client can be written in any programming languageand ...
Is it possible to create a window in Javawhich will be displayed over the taskbar?I want to use the windows systray with aswing menu. The menu must not be partiallyhidden by the taskbar. By default windows(like JPopupMenu) created from Java arein lower z-order then the taskbar.Anybody an idea? ...
hi,my problem is that once i'm able to zoom my image ,if i want to zoom it further either on mouse click or selecting a rectangle again on mousedrag,it throws an exception coz i'm not able to get either size or bofferedimage from the once zoomed image.do u have any suggestions:i'm sending my ...
In my application i have a JPanel filled with Swing components. I have to zoom this JPanel within a JScrollPane.I already wrote a JZoomPane, which has a paint method likepublic void paint(Graphics g) {if (zoomFactor != 1) {Graphics2D g2 = (Graphics2D)g;g2.scale(zoomFactor, ...
Hi,I need to add zoom functionality to my swing based editor. My editor contains a JScrollPane constructed with a JDeskTopPane as the constructor argument.The JDeskTopPane contains further controls like JTextFields, JLabels , Shapes etc. For zooming functionality the approach I'm using is to ...
Hello all who are interested,I found some helpful tips in the Swing forums on zooming (scaling) which have helped towards my current university project. I am glad to say after 3 days solid of trial and error X-programming (well, I'm not glad about that) I can make a contribution. I have ...
I have JPanel (actually a subclass of JPanel, but this shouldnt really matter) and there are several subcomponents. I need to be able to zoom in and out on this Panel. I also need to alter mouse events since there are buttons which must still work. Is there some event map that can do this(i can ...
How to implement zooming function using java swing, say for a picture,any example for that?thanx...
Hello all,Is there a way to zoom in and out on an image in a JFrame? I did some research on this and still cannot find the answer. Hope you can help.Thanks in advance,=) Steven...
The zooming implemented by the code below appears to zoom the rectangles drawn in the y coordinate as required, but there appears a blank area underneath the rectangles that gets worse as you zoom. Could someone try and help me understand why this is happening please.package a;import ...
Hi,I am stuck! I'd appreciate it if you can get me unstuck ...Below a trimmed-down .java file with a "main" that shows my problem. I create a JFrame. In the contentPane of this JFrame I put a JScrollPane, and in that JScrollPane I put a JPanel. I then show() the JFrame and set the ...
i am trying to create a JeditorPane that can zoom a graph that i input, at the moment i am just adding squares to it manually till i debug this zoom im trying to acheive. its the first time ive had exposure to this and its driving me nuts, if anyone can help it would be greatly appreciated.at ...
