Amicuk Programming Answers

Titlebar-Icon not showing

-0001-11-30   Views:0


Hello Java World I can load the Icon, but it will not be shown in the titlebar. I load that icon from local hdd. I show my JFrame like this: getJFrame1().setvisible(true); // and private javax.swing.JFrame getJFrame1() {      if (ivjJFrame1 == null)

Hello Java World
I can load the Icon, but it will not be shown in the titlebar. I load that icon from local hdd.
I show my JFrame like this:
// and
private javax.swing.JFrame getJFrame1() {
     if (ivjJFrame1 == null) {
          try {
               ivjJFrame1 = new javax.swing.JFrame();
               ivjJFrame1.setBounds(106, 109, 530, 240);
               //get new imageIcon
                                      ImageIcon image = new ImageIcon("J:/bmp/bmp/act.bmp");
               ivjJFrame1.setTitle("my TabTest");
          } catch (java.lang.Throwable ivjExc) {
     return ivjJFrame1;
}Any help out there ?
Everythings works fine, but no Icon to be seen.
The Icons size is 1K reported from w2k.
Tanks Hanns

The replay answer
If You are using backslashes then You have to replace one "\" with "\\" because \ is an escape sequence and expects a legal char as next.
So using slashes will be allright wiht all systems
public ImageIcon(String filename)
Creates an ImageIcon from the specified file. The image will be preloaded by using MediaTracker to monitor the loading state of the image. The specified String can be a file name or a file path. When specifying a path, use the Internet-standard forward-slash ("/") as a separator. For example, specify:
new ImageIcon("images/myImage.gif")
(The string is converted to an URL, so the forward-slash works on all systems.)
filename - a String specifying a filename or path

Go to See the other 6 answers

New Modern UI app titlebars misbehaving when using stylus (pen) on tablet

Category:DefaultRelease time:2015-10-11Views:130

When switching from the desktop to a Modern UI app by tapping the corresponding taskbar button the new titlebar of Modern UI apps behaves differently depending on input method: 1. Finger: the titlebar is not shown at all (correct behaviour) 2. Mouse:[More]

Application switching/windows and titlebar problem

Category:DefaultRelease time:2015-10-11Views:130

Hi, Apologies if this isn't the best place to post this, but it's a problem that relates to switching between applications in OS X, and I haven't yet found an answer through Director forums. So... I am working on a (cross-platform) Director project t[More]

Add button to JInternalFrame's titlebar.

Category:DefaultRelease time:2015-10-11Views:130

Hi, how do i add a button next to the minimize/maximize/close buttons in the JInternalFrame's titlebar. Thanks in advance.Looks like it's hard to do. However you can put a popup menu on the[More]

Is it possible to show the sequence name in Premiere Pro's window titlebar?

Category:DefaultRelease time:2015-10-11Views:130

Currently the Premiere Pro titlebar displays "Adobe Premiere Pro" and the project file (ie. D:\Videos\2014-04-30 - PPK\_Project Files\PPK.prproj) I was wondering if anybody knows a way to also display the name of the current sequence you're edit[More]

ITunes skinned titlebar

Category:DefaultRelease time:2015-10-11Views:130

Hey there i just got a new Computer which is with Windows Vista....i installed the newest iTunes version. Now when I'm starting iTunes the Titelbar is skinned like on MACs, I ricghclick there, choose Options nad reset the function "Skin your Titlebar[More]

Cinnamon remove fullscreen titlebar

Category:DefaultRelease time:2015-10-11Views:130

With various addons, settings and themes I cannot get rid of the damn titlebar in fullscreen applications like wine and some games (enemy territory). Along with VLC fullscreen, Firefox YouTube fullscreen etc. are working fine. On linuxmint etc. eithe[More]

Right-clic​king titlebar halts Ethernet

Category:DefaultRelease time:2015-10-11Views:130

I have an application that is receiving a stream of 19B messages over Ethernet at 12.8kHz. Within the 19B, I have a counter used to check integrity of the message ensuring I do not miss any messages. The stream works, and my application can process t[More]

How to show a variable at titlebar of alv screen

Category:DefaultRelease time:2015-10-11Views:130

Hi, I want to say that : Data: number type i. Number  = 100. Set TITLEBAR 'ABC' . 'I want to say'  100 'of'  500 'records have been selected'. How can I do that? Thanks.Declare your TITLEBAR like this way and while calling your title bar Data: number[More]

Customize jinternalframe titlebar

Category:DefaultRelease time:2015-10-11Views:130

hai friends, can anyone help me in customize jinternalframe titlebar. to change the titlebar background color. to change titlebar height. to change border color.. pls anyone helpmehai friends, can anyone help me in customize jintern[More]

Titlebar on Solaris does not display Japanese characters

Category:DefaultRelease time:2015-10-11Views:130

I have a Java Swing application (running on 1.6.0_06) that sets Japanese characters on the titlebar of Dialogs. The Japanese characters display correctly when the application runs on Windows but displays as ? when run under Solaris. Details of the So[More]

Change the parameter in the titlebar

Category:DefaultRelease time:2015-10-11Views:130

Hi Everyone, I have pop up screen, where in it changes the titlebar accordingly on which grid it is. Now is it possible to pass a variable in the titlebar which keeps changing accordingly based on the columns of the grid. Any help will be of great us[More]

i got a ipod video for christmas and i have some dvd's i would like to put on my ipod. my friends say i have to get some kind of converter. I have been looking around on the internet and i have no clue what im doing. from what i've seen, these conver [More]
Hi! I used to open my (RAW) photos from Lightroom (2) into Camera Raw - it did it automatically when I clicked "edit in photoshop". Now it doesn't work anymore, and I have no idea why - it opens the pictures directly into Photoshop (CS4). Howeve [More]
Hi When I am forwarding work item to other user I am getting following error. Work item 000015375242: Forwarding not allowed in status READY Message no. WL842 Diagnosis The work item cannot be forwarded in its current status. System Response The acti [More]
Since there exists absolutely no information that I can find... including in the manual that came with SE, I need to know is SE only installable as a stand alone version, which Adobe recomends you don't run as a production server, and which during th [More]
Hi ,       I am new to webdynpro dynpro. I have a requirement in which i have to move the standard fields to some other place. The webdynpro component isn HRRCF_C_PERSONL_DATA_UI. In this i have to move the fields location and poastal code above the [More]
In the past I have been able to use my IPOD classic to listen to books on my cars using the USB connection. My new Car a (2013 GMC Terrain) will play the book, but I have no control of it if I try to pause it, it will revert back to the radio view an [More]
My office recently purchased CS 5.5 Design Premium for me. I have the Windows disks. I understand I can install and use the programs at home as well, but I have a Mac.  I have a valid serial number, just not the Mac OS version of the software. Can I [More]
I'm running XP Pro on a Mac Pro with Bootcamp, and have the latest version of iTunes. Every time I plug in an iDevice, iTunes opens and says that the Apple Mobile Device service hasn't started. I go in to Services and start it, restart iTunes, and we [More]
I am trying to delete a device from the DCR in LMS 3.2 using the dcrcli command below: dcrcli -u dnescripting cmd=del id=5052 I am getting to following error after running that command: <dcrcli> * Password file found using DCRCLIFILE environment var [More]
Looking for help with pop ups and ads. I can stop them. Is there something to buy to help?Click here and follow the instructions, or if desired, download and run Adware Medic. The second link is a direct download; if you're unable to download it, see [More]