intellij Idea - How to open .css file(like application.css)? - css

In eclipse IDE a css file named applicaion.css is opened automatically when any javafx project is opened . But in intellij idea the css file is not created automatically .

Simply right click on the package in which you would like the CSS file in and select New -> File then name it application.css or whatever name with .css
You then add it to the applications style sheets by:
layout.getStylesheets().add(getClass().getResource("/path/to/application.css")).toExternalForm();

Right click on the sample folder and select New -> File.
Save the file as "name_of_your_choice.css". This is how you create a css file in javafx
You can then add the css file to your application by pasting this in your "Main.java"
scene.getStylesheets().add(getClass().getResource("name_of_the_css_file.css").toExternalForm());

Related

SCSS to CSS style sheet

I'm still new with web development. Right now, just new with angular. How can I change from SCSS to CSS stylesheet cause I accidently select SCSS style when I create a new angular project.
One more thing, how can I change terminal bar in VS Code from to . I tried to Google but can't find the answer.
Configuring Your Default Angular Component Extension
To have Angular default to generating components with CSS files and not SCSS files, simply edit your configuration. Keep in mind you can still use CSS syntax inside SCSS files.
ng config schematics.#schematics/angular:component.styleext css
You can also do this process by hand by editing your angular.json file
VS Code Terminal Tabs
Open your VS Code settings and search for terminal.integrated.tabs.enabled and check the option named Terminal > Integrated > Tabs.

Customise QPushButton with an image

I am using Qt5 and having some problems in setting the back ground image of a QPushButton. I am using Qt Creator and Design to drag and drop the QPushButton. After that I created a source folder and placed an image in that directory and I googled and tried doing
ui->pushButton_play->setStyleSheet(QString::fromUtf8("background-image: url(:/source/play.png);"));
but no success...am I creating the folder in a wrong place?..I created in D:\Qt5_PROJECT_NAME\source or will I make the url(:\\source\\play.png). Nothing is working...please help...
Did you add the images file into .qrc file? A URL start with : has indicated that It will be searched in .qrc file. If .qrc file didn't used, URL should not start with :. Maybe you should access the image file as
ui->pushButton_play->setStyleSheet(QString::fromUtf8("background-image: url(source/play.png);"));
This is The Qt Resource System documentation.

XCode4 - Change the icon of the program

I have written a program on XCode4, how can I change the icon of the program?
Refer to the screen capture below:
Also, what is the size for the icon?
Thanks
You put icon file into Resources folder, and then open .plist file (also in resouces folder). Set icon file name in properties list.

How to Open this file structure as Flex project?

I received a Flex project but don't know how to open it in Flash builder. It doesn't contain a project.mxml or .actionScriptProperties, .flexProperties and .project files.
the file structure looks like this:
(rootFolder)
-(com)
...subfoldrestructure containing only folders and .as files
-(src)
-(_embed)
-assets.fla
-assets.swf
-assets.swc
-Main-app.xml
-Main.as
-icon-16.png
...
-icon-128.png
how do I make a compilable Flex project out of this?
That is not a Flex project, that's a Flash project. Just create a new Actionscript project and point the location of it at the same location as this one. It will add the necessary project files to compile. It will try to create another Main actionscript file, but you can delete the one that it made and select the one already there as the default application.

How do i change the index.html flex output to admin.anotherExtension?

i need to change the automatically generated index.html flex output to admin.anotherExtension. I understand that if i change the index.template.html the changes in html level will be preserve when the file is generated, however i need to change the name of the file also, and the extension.
Thank you! (using flashBuilder4)
In the html-template directory. Create a new template file named something like this:
${application}${build_suffix}.template.cfm
The next time you build your project, you'll get a file with the extension .cfm that is the same name as your application. You can use whatever extension of your choosing. My source
If you create your own file in the html-template directory (say: index.cfm ), I'm pretty sure that file will be copied to your build directory, but not changed.
Keep in mind all your changes will be overwritten if you change the Flex SDK on the project. Back them up somewhere.

Resources