Windows 1 « Interoperability « Java Swing Q&A





1. "Always on Top" Windows with Java    stackoverflow.com

In Java, is there a way to have a window that is "Always on top" regardless if the user switches focus to another application? I've searched the web, and all ...

2. Gui - Best way to navigate between windows?    stackoverflow.com

I try to build a gui (Swing) for a simple java application. The application should have a start window like a menu. From there I would like to navigate to several ...

3. How to automate a Java GUI?    stackoverflow.com

Is there a way to write a script on windows to automatically run a Java GUI and place a file name in the text box? I don't have access to the ...

4. RibbonBar with Windows7 look and feel?    stackoverflow.com

Do you know any ribbon with windows 7 look and feel?

5. What is required for building Java Windows Application to access Online MySQL Database    stackoverflow.com

Can anyone list the requirements (i.e. any books, tutorials, libraries etc) to build an application in Java, which could communicate with my MySQL Database which is running on web. I am running ...

6. Selenium is to Web UI testing as ________ is to Windows application UI testing    stackoverflow.com

I'm interested in UI testing a client only Java application. What is the most popular framework for doing so? What is your recommended framework? Also, why doesn't Selenium do ...

7. .NET MenuStrip with native Windows renderer?    stackoverflow.com

Does anyone know how to have the MenuStrips to rendered with native Windows look and feel depending the OS version the user is using? The current renders don't do it... I'm currently using ...

8. Remoting SWT GUI    stackoverflow.com

I'm trying to remote an SWT GUI (Eclipse RCP) from a Linux or Windows box onto a Windows Mobile handheld device. So far I've tried:

  1. RDP: Windows Terminal Services. xrdp server on ...

9. How to get windows logon credentials from a Swing application?    stackoverflow.com

How would I go about getting the Windows user credentials from a Swing application? I am working on an internal (corporate) Swing application. Currently the user has to login to the application ...





10. Java Swing: multiple windows    stackoverflow.com

I'm new to GUI programming, but need to create a multiple window GUI. Does anyone know of any good tutorial online or could you please show a simple code that will ...

11. How to abort windows shutdown in a swing application?    stackoverflow.com

I have a swing application and I want to present a confirmation box to user before the application is closed on windows shutdown and if the user selects cancel, the shutdown ...

12. How to put webpage into GUI windows in JAVA    stackoverflow.com

I've recently completed a project in Java,and showed it to my advisor. Forget about the detail about the project,my final output of the program is to simply output two webpages(one is translated ...

13. How do I make dynamic windows in Swing?    stackoverflow.com

I have a general question. I would like to have a window containing some buttons, radio buttons, text fields and so on. So, user can do something (write text, select options ...

14. SWT for Windows Mobile: UI Architecture    stackoverflow.com

I have a Windows Mobile application written in Java that uses AWT for the user interface. I am looking at porting the UI to SWT. I got a hold ...

15. Center Swing Windows    stackoverflow.com

I'm using Netbeans to develop a Java Swing application. How can I make it so that when the program itself and any other windows open they come up in the ...

16. Java Swing Run program when Windows startup    stackoverflow.com

Is there possible to code the Java Swing application to run when Windows start up?





17. how to use Windows NT logon credentials in java swing application for user Authentication?    stackoverflow.com

how to use Windows NT logon credentials in java swing application for user Authentication?

18. Creating Java GUIs that resemble the native Windows look and feel    stackoverflow.com

Is there a better package or external library out there that does a better job than javax.swing at resembling the native Windows look and feel? I want my Java GUIs to ...

19. GUI connection to java windows service    stackoverflow.com

I have written a persistent windows service in java that runs on boot. I have also written a GUI monitor in java that loads on user login. I would ...

20. How to write software for Windows using Java?    stackoverflow.com

I have just learned Java in my college. However, in that I can just write programs that are run in the command line. How can I create GUI softwares using Java, ...

21. GUI Framework for new Windows OSs    stackoverflow.com

Is there any swing like framework for the newer Windows OS's? Vista and & 7 apps have a different menuing and taskbar thing going and was wondering if there is ...

22. How can I determine the way to access certain third-party programs and resources from my Java app?    stackoverflow.com

I'm trying to open a PDF file after I generate a report. I mean, the user logs in (it's a Swing-based app) and clicks to generate a report. Then, a PDF ...

23. Disposing and closing windows in Java    stackoverflow.com

Okay, so this might be a stupid question, but I'm new to Java and trying to teach myself things the right way before I develop any bad habits. Anyway, I was writing ...

24. Create video from screen capture in java for 64-bit windows    stackoverflow.com

I'm trying to capture a video of a currently running swing application from within the application (the user presses a record button to start recording). I'm not sure how to go ...

25. What's a good programming language for a Windows GUI application that's not Java?    stackoverflow.com

I've been developing an application in Java for a few months now. The more I work on it, the more I realize what a pos Java really is, and the longer ...

26. Switching Between Windows in Java Applcation    stackoverflow.com

I am creating a Java Application using netBeans and Swing Gui Builder. I am trying to create an application that closes the current window and opens a new one when a ...

27. Java JAR + Eclipse    stackoverflow.com

i just created a JAR from eclipse (using Mac). Works fine in the Mac, however if i try to run the same JAR under Windows (VMWare) it won't show any GUI components ...

28. how to valid gaps as part of folder name in java swing for windows?    stackoverflow.com

when i give project name with gap then project is created but its all tasks can not be performed...project can not run....so, what i should do to make run all tasks ...

29. Odd Java Swing UI NullPointerException on Windows Server 2003    stackoverflow.com

I have a Swing application running on Java 1.6.0_20 on Windows XP (32-bit). I would like to publish the application via Citrix 3.0, running on Windows Server 2003. When ...

30. How to switch between application's windows and communicate with the controller?    stackoverflow.com

When writing a graphical interface, using Java, what's the appropriate way of switching between the different windows of the application, when clicking a button for example? I.E. what are the ...

31. java swing gui application with sql server 2005 as backend using windows authentication    stackoverflow.com

i get this error when i execute my java application in netbeans 7.0 ide, any help regarding this will be appreciated.

SQL Exception: com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to ...

32. Help with my first program that I am doing by myself, for myself    stackoverflow.com

Okay guys, this is/was my first project that I did all by myself, just for fun. I wanted to make a little program that made a GUI and ten gray balls. ...

33. Help deciphering this Fatal Error (Java)    stackoverflow.com

A fatal error has been detected by the Java Runtime Environment:

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x762a76d0, pid=4072, tid=2984

 JRE version: 6.0_26-b03
 Java VM: Java HotSpot(TM) Client VM (20.1-b02 mixed mode, sharing windows-x86 )
 ...

34. What is a good automated test tool to test UI of Java Swing based windows application    stackoverflow.com

I am looking for suggestions on automated testing tools that can be used to test GUI/Frontend of Java Swing based windows applications in automated fashion ?

35. What is a good automated test tool to test UI of Java Swing based windows application    stackoverflow.com

I am looking for suggestions on automated testing tools that can be used to test GUI of Java Swing based windows applications in automated fashion ?

36. Making windows with Java    stackoverflow.com

;) I'm trying to do a sequence of GUI windows in Java. Firstly, question about the design. I'm planning to have 8/9 similar types of windows:

  • a greeting intro with a timer
  • after ...

37. Base and extended windows in Java using inheritance    stackoverflow.com


I've got one class called WindowTemplate that is the base for other (more complex) windows. It is an abstract class and then I'm trying to use the "extend" trick to ...

38. Windows with Java swing - display problemS    stackoverflow.com

I would like to have a nice set of windows with proper alignment, pretty fonts and a working timer. Here is the code I have written so far (ignore the "a_" ...

39. How to interact with Windows GUI through Selenium    stackoverflow.com

My selenium based test-suite works fine while I was controlling just the browser. A new test case I need to add into the suite which requires interacting with Windows Browse/Upload file explorer ...

40. Java-Swing and Windows text size : fix the size of components    stackoverflow.com

When my-application users increase 'windows texte size' to 150% (picture), all components(text, buttons..) grow and application exceeds screen size. Do you have a suggestion to make GUI fixed(or all component ...

41. mvc with multiple windows design    stackoverflow.com

I am working on an application and i am using the MVC pattern. Currently my plan is to have an MVC pattern for each window that comes up. For instance, my ...

42. Explain the fatal error detected by java runtime EXCEPTION_ACCESS_VIOLATION    stackoverflow.com

Ive been working on my programs today and it was running fine this morning and then out of no where i received A fatal error has been detected by the ...

43. stand alone GUI windows    forums.netbeans.org

I made a GUI in netBeans but wanted to make it stand alone and I'm not sure what needs to be added to make it work, if anyone knows what needs ...

44. Run (F6) project with Windows look and feel?    forums.netbeans.org

Hello I am developing a interface with Netbeans 6.8 on Windows Vista. Netbeans by default make my forms with "Windows" look and feel, but when I Run the project (F6) it ...

45. change Look and Feel of GUI Java apps to Windows    forums.netbeans.org

Hi, how do I change the look and feel of the Java apps that I have made in the GUI builder in NetBeans to standard Windows and not the Java GUI? When I press "Preview Design" it is presented in Windows theme but when the program is actually run it is in the Java version. I.e. I want the one on ...

46. Distributed Testing Windows GUI/RHEL Servers Not Working    jmeter.512774.n5.nabble.com

I'm trying to setup a JMeter Distributed test. I have 4 Machines, 2 Running windows 2003 Server and 2 Running Redhat Enterprise Linux 4. All 4 machines are Using: JMeter 2.3RC4 JDK 1.6.0_02 They are all on the same subnet. I am using one of the Windows machines in GUI mode as a controller. It will control the other ...

47. Windows height    coderanch.com

48. sliding windows    coderanch.com

Hi! I wanted to know if someone knew how to create window or prompts that dont just pop up on the screen but scroll or sort of slide into view.Somewhat like if in msn messenger if u have got a new mail then a prompt neatly smoothly slides into view from the right bottom corner.can it be done in swings?? how ...

49. Java: Runtime.exec("cmd") want to run windows application    coderanch.com

hi everyone, pls help... I am currently writing a piece of GUI code using Swing on Windows 98 platform. I was wondering if a filepath is given (eg: C:\filename.doc), is it possible to launch a suitable application (Microsoft Word) automatically when a user click on the filepath? I know one way of doing it is to use: Runtime.exec("C:\Program Files\Microsoft Office\Office\winword.exe C:\filename.doc"); ...

50. Mac closes multiple windows    coderanch.com

51. how can we make a swing application executable for windows?    coderanch.com

The best way to make a Swing Application or and JAVA app executable is to use JAR files. java.sun.com has a tutorial on making JAR files. Currently, there is no solid way of making an EXE out of a group of CLASS files. Someone may tell you that Symantics IDE allows you to do this, but I have looked at the ...

52. Windows Look and Feel(urgent)    coderanch.com

53. Similar to windows MyComputer(urgent)    coderanch.com

How to get the list of drives in a machine.I want to display the list of drives [with drive label & size ] and then the list of files & directories [with size & no. of files] by double-clicking the drive.I wish to display them in a frame or window, similar to the windows My Computer.I want to display the file_size, ...

55. Multiple modal windows    coderanch.com

56. multiple windows open    coderanch.com

my main window has several menus(File, Edit, View, Help, etc). every menu has serveral menuitems(under Help menu, there is Help Topics, AboutBox). each muneItem can open a new window. The problem is the user can open as many windows as he wants without close the current one. What do i need to do to disable all the menus if there is ...

57. Windows and location    coderanch.com

58. Sizing windows dynamically    coderanch.com

The window generated by the code below has its size set by the following line: frame.setSize(new Dimension(300, 155)); I determined the size by trial-and-error for a 1024x768 display. But I'd like to set the size dynamically. I tried packing the main window but that didn't work at all, presumably because the BorderLayout doesn't lend itself to that. Will GridBagLayout give better ...

59. Windows Look and Feel    coderanch.com

It's not so much that it's not meant for that. It's that In order for you to get a Windows Look and Feel in Linux, MS would have to allow Sun access to some of it's source code so that the Windowing API could be transfered onto the Unix platform. And you know how that goes. You could however create your ...

61. GUI: Child windows (hide behind)    coderanch.com

62. MacLookAndFeel for Windows?    coderanch.com

That's the mac look-and-feel that is only (officially and legally) provided in the JDK (or JVM) downloads from Apple itself. ( However, since Java is platform independent, and the mac look-and-feel looks like any other to Swing, it is technically possible to download the JDK from Apple, and with some minor adjustments have the mac look-and-feel running with any Swing app. ...

63. closing windows    coderanch.com

As part of an upcoming development effort it looks like the users would like the ability to click a link and launch another window/page. Subsequent pages may be launched from within the newly launched pages or the orginal page. Is there a means that you can point me to which will permit me to keep track of the windows being opened ...

64. Destroying Windows    coderanch.com

Hi all, I've an application in which there's one main JFrame-the initial w/d. Depending on some actions, i need to pop up different JFrames from this main frame. When i close these frames i want them to be completely destroyed. Wat happens is that if i reopen them, they hold the same text that was there before i closed them. Which ...

65. Flowing Windows    coderanch.com

66. SWT and Windows    coderanch.com

ive created my first little gui screen with SWT. This screen simply asks for a User and Password and then has a button to accept and try and log on to the system. What i would like to do is upon pressing the button and getting logged in, have the main screen disappear and a new gui screen appear. Does anyone ...

67. strange problem with swing based windows    coderanch.com

Hi I 've developed a chat client which is a swing based interface . There is a login .Once the user clicks on login after feeding the account info , the client communicates with the server and after the server sends and "OK" , the client login screen hides and a chat window( comprising of 2 text areas) opens up. Now ...

68. SWING/AWT windows not "clearing"    coderanch.com

I'm building my first SWING/AWT java program... so i'm an extreme noob when it comes to some things. Well i've come across my first really perplexing issue. At one point in the program, i call a funtion, which creates a window. To close the window ( in the function) i called "dispose();". Then, if i bring up another window, the jlabels, ...

69. Processing windows messages    coderanch.com

70. how to run an application in unix and display in windows    coderanch.com

This is a unix question/problem. If you are running it through telnet, you can't just popup a window. With telnet, all you have is a command line. There is a way to tell unix/X-Windows to popup the windows on a remote device but I can't tell you how. Do some searching on unix sites/boards for unix/X-windows help. This is not a ...

71. Users...who like to resize windows!!!    coderanch.com

73. Arranging windows horizontally/vertically    coderanch.com

I have a small app in which users can open a number of files in JInternalFrames (w/in the main JFrame). I know how to "cascade" the open windows, but I would also like the user to be able to arrange them horizontally and vertically (i.e. for comparing 2 files side by side). I have been searching the web for an example, ...

74. Working with Two Windows    coderanch.com

I wrote a JDBC GUI application that can change the passwords of Oracle users which called ChgPass. I wrote another GUI application that can authenticate to an NIS server with a username and password called Login. Both work well as separate programs. I am kind of a novice with multiple classes and multiple GUIs. I would like to consolidate the Login ...

75. Windows in SWT    coderanch.com

79. Awfull slow Swing (Windows/JVM issue?)    coderanch.com

Hi, I am new to this site (thank's to the great Java Books from Cathy & co ;-) ) and while I was working on my first Swing Application I noticed a really odd beahaviour. All (my own and third party) Swing programs (fe not eclipse) were terrible slow on my machine. If I started watching a video on the Windows ...

81. Multiple windows question    coderanch.com

82. Restricting Child windows???    coderanch.com

Hi, Problem :- In a gui there is a Button. Clicking on that opens a new window. If i again click on the button it opens new window.How can i restrict this?? How can get focus on same already opened window??? like making it active again.. hope the problem is clear!!! Thanks

83. how to create windows like posit notes?    coderanch.com

84. Iterating Over All Swing Windows    coderanch.com

Is there a ways that I can get the front window in my Java SE app and then iterate over all of my JFrames? For example, to implement a SaveAll command, I want to start with my front window and try to save it and then proceed to try to save all of my windows from front-to-back ordering. Kaydell

85. windows vs Mac look and feel issue    coderanch.com

86. Get x,y coords outside of windows/screen using mouselook technique    coderanch.com

When you move your mouse all the way to the left - it hits the left edge of the screen and stops - even if the user keeps moving his mouse to the left. In Java, there doesn't appear to be any way to detect that the user keeps moving his mouse "left". Basically, if the current mouse coords are 50,100 ...

88. Swing Windows Service    coderanch.com

Windows services rarely have an API that is visible to a user who happens to sign on. I don't know much about services (note: that isn't the topic of any of the forums here) but I vaguely recall that there is something you have to do to a service to make it have a visible user interface. Personally I wouldn't do ...

89. Connecting two GUI windows    coderanch.com

How should I connect two GUI windows? Ex: I have window1 (components added to panel1 and panel1 added to frame1) with fields for login id and pwd and a login-button. After I enter data and click the button I want to see window2 (components added to panel2 and panel2 added to frame2) which shows some other information. To get this behavior, ...

90. How can I use the Class JpcapCaptor loopPacket method without blocking my Windows app    coderanch.com

If I use the Class JpcapCaptor processPacket method this application gets a run-time "java.lang.NoSuchMethodError: setRoutingOption" error and it closes, and no packets are captured or displayed. I would like to be able to use this method because unlike the Class JpcapCaptor loopPacket method it will not block the application's event dispatching thread which is used by its graphical user interface and ...

93. Multiple windows in an app - best way?    coderanch.com

I am working on an application that will open multiple windows, and I was wondering about the best design approach to this problem. Here's a general flow of the application (let's assume a college student system for ease of stating the issue): - The main application is launched and presents a window with a combo box listing students. The user selects ...

95. Dispose windows    coderanch.com

Hi Darryl, thankyou very much for reply and code correction.. my exact requirement was that what you expected.. i want to purge the previously opened but no longer reachable Frames.. in our application i'm adding a glassPane to the top most window which shows a progressbar when the server hit was done.. for that i'm getting the child windows using frame.getOwnedWindows(), ...

96. Probelms running Swing application using Java 1.6 and Windows-based X Server    coderanch.com

At our company we run a third-party Java-based GUI application on one of our Linux server machine, displaying the application to our local Windows work stations using the Cygwin X Server. We noticed a few problems with a new version of this application and was able to narrow it down to the following conditions: 1. Java Swing application running on a ...

97. Closing all open windows and opening new one    coderanch.com

A word of caution: the array returned by that static method includes references to windows that are no longer visible or even displayable -- even windows that are no longer in scope. On all current Sun (Oracle?) JVMs a call to System.gc() removes those, but that behavior isn't mandated by the JLS nor the JVM spec. Code calling this method without ...

99. Nested windows    coderanch.com

I need to create a GUI like there should be a toolbar window on the left side, and a drawing pane which also is a window. The toolbar and drawing pane must be inside the main window of the application. How do i do tat? I cannot add a frame within a frame. If i use panels, they don't have a ...

100. application preventing windows from shutting down    coderanch.com

Sorry, I couldn't get your suggestion to work. Here's the complete source code. About as simple as you can get. import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Point; import java.awt.Rectangle; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.WindowEvent; import java.awt.event.WindowListener; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JRootPane; import javax.swing.SwingUtilities; import ...