Search code examples
javaswinglayoutjframespringlayout

Why is my SpringLayout different from the example?


I am doing This example. My code is exactly the same but in stead of getting This

I am getting

This

Can anyone explain why?


Solution

  • Most probably you are running a different project. Next to the run button there is a drop down arrow, click it and pick the right project to run.