How to resize editor file tab in Eclipse? - eclipse

I want to resize the file tab in the eclipse editor.
At the top of each file there's a tab with the name of the file but in my system its height is huge.
Using : Helios Service Release 1
System : Ubuntu 10.04 LTS
Does anybody know how to do this ?

I would look at your system font settings in your OS control panel or equivalent. Are any of them set to unusually large size? Eclipse picks up up system font settings for use in its UI.

Restart eclipse and the new font size will register on your file tabs.

Related

Netbeans doesn't see newly installed fonts [duplicate]

I am trying to add new fonts to my Netbeans editor by downloading them and double-clicking the .ttf files and pressing 'Install' on the upper left corner. I am able to install the fonts with no issues. However, when I reload Netbeans and go to select the new font, it does not appear on the list of available fonts. Restarting Windows doesn't help. Has anyone had this issue before? And if so, we you able to fix it and how?
Thanks in advance.
EDIT: I am using Netbeans 10.
EDIT2: I am trying to install Roboto Mono and Inconsolata, here are the links to the downloads:
https://fonts.google.com/specimen/Inconsolata
https://fonts.google.com/specimen/Roboto+Mono
Get back to me if you have any luck, thank you.
Initially I had the same problem as you. After installing the new fonts and rebooting, those new fonts were not available in NetBeans 10.0, even though they were available in other applications such as Firefox and Notepad.
In my case, installing the *.ttf files resulted in them being installed in a user specific folder: C:\Users\johndoe\AppData\Local\Microsoft\Windows\Fonts.
However, after I copied (only) the *.ttf files for Inconsolata from that folder to C:\Windows\Fonts and rebooted again, the Inconsolata font was visible in NetBeans 10.0. Here is a screen shot showing the use of Inconsolata font:
Notes:
I don't know why this action was necessary. I'm pretty sure I have installed other fonts for NetBeans in the past that didn't require manually copying them to C:\Windows\Fonts.
This issue isn't specific to NetBeans 10.0 for those particular fonts; it also exists in NetBeans 8.2.
Don't use Windows File Explorer for copying the fonts since it treats C:\Windows\Fonts in a special way. Instead, copy the *.ttf files to C:\Windows\Fonts using copy from the command line:
I'm not sure whether this is a NetBeans issue or a Windows 10 issue, but since other software picked up the new fonts from the user directory perhaps this is a NetBeans bug?
As mentioned in previous answers, NetBeans only shows up fonts that are installed globally (for all users).
If you just use „install“ from the context menu in Explorer or from the font preview window, the font is installed on a per-user basis and is not installed globally.
You don’t have to move the font files manually. There's a clean way to do this: Use Explorer to navigate to the folder where your TTF files are stored. Then right click on a ttf file and choose "Install for all users".
Run command cd "c:\Windows\Fonts"
Force delete all fira fonts del f/ firacode-regular.ttf
(in my case, I had this font installed before, which is the one I want to use, so I will have to remove it to continue with the explanation)
Copy .ttf font file copy "c:\users\mrconejO07\desktop\firacode-regular.ttf" "c:\windows\fonts"
(in my case these are the paths where my file is and where it must be copied)
In theory it should work in the NetBeans IDE, enter to verify that the font should already appear in the options menu and if you see strange symbols when selecting the font you should ...
Open the .ttf file of the font you want to install and install it, now if it should work correctly.
enter image description here

Newly installed fonts do not appear in Netbeans

I am trying to add new fonts to my Netbeans editor by downloading them and double-clicking the .ttf files and pressing 'Install' on the upper left corner. I am able to install the fonts with no issues. However, when I reload Netbeans and go to select the new font, it does not appear on the list of available fonts. Restarting Windows doesn't help. Has anyone had this issue before? And if so, we you able to fix it and how?
Thanks in advance.
EDIT: I am using Netbeans 10.
EDIT2: I am trying to install Roboto Mono and Inconsolata, here are the links to the downloads:
https://fonts.google.com/specimen/Inconsolata
https://fonts.google.com/specimen/Roboto+Mono
Get back to me if you have any luck, thank you.
Initially I had the same problem as you. After installing the new fonts and rebooting, those new fonts were not available in NetBeans 10.0, even though they were available in other applications such as Firefox and Notepad.
In my case, installing the *.ttf files resulted in them being installed in a user specific folder: C:\Users\johndoe\AppData\Local\Microsoft\Windows\Fonts.
However, after I copied (only) the *.ttf files for Inconsolata from that folder to C:\Windows\Fonts and rebooted again, the Inconsolata font was visible in NetBeans 10.0. Here is a screen shot showing the use of Inconsolata font:
Notes:
I don't know why this action was necessary. I'm pretty sure I have installed other fonts for NetBeans in the past that didn't require manually copying them to C:\Windows\Fonts.
This issue isn't specific to NetBeans 10.0 for those particular fonts; it also exists in NetBeans 8.2.
Don't use Windows File Explorer for copying the fonts since it treats C:\Windows\Fonts in a special way. Instead, copy the *.ttf files to C:\Windows\Fonts using copy from the command line:
I'm not sure whether this is a NetBeans issue or a Windows 10 issue, but since other software picked up the new fonts from the user directory perhaps this is a NetBeans bug?
As mentioned in previous answers, NetBeans only shows up fonts that are installed globally (for all users).
If you just use „install“ from the context menu in Explorer or from the font preview window, the font is installed on a per-user basis and is not installed globally.
You don’t have to move the font files manually. There's a clean way to do this: Use Explorer to navigate to the folder where your TTF files are stored. Then right click on a ttf file and choose "Install for all users".
Run command cd "c:\Windows\Fonts"
Force delete all fira fonts del f/ firacode-regular.ttf
(in my case, I had this font installed before, which is the one I want to use, so I will have to remove it to continue with the explanation)
Copy .ttf font file copy "c:\users\mrconejO07\desktop\firacode-regular.ttf" "c:\windows\fonts"
(in my case these are the paths where my file is and where it must be copied)
In theory it should work in the NetBeans IDE, enter to verify that the font should already appear in the options menu and if you see strange symbols when selecting the font you should ...
Open the .ttf file of the font you want to install and install it, now if it should work correctly.
enter image description here

Javafx 8 NetBeans titlebar icon with native packaging

I need some help with NetBeans and a JavaFX project
When I try to install an icon in the title bar of a Windows 7
Desktop application it will not show up
Here are the steps I have used to create and EXE file
Main Class adds the icon with this line of code that works in Eclipse
pStage.getIcons().add(new Image(“file:src/Photos/C.ico”));
Inno Setup 5.0 installed and in Path
the icon is 32 by 32 and 32 bit depth it was created with GreenFish Icon maker
the icon is under Source Package in a folder named Photos
right click project select Properties select Deployment
check Enable Native Packaging
set the path to the icon for Native Package Icons
src/Photos/C.ico
Run Clean and Build
Run Package As EXE
The only other concern I have is this output message
No base JDK Package will use system JRE
I see this as a separate issue so as a bonus question
can I ask for help with how to include the JDK or JRE
so this application is independent of what JRE if any
is installed on the end user machine.
A side note during development if I use C.bmp
in place of the ico file the title bar will display
the bmp. The bmp file will not work at build time.
#James_Duh I have no idea why this works and I doubt you find this FIX anywhere else as I searched the net for why you need to use a bmp and ico file
Here is what I did with NetBeans 8.0.? and JDK1.8.0_51 on Windows 7
in the Main.class I used this line of code
Image ico = new Image("Photos/C.bmp"); NetBeans
Image ico = new Image("file:Photos/C.bmp"); Eclipse
Then in the Photos folder I placed an icon named C.ico 32 by 32
this icon is used to populate the installer EXE file
which when you run the EXE file the icon will be displayed
in the Start Menu
I also checked Desktop Icon and Start Menu shortcut under
Deployment in NetBeans Deployment screen
The Native Package deployment process in Eclipse is a real real PAIN
In the future I will make the switch to NetBeans IDE for this reason alone

Eclipse luna mac osx package explorer tree view

I have updated package explorer font size by as per the answer in the post
Mac os X Eclipse Package Explorer view , project folders in smaller size in mac theme CSS and it works well. But when I update a java or properties file, it font size is reset to the default(I am unable to find what is the default size). I enabled Maven and Git for my project, how to retain the same font size even after updating the files.
The configuration is present in eclipse>preferences>change colors and fonts > Git > Uncommitted Change Font.

Where's the font setting for folders in the Package Explorer?

I'm talking about Eclipse (3.5 = Galileo), running under Kubuntu 9.10 and I have the Subversive plugin.
I've been moved from Gnome-Ubuntu to Kubuntu, and one side effect was that some fonts are now just too tiny to read.
File names in the explorer have a decent size, but folders are shown in a too-small font, and after having adjusted all the fonts in General|Appearance|Colors and Fonts the folders are unchanged.
Maybe I'm just blind. I'd appreciate it if someone could point me to where I can adjust the font for folders in the Package Explorer
Eclipse is supposed to respect the OS settings but it turns out on Mac OS X the default setting for eclipse is to use small Fonts rather than the standard os fonts. On Mac OS X you can change edit the eclipse.ini file and remove -Dorg.eclipse.swt.internal.carbon.smallFonts restart eclipse and presto you will find that your package explorer looks brilliant with reasonable sized fonts.
To find the eclipse.ini on a Mac, right click on Eclipse.app, then select "show package contents", then you will find the ini file in Eclipse.app/Contents/MacOS/eclipse.ini
It'll use the default GTK+ font settings, as Eclipse is a GTK application. You may have to install Gnome's Appearance preference applet to get a GUI to change it.
Feedback on success:
It seems that in Kubuntu, any fonts not explicitly specified in Eclipse's preferences come from the system. Eclipse is a Gnome app, so its fonts (among other stuff) are controlled by
System Settings | Appearance | GTK+ Appearance
...and there I was able to fiddle the fonts to my satisfaction.
My thanks to Andrew Aylett!