Can I see the Swing code that GUI designer is writing?

From what I understand from the docs, when the GUI designer is used, Swing code is not written into a  source file, rather, an XML file is produced that is interpreted at runtime and out the other end a GUI - presumably a real Swing-based UI pops out. This means there is no other way to interact with the GUI except throught he GUI designer. Editing the XML file directly is disallowed and there is no Swing source to edit.

This is correct, yes?

0
6 comments
Avatar
Permanently deleted user

Hello,

UI Designer generates byte code at compile time.

You can choose between byte code and source code output:
gui-designer.png

Denis

0

OK so I can see it but I can't (lit.: shouldn't) edit  it

0
Avatar
Permanently deleted user

What do you want to edit there?

Denis

0

Nothing actually. I just wanted to see what exactly  was being created and fed into the IntelliJ Framework.

0

I guess you can choose "Generate GUI into Java source code" -> compile -> delete XML -> edit the generated code to your liking.
For just reviewing what the GUI editor produces, omit the last two steps.
I also tend to do this, but always switch back to "Generate GUI into Binar class files" to not clutter my source files with generated stuff that I don't want to check in.

0

Please sign in to leave a comment.