How to open mycomputer and control panel on button click? - java

I am developing a application in java swing? In which I need a notedpad. I want to give some extra feature in that notepad, as I want to open mycomputer, control panel, browser etc. directly from the notepad menu? Can you help me someway to do this task?

Also consider the features in java.awt.Desktop.

You can execute external programs in Java with Runtime.getRuntime().exec().

Related

Is it possible to change the icon of a desktop application in javafx?

I have a java desktop application made by JAVAFX. I have been able to make it executable and to install it inside my machine, but by default I have the icon of the coffee cup.
I would like to change the icon if it is possible to change it.
I think it depends upon the OS you are using it. There are some wrappers like JSmooth or launch4j. But generally...it's a manual work - change the icon like on any other app.
Good luck :)

Capture Keyboard and mouse event thorugh java library on any tools

I want to capture the keyboard and mouse click event on my window everywhere suppose I have opened browser or opened notepad or some other tools, it should not be effected. I know to do one way this with the batch file but I am trying to do this thruogh java libraries. I tried with AWT and swing but they can only capture within their frame.
Please suggest me approach for captuering keyboard and mouse event through java. Any help will be appriciated.
This is problematic the moment you want to run it on different platforms. For Windows, you would need to use Java Native Interface directly to access dll's, or use ready libraries such as this.
These listeners in general are not trivial to implement, but there are some good examples in test sections of linked gitpage.

Java UI designer for end-user

I'm making a Java Swing application where the user can run and edit JavaScript and Python code using a ScriptEngine. I want the user to be able to drag-and-drop design custom frames with standard components (buttons, text boxes, etc) and specify code to run when buttons are pressed or text is typed. I will also need a way to load and save the forms and run them inside my app. Are there any libraries I can use for this? I've tried searching around but I'm not finding much.

Java Window in another Window

Multi-window applications often have a main-window, and all other windows are kind of 'parented' to it. Minimizing such a sub-window will hide its content and show the title-bar at the bottom-left of the screen. Also, these windows do not have their own Icon in the Task-bar, only the main-window does.
How can I make a window being attached this way to another window?
If that is possible, is it also possible without a referenfe to the actual main window?
#2: I'm embedding Java into such an application and I would like to be able to use awt or swing additionally to the native dialogs, which have this behavior by default.
See How to Use Internal Frames.
have look at JInternalFrames for MDI application
read Oracle tutorial, try code example

Java framework for tabbed windows (like Firefox)

I'm looking for a Java framework which provides tabbed windows, as in Firefox, i.e. tabs can be dragged out to create a new window and dragged back in.
Do you know anything which can do that?
Thanks in advance
The NetBeans platform can do that.

Categories