Difference between Shift + F6 and right click run?

I have made a java project in netbeans, I have recently seen that there is a UI difference in 2 cases. 1. if i right-click and run the main project or if i press Shift</kbd> + F6</kbd>. If i do Shift</kbd> + F6</kbd>, a nice user interface (see the buttons), comes up: <img src="https://i.stack.imgur.com/hmx5g.jpg" alt="Shift+F6">

If i right click on my project and run it; the button style looks ancient: <img src="https://i.stack.imgur.com/fRa7B.jpg" alt="Right Click and Run">

My question, Why? and 2nd thing; what i want is that if i transfer my program to other systems via JAR files; the nice UI should come. How to do that?


When we run the project by clicking "Run", the project is started with the main class file, i.e., with class having main entry point. But when we press Shift</kbd> + F6</kbd>, the file currently open in the editor-window is run using its own main function. So, may be you are doing the same. Probably you have set the Look & Feel of the project in a file other than the file defining your GUI and you are just launching your GUI Frame by pressing Shift</kbd> + F6</kbd>. Thus starting the frame without L&F set.Just clean and build the project and see the output of the final .jar file.


  • Is GIJ (GNU Interpreter for Java) stable enough for commercial use?
  • Difference between JSF view instances: new view, initial view, and postback view
  • Google Charts: Get element from selected bar in histogram
  • Why a segmentation fault for changing a non-const char*?
  • How can I count unique terms in a plaintext file case-insensitively?
  • integrate POCO library in android ndk
  • Does the Azure table storage API cache results?
  • Comparing user's facebook/twitter friends to site's users in Python/Django
  • Zend Framework bassed projects
  • Creating a Multi-Step Modal Using Jquery
  • Why can't UI components be accessed from a backgroundworker?
  • ZipList with Scalaz
  • “mvn clean generate-source” could not resolve dependencies
  • In Java, how can I construct a File from a resource?
  • Android Studio Can't Find tools.jar
  • Overlapping controls in Windows XP
  • Firefox Extension - Monitor refresh and change of tab
  • How do I superscript characters in a UIButton?
  • Debug.DrawLine not showing in the GameView
  • Ensure fsync did its job
  • Custom validator control occupying space even though display set to dynamic
  • How do I alternate colors in Flat List (React Native)
  • Listbox within Listbox and scrolling trouble in Windows Phone 7 Silverlight
  • Android full screen on only one activity?
  • Android fill_parent issue
  • What is Eclipse's Declaration View used for?
  • C# - Serializing and deserializing static member
  • Adding custom controls to a full screen movie
  • jquery mobile loadPage not working
  • Properly structure and highlight a GtkPopoverMenu using PyGObject
  • SVN: Merging two branches together
  • jqPlot EnhancedLegendRenderer plugin does not toggle series for Pie charts
  • How do I rollback to a specific git commit
  • Unanticipated behavior
  • Is there a mandatory requirement to switch app.yaml?
  • How can I get HTML syntax highlighting in my editor for CakePHP?
  • Authorize attributes not working in MVC 4
  • Busy indicator not showing up in wpf window [duplicate]
  • Python/Django TangoWithDjango Models and Databases
  • Net Present Value in Excel for Grouped Recurring CF