I've created a simple gui for my program using Intellij GUI Designer. Everything works fine however when I build gradle jar and try to run it I get NullPointerException (It creates Frame but doesn't see components). I was having a problem configurating build.gradle file so I belive it might be a reason.
Here's build.gradle
group 'ImgScrapper'
version '1.0-SNAPSHOT'
apply plugin: 'groovy'
apply plugin: 'java'
jar {
    manifest {
        sourceSets.main.java.srcDirs = ['Main/src']
        attributes 'Main-Class': 'imgscrapper.Main'
    }
}
sourceCompatibility = 1.5
repositories {
    mavenCentral()
}
dependencies {
    compile 'org.codehaus.groovy:groovy-all:2.3.11'
    compile 'org.jsoup:jsoup:1.9.2'
    testCompile group: 'junit', name: 'junit', version: '4.11'
}
And here's catalog tree
 .
 ├── build.gradle
 ├── gradle
 │   └── wrapper
 │       ├── gradle-wrapper.jar
 │       └── gradle-wrapper.properties
 ├── gradlew
 ├── gradlew.bat
 ├── Main
 │   ├── Main.iml
 │   └── src
 │       └── imgscrapper
 │           ├── Frame.form
 │           ├── Frame.java
 │           ├── GetImages.java
 │           └── Main.java
 ├── out
 │   └── production
 │       └── Main
 │           ├── com
 │           │   └── intellij
 │           │       └── uiDesigner
 │           │           └── core
 │           └── imgscrapper
 └── settings.gradle
Error messege
Exception in thread "main" java.lang.NullPointerException
        at imgscrapper.Frame.<init>(Frame.java:34)
        at imgscrapper.Main.main(Main.java:12)
Frame.java file
 public class Frame extends JFrame{
     private JPanel panel;
     private JTextField textField1;
     private JButton button1;
     public JScrollPane scrollPane;
     .
     .
     .
     Frame(){
         setVisible(true);
         setSize(440,290);
         setLocation(450,300);
         setTitle("imgScrapper");
       -/*-> Here's 34 line of Frame.java*/ textField1.setText("What are you looking ./r...");
         comboBox1.setSelectedIndex(1);
         comboBox2.setSelectedIndex(0);
Can you help mi with that ? Thanks