Netbeans why does some text appear bold in roboticket? - java

i downloaded the xml file for roboticket from http://www.eclipsecolorthemes.org/, then i went to the http://svenspruijt.nl/themebuilder/ imported this xml file and saved it as a zip. then i imported this zip file in my eclipse. But some text appears to be lighter than usual (like function calls). so it is the same theme but why different appearances in different IDEs? I even checked in preferences fonts and colors tab -> syntax tab -> in language list java, went off each item and made sure it doesn't have anything bold in it

Possibly a bug but a quick workaround would be turning everything that appears light to bold. Now it looks much more like eclipse and of even thickness. Still unsure whether those semicolons are bold or not

Related

Arabic text reversed when I build the project in NetBeans

When I run my project under NetBeans it works, and the Arabic text is formatted correctly. But when I build the project and send it to the client, the Arabic text is reversed.
The same thing also happens to me. When I open the jar file of the project, I see that the language is reversed. I need a solution knowing that Arabic words are written inside jLabel.
When I run the project from within NetBeans, these are the correct results:
And these are the incorrect results when I open the jar file after building the project:
Well guys, I finally discovered the error which is the font type. I put the font type in NetBeans (Times New Roman)
And I discovered that NetBeans supports this type of font, but Windows does not support it, so it makes the sheep inverted and only this problem and I hope that no one will fall into this slander after me: and it is better to use this type of font (Tahoma) because all devices support it And it does not show any problem, thank you

File was loaded in the wrong encoding:'UTF-8' in IntelliJ IDEA

Before asking the question, I searched for a similar question on StackOverflow:
file was loaded in the wrong encoding: 'UTF-8' in android studio
But it did not give an explicit answer there.
My issue is that the project is downloaded from the network, and it is an eclipse project, I open it with IntelliJ IDEA, and get this issue:
As Tarik point out, click the Reload in another encoding, and if you want UTF-8 encoding, then click the more -> UTF-8.
in my case , when i uploaded the first .ttf file in assert folder , android studio asked me to choose one file type , and when I selected text type . this problem start to appear .
the right file type is : 'Files Opened In Associated Applications'.
to fix your problem , you have to open preferences ->Editor ->File Types and search for .ttf extension then remove it and add it again under 'Files Opened In Associated Applications'
I was having the same problem..
and i solved it by changing the CR to CRLF
AND then refresh the project
like done in following image
You can try opening your file with an other text editor, like Notepad++. Sometimes it can detect the correct encoding of your file, using a different pattern than IntelliJ.
Then you will be able to use the "Reload..." of IntelliJ.
Click on setting symbol just right side of error and select suppress for class.
That works for me and resolve my issue.
My colleague works on Windows while I work on Ubuntu 16.04
Click the Reload in another encoding, and click the more -> GBK.
Then we can see the Chinese character.
I tried all possibilities posted here but any success with them, what worked was just to re import the project
Though the encoding setting was present in the pom.xml, IntelliJ was trying to load all test files using UTF-8 instead of ISO-8859-1, so I found this in the IntelliJ docs: Encoding in IntelliJ
Which, it basically was...
Open preferences (in macOS hit, command + ,)
Go to Editor / File Encodings
Select the project correct encoding if it defers from your pom.xml - project.build.sourceEncoding
By doing so, it did stop asking me to reload the file with the correct encoding.
If you have previously loaded this file without problems, and this is a new issue for you, try invalidating the caches in your IDE.
An easy way to open this option is by opening the super-search functionality (hit shift twice) and search for 'cache' in the 'actions' tab.
When prompted, choose the following option:

Java File Corrupted

Yesterday, i've Closed Eclipse & then Turned Off The Computer, Now it's appear that a Crash has occured, when i started Eclipse again, Project List was empty So i've imported the Projects Again,
Problem : a Java Files is now corrupted, the file size seem correct, i can Open the File but the File is filed with "NUL" when i open it with a Text Editor & is empty when i open it in Eclipse,
I've tried to use the History Features of eclipse but there is No Any Backup in the .History Folder, only empty folders,
Is there any way to recover this Damaged .Java File ?
Thanks
if you use SVN, or other version controls, or ever back up your PC, you could look at restoring it from there. However, by your description, this doesnt seem likely.
Noting from your comments you have tried a system restore.. System restore points and backing up your PC are two different things.
Right click on your file -> Properties.
The click "Previous Versions" along the top.
It may say "There are no previous versions available", or may offer a restore choice.
Perhaps if you had previously deployed the project you can get at the class file and de-compile the class back to code but that may still result in some loss. Also just try doing a search on your machine for that file name perhaps it was backed up by you at an earlier time that you forgot about.

How to enable syntax highlighting in Eclipse Indigo?

How to enable syntax highlighting in Eclipe Indigo? I write in Java. I installed this plugins for more comfortable usage on small screens, but even if I turn it off - all the words in editor are black:(
You may set your coloring preferences by
Window->Preferences-> Java->Editor->Syntax Coloring
Make sure you are using the Java perspective (or Java EE) as well. You should be able to see the name of the active perspective and/or editor in the title bar.
To be 100% sure, you can always right click on the file in question and Open With->Java Editor to ensure that it is the Java editor that is open for your file.
Eclipse remembers which editor you last used to open a file and keeps opening it with that editor, even if you've installed a better one later. Right-click on the file and force it to open with the Java Editor using the "Open With..." menu. If you're not getting any coloring at all, you might just be using the wrong editor.

JFormDesigner generating Java Code in Eclipse

I am using JFormDesigner to develop a Swing application. However I can't seem to get the package to generate java code. I tried saving the form and also pressing the "Generate Java Code" button, but it is not working. Is there some setting that I need to put in place for this to work?
Here is an uppdate. The generated code file is in my workspace directory, but Eclipse is not refreshing the file. Also, I note that the icon next to the file name in the navigator view looks different than normal java files. So really, this seems to be a problem with Eclipse refreshing. And yes, I've tried manually refreshing. But it is not doing this. Why would that be?
Thanks,
Elliott
The code is there. But is collapsed. You need to click on the + sign next to the position in the module where the generated code should be and it appears.

Categories