Glass.add(new CursorPanel(),BorderLayout. JCheckBox changeButton=new JCheckBox("Custom Cursor \"visible\"") Ĭontainer contentPane=frame.getContentPane() īutton_1.setPreferredSize(new Dimension(80,80)) īutton_1.addActionListener(new ActionListener() ) JFrame frame=new JFrame("Demo_Large_Custom_Cursor_Simple") įtDefaultCloseOperation(JFrame.EXIT_ON_CLOSE) Its useful for laptop users, for those running X at very high. Static private MyGlassPane_Simple myGlassPane This package provides some large mouse cursors for use under X. Public class Demo_Large_Custom_Cursor_Simple But in order to achieve it, I have to click a checkbox first, now I want to be able to create a large custom cursor without first need to click a checkbox, so I modified my code to look like the following without a checkbox : import javax.swing.* If you are curious about what is it used for, you can find a practical use case for an award winning password protection system called GATE at : Īfter the previous question I found a way to create a large custom cursor, and the working answer is posted in my previous post. This question is related to my previous question : How To create A Large Size Custom Cursor In Java?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |