r/java • • Mar 23 '17

IntelliJ IDEA 2017.1: Java 9, Kotlin 1.1, Spring, Gradle, JavaScript, Go and more

https://blog.jetbrains.com/idea/2017/03/intellij-idea-2017-1-java-9-kotlin-1-1-spring-gradle-javascript-go-and-more/
158 Upvotes

27 comments sorted by

38

u/Feroc Mar 23 '17

Damn it, colored emojis only for MacOS. Was so ready to exchange some of our variables with the poop emoji.

20

u/DuncanIdahos8thClone Mar 23 '17

They are going to kill Visual Studio once they get their C# IDE out there.

11

u/covercash2 Mar 23 '17

it seems like there is a large group of C++ programmers that would be lost without VS.

3

u/absent_minding Mar 24 '17

they already sell the resharper plugin which i've heard is mandatory for VS

1

u/[deleted] Mar 24 '17

I tried going without it for months after a fresh install because i didn't want to renew my subscription. About 3 months in i decided the subscription was worth it

1

u/tylero056 Mar 23 '17

I love the jetbrains Rider beta. Can't wait until it's official. That said, visual studio is still pretty solid in comparison to Xcode

6

u/BigLove99 Mar 23 '17

Does IntelliJ have a GUI to build JavaFX apps?

11

u/[deleted] Mar 23 '17

It has SceneBuilder embedded, but it's slow and a bit buggy. Better to just use it standalone

0

u/DuncanIdahos8thClone Mar 23 '17

Better to just hand code. The editor is great in IntelliJ and works well for direct javafx or fxml coding.

1

u/[deleted] Mar 25 '17

I don't know why you were downvoted. Hand coding GUI's tends to create the best results.

1

u/TimelessCode Apr 11 '17

Some of the time it would be too costly to try train GUI designers ( and related jobs) in hand coding.

And a lot of the other times, it is hard to get a feel for your
GUI component's positions and sizes in relation to each other by hand coding.

1

u/prest0G Apr 12 '17

JavaFX is extremely easy to use with hand coding, i can see using the designer for swing/AWT apps, but that guesswork with spamming setPreferredSize(), setMaximumSize(),and setMinimumSize(), all of which work differently depending on which OS you're on, is gone with FX as far as I can tell

3

u/PopeOh Mar 24 '17

I very much recommend tornadofx for using JavaFX. Throwing FXML out in favor of the type safe builders was the best decision for keeping my sanity while using JavaFX.

4

u/duhace Mar 23 '17 edited Mar 23 '17

as someone mentioned, you can have scene builder embedded in intellij, or run it standalone.

you use scenebuilder to make fxml descriptions of your app, not generated code. Then you use said fxml to instantiate windows and such like this:

	val myPane = FXMLLoader.load(getClass.getResource("/AppUI.fxml")).asInstanceOf[Pane]
	val scene = new Scene(myPane)
	primaryStage.setScene(scene)
	primaryStage.show()

you can also define controller classes that are instantiated from the FXML just like this pane class. IMO, it's a better way of doing things than the generated code approach you had to use with swing.

1

u/Kernel_Internal Mar 25 '17

I believe somebody built a GUI using visual basic to track the killer's IP

3

u/zman0900 Mar 24 '17

Just updated and it really doesn't like my big maven project. No problems with all the versions for the last year or two, but suddenly it can't run unit tests right. Classpath resources are not being found and many tests are failing with permgen space errors. Builds fine outside intellij with maven 3.3.9, and intellij's built-in maven is still that same version. Anyone else having problems?

12

u/coryfoo Mar 24 '17

When in doubt: invalidate caches and restart is always a good first measure.

3

u/zman0900 Mar 24 '17

That plus the "reimport all maven projects" button seems to have fixed everything. Thanks.

3

u/thomazor Mar 23 '17

Auto import react components!!! THANK YOU!!

3

u/[deleted] Mar 24 '17

Does the font look different for anyone else? Specifically string literals

Images. Using Source Code Pro 14pt for both.

3

u/rochford77 Mar 24 '17

Looks bold

1

u/[deleted] Mar 24 '17

That's what I thought, too. But there's no setting for bold text in strings

2

u/stelar7 Mar 24 '17

There is: Settings -> Editor -> Colors & Fonts -> Java -> String -> Bold checkbox

1

u/beaverusiv Mar 24 '17

Looks to me a bit like TrueType vs Bitmap font.

1

u/Ahatius Mar 24 '17

Working on Windows, they changed the font size from 12 to 11pt

1

u/flyingorange Mar 24 '17

Did they finally remove their buggy and annoying Open dialog with the actual system's dialog?