Linux « Interoperability « Java Swing Q&A





1. Java: Handle logoff or shutdown on Windows and Linux    stackoverflow.com

Is there a way for a Java GUI application to respond to system shutdown or logoff events, other than to use JNI? (On Windows, the JNI would use WM_QUERYENDSESSION, on ...

2. Differences between Java and C# and .NET    stackoverflow.com

Apologies in advance for the possible flame thread, but that's not what I'm going for. I've only ever done serious development in Linux using C and C++, and I'm looking to take ...

3. Multiplatform (Win, Mac, Linux) development environment to achieve native look-and-feel? (Just as Dropbox)    stackoverflow.com

I've noticed that all betas for Dropbox are released simultaneously for Windows, Mac and Linux. How do they do that? Anyone knows which platform they're using? I'm aware that there are ...

4. Eclipse fails to start via an application launcher    stackoverflow.com

The problem: elcipse-3.5.0 (Galileo) spits with an error when I try to launch it by clicking its launcher. The curse sound like this:

A Java Runtime Environment (JRE) or
...

5. Idiomatic application data for Mac vs. Windows vs. Linux    stackoverflow.com

I'm a Mac user, so I know that for Mac OS X, I'd like my games packaged up in a nice .app bundle (like Aquaria did, for example). But what is ...

6. How can i monitor system statistics in kubuntu using Java?    stackoverflow.com

i am doing a project related to configuration and memory analyzer for kubuntu. i want to display the system statistics information like CPU usage, RAM usage and proceses etc. graphically using an ...

7. How to launch a website in Java Swing, in a way that works in Gnome and KDE    stackoverflow.com

As outline in a previous question I asked. A website can be launched by doing this:

Desktop.getDesktop().browse(new java.net.URI("www.google.com"));
This works fine in Ubuntu(gnome), but it doesn't appear to work in OpenSUSE(KDE flavour). There ...

8. how to launch java GUI test from linux    stackoverflow.com

-java -classpath<> <classname> in the ".bat" file to launch java test from cmd windows how to do that using perl to launch java test from linux ?

9. A classic StackOverflow : Java Swing    stackoverflow.com

Greetings everyone! I programmed GUI Application using Java Swing under Windows. Under windows everything works well. Now I am trying it under Linux (using distribution Linux Mint 7). I am getting and nasty StackOverflowException, when ...





10. Under Netbeans/Java Swing, how do I run the program as GTK+ Look and Feel?    stackoverflow.com

I've been trying to Google this answer with no results. I keep on finding answers on how to make Netbeans run in a GTK skin .... this is NOT what I ...

11. SWT ExpandListener executes before collapse occurs on Linux    stackoverflow.com

This is a simple executable snippet that shows the issue. When using the ExpandBar the desired outcome is to resize the window when there is a collapse or expand. ...

12. Which one to use Java Swing or Gtk+ for gnome desktop application?    stackoverflow.com

Hi i am considering developing gnome desktop application with graphical user interface i know gtk+ is the first choice if you especially developing for gnome environment and end user also consider ...

13. Make the java systray look prettier in Linux    stackoverflow.com

I'm making a Java Application on Linux that uses sytray using Java 6 and Swing. The app looks great (uses the system look and feel) but the systray looks ...

14. How to run multiple simultaneous bash shells without a GUI?    stackoverflow.com

Is it possible to have several command prompts running simultaneously and switch between them, without using a GUI? Background I have installed CentOS-5.5-i386 without any extras, so I have a bash command prompt ...

15. A simple way of embedding a video in my Swing GUI    stackoverflow.com

I've been looking for a while now for a dead simple way of embedding a video into my Java Swing GUI. Am I chasing after the wind? Ideally, I would love ...

16. How can I launch an external application from a Java GUI in Linux?    stackoverflow.com

I'm creating a Java application that helps people to learn Chinese. I've already created a Java GUI but I'm struggling to work out how to create a button that launches an ...





17. Java on Linux: maximize a non-Java GUI application    stackoverflow.com

From Java code, is there a way to maximize the window of a different GUI application? I have access to Process objects created for these other programs, as well as ...

18. How to connect swt browser in eclipse linux environment    stackoverflow.com

Thanks for previous replies, I am using Eclipse plusar helios version, i want to install SWT webkit in my eclipse. I dont know how to install in linux version, i searched ...

19. which WindowBuilder Swing widget should I use to make a System.out "console" display?    stackoverflow.com

I do not want to give up visibility to all the data the program prints to System.out as I upgrade a linux console app to a Swing app. If I ...

20. what happens to standard output in a Swing program?    stackoverflow.com

As a test I wrote to linux's standard output from a Swing program and there is no visible console. It does not crash. No exception is thrown. Is ...

21. Java Swing Application L&F in KDE environment (Red Hat Linux)    stackoverflow.com

My Java Swing application is not showing system look and feel (KDE) while running on Red Hat Linux. It is showing the default (and also ugly) Java look and feel when ...

22. Kiosk mode for Linux Java Swing application    stackoverflow.com

How can I disable OS-level keyboard shortcuts (e.g. Alt-Tab, Ctrl-Alt-Left/Right, etc.) on a [Ubuntu] Linux machine? I'm developing a full-screen Java Swing app and don't want the user to be able ...

23. Native C code calling from Java Swing GUI    stackoverflow.com

I am trying to read and write to the parallel port, I implemented the writing and reading in C, now I want to import that code into a java GUI application. I ...

24. How do I open a .bat containing a GUI in a java program in Linux?    stackoverflow.com

everyone. I'm quite new here so please be tolerant if I make any mistakes. I have a .bat file containing a command line to open up a .jar file that contains a ...

25. Swing GUI Builder on Linux    forums.netbeans.org

The Swing GUI Builder seems to be missing on the 6.7.1 Linux release (all technologies bundle). This seem strange because is it is there for the 6.7.1 windows release. The "GUI ...

26. Netbeans 6.9 OpenSuse 11.2 linux: LookAndFeel cannot be set via startup param --laf some.look.and.feel.Class    forums.netbeans.org

In 6.8 it was possible to set the look and feel that way, as far as I remember it worked in some 6.9 beta version too, but now using this --laf ...

27. Netbeans is very ugly on Linux! How to change its Look and Feel?    forums.netbeans.org

Netbeans achieves the prowess of being uglier than its Windows counterpart. Nevertheless, in Windows, this looks acceptable. I'd like to know how to change the Look and Feel of Netbeans. At least can I install the Nimbus Look and Feel? I'm using Kubuntu 11.10.

28. Control-period equivalent on non-gui linux    jmeter.512774.n5.nabble.com

What signal to send to jmeter to tell it to shutdown and exit? On win32 the keyboard command to do same is control-. Although that doesn't always work it's a more graceful approach. ____________________________________________________________________________________ Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games. http://sims.yahoo.com/ ...

29. JMeter - trying to use remote from Windows GUI to Linux jmeter-server    jmeter.512774.n5.nabble.com

JMeter JMeter - User JMeter - trying to use remote from Windows GUI to Linux jmeter-server Classic List Threaded Locked 6 messages Matt-155 Reply | Threaded Open this post in threaded view | Report Content as Inappropriate JMeter - trying to use remote from Windows GUI to Linux jmeter-server Hi ...

30. Non-GUI test in Linux server    jmeter.512774.n5.nabble.com

Hi, How to run Non-GUI mode test in Linux? Regards, Richa ________________________________ This e-mail is confidential, the property of NDS Ltd and intended for the addressee only. Any dissemination, copying or distribution of this message or any attachments by anyone other than the intended recipient is strictly prohibited. If you have received this message in error, please immediately notify the [hidden ...

31. Run AWT program on Linux from telnet!!!    coderanch.com

Hi, I need your help! What I want to do is that my Java program is running on Linux and called from telnet. The program will just draw some charts and save them as PNG file by using a pure java PNG encoder, WITHOUT displaying. But when I run it using telnet, I got this: Exception in thread "main" java.lang.InternalError: Can't ...

33. Swing on Linux    coderanch.com

Hi everyone Here is a problem I encountered. Swing based programs I created on linux compiled smoothly. When it is executed there is the following message on console repeats itself. p-*-adobe-fontspecific] Font specified in font.properties not found [-symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] finally I have the GUI. It works ok. Could any one explain what might be the reason. Should I install additional fonts. thankyou ...

34. GUI on Linux    coderanch.com

Is it really possible to construt a GUI in JAVA for ANY platform? I designed a GUI in Windows and when I ran it in Linux's KDE, things didn't line up properly. Granted I used a Null layout, but the fonts were even all different. Is that because Windows and KDE default to two seperate fonts? Will specifiying one font correct ...

35. Java font problem on Linux    coderanch.com

I am working on a Java program with a GUI. I installed Redhat 7.2 and Kde and tried to run my java program just to check if it java is actually Platform independent. Though it worked but it looked so different from what it looked on Win2k. The fonts were the main problem. Placement of other GUI objects were also a ...

36. System.out messages in Linux not appearing...    coderanch.com

For debug purposes I have several System.out calls to send messages to the display. When I run under Windows all is fine. When I run under Linux the messages don't show up in the terminal that I launched the app from. Why? I do see Java exceptions and errors showing up there, but none of the System.out calls that I made. ...

37. LINUX & JAVA    coderanch.com

I don't quite get what your trying to say. As long as you have the Linux version of the SDK you can compile and run the Java like you normally would on the command line with javac and java. Or for jar packages you would say java -jar *.jar as long as Main-Class is specified in the jar manifest.

38. Swing PLug-in for Linux: URGENT    coderanch.com

39. How is Swing Performance on Unix/Linux Compared to Windows?    coderanch.com

I do not have a unix/linux/mac OS X computer, so i have never been able to try Java's Swing on those platforms. I have used it on windows, and for the most part, the performance is not great (although jEdit is in Swing and has very good performance - but I do have alot of RAM) So for everyone out there ...

41. Graph Plotting using java under linux?    coderanch.com

42. Swing on Linux...problem!!!!!    coderanch.com

Hi everyone, I've written a piece of code which uses swing and Java Media Framework. it works fine on Windows. But it's giving errors on linux. I've installed j2sdk1.4.2 and JMF2.1 on linux 9.0. But javac is not able to locate javax.swing and is unable to import the package javax.media. Can some one tell me what's wrong? Thanks. Regards Jyothsna.

44. EmptyStackException on Linux    coderanch.com

I have some code that runs great on windows but when I try it on Linux (RH7.0) I get an EmptyStackException. Can anyone help? Following is some snippets from the offending code. here's where I instantiate the dialog. . . . case 14: if (mode<4) { String message=action.substring(action.indexOf("message=")+9,action.lastIndexOf("\"")); panels.add(new ShowMessage(this,message)); } else { panels.add(new BasePanel(this)); } break; . . . here's ...

45. Headless Exception in Linux    coderanch.com

Hi; I am resizing an image using some classes from the AWT. On this line: GraphicsDevice gs = ge.getDefaultScreenDevice(); I get a HeadlessException in Linux, works fine in Windows. How can I work around this? Below is the entire code: if ((imageThumb.getHeight() >= 76) || (imageThumb.getWidth() >= 76)) { myLogger.debug(ImageUploader.class.getName() + "Need to scale for thumb"); if (imageThumb.getHeight() > imageThumb.getWidth()) resizeWidth ...

46. Different Swing behaviour in Windows & Linux    coderanch.com

Hi , I have an IDEFIX Application(J2ee) whose Client is built on Java Swing. Addtionally this application had to invoke an 3rd party Software. On invoking the 3rd party Software from this application & on load of the 3rd party Software.The Swing Behavior of the client of IDEFIX Application behaves in a different way . for Eg : the Disabled buttons ...

48. Deploy SWT in linux environment    coderanch.com

I currently developed a SWT application in Windows environment. After setting up the libraries, dll and manifest, I managed to create an executable file using NSIS for the application to run in Windows environment. Now, I plan to have this SWT application running in Linux environment and I have limited knowledge to do so. I don't want to run it using ...

50. Linux SWING Calculator is Small GUI bad    coderanch.com

hello! Here's my updated source (always uptodate! Like CVS): http://69.29.251.158/indexer/index.php?path=Z_Tree/Blazatz/ProCalculator Calculator.java: http://69.29.251.158/indexer/highlight.php?path=Z_Tree/Blazatz/ProCalculator/Calculator.java import java.awt.Color; import java.awt.Component; import java.awt.Container; import java.awt.Dimension; import java.awt.Font; import java.awt.GridLayout; import java.awt.Insets; import java.awt.Toolkit; import java.awt.Window; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import javax.swing.Box; import javax.swing.BoxLayout; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JTextField; import javax.swing.UIManager; import javax.swing.UnsupportedLookAndFeelException; /** * A GUI interface for CalculatorEngine. ...

52. Java - Linux    coderanch.com

53. How to copy a file from linux to windows and vise versa using java swing    coderanch.com

Before you can write that code, you have to decide how you plan to do it. Do you plan to map a drive on the Windows box to the Unix box? Or is there an FTP server or an HTTP server on the machine which you aren't going to run your code on? Or what? And I will move this post ...

54. GUI looks different on Windows and Linux as compared to Mac    coderanch.com

Hi, i developed a GUI on my Mac using Netbeans Mattisse. It looks fine on Mac where as when i try to run the application on Windows or even on Linux the look and feel is completely different. The font looks different, the color looks different, the borders look different and is a kind of really bad when compared to the ...

56. Default font is bigger on Mac/Linux than Windows    coderanch.com

I've been programming what I hope to be a cross-platform Swing application on Windows XP, and when testing on Mac/Linux, I've noticed that the GUI doesn't quite line up, regardless of layout, and despite using the same Metal look and feel on all platforms. The crux of the problem is that the fonts on Mac/Linux take up more horizontal space by ...

57. Exception regarding Linux environment    coderanch.com

Rob Prime wrote: yekkala krishna wrote:I am connecting to my solaris system with the help of putty.Is it right? And there is the problem. PuTTy is a text-only client, and it is simply unable to show the user interface. To be able to this you'll need to connect to the Solaris machine's windowing server - if it has any. I remember ...

58. Running Linux    java-forums.org

I have develpoed swing desktop application using netbeans IDE 6.5.1 Automatically the dist folder was created. it is running in netbeans IDE now i want the project to run in linux i hava dist folder in that MCQ_*.jar files is available. in this project user creation xml files are available. placed these files separately since these files are often updated by ...

59. GUI Front End for Linux Tools    java-forums.org

60. connecting to linux using swings and https    java.net

i am having a linux server, i need to connect to this linux server using a swing application and the https from client system (which may be a windows system or a linux system. i will have to use crypto library like JSSE. but i am stuck up how do i proceed. how do i go about this project? can any ...

62. execute linux comands with swing aplication    forums.oracle.com

63. Problem running Java GUI apps in Linux    forums.oracle.com

64. Java Swing on Linux    forums.oracle.com

I am new to Java programming. I have installed Java version 1.6 on both my Windows Vista and Linux operating systems. It works fine on Windows Vista. On Red Hat Linux version 4.2.1.6 with Gnome v 2.8 ( I think ) the "Hello Java" program works fine, but when I try to use Swing classes I get an error.

66. developed Swing App in RedHat Linux, will it work in IBM AIX 5.2/3    forums.oracle.com

Hi All, i have developed a GUI Application using Java 5 for Linux in RedHat Linux, which is not working as of now. i am getting headless Exception. can i use this Application for IBM AIX 5.2/3 with out changing any? or will i need to develop using IBM suplied JDK? plz can any on help out?

67. Swing jar application does not load on remote Solaris/Linux machine    forums.oracle.com

I am logging onto a remote server where I am trying to put my swing application packed in a jar file named Rajiv.jar bash-3.00# java -jar Rajiv.jar Java Accessibility Bridge for GNOME loaded. Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it. at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159) at java.awt.Window.(Window.java:317) at java.awt.Frame.(Frame.java:419) at javax.swing.JFrame.(JFrame.java:194) ...

68. GUI that open a Linux terminal, run commands and retrieve results    forums.oracle.com

Hi I am currently designing a GUI that should make it easier for users to execute a command line statement and read the information that is returned. I should not have any issues with the actual GUI, but I have not been able to find any examples to help with how to open a command terminal, enter a command and retrieve ...