I'm trying to use a JButton as an editor within a JComboBox. On Mac OS X this looks fine, but on Windows using the system look and feel, there is an ugly gap left between the JButton editor and the combo button itself:
This is the test code used to produce the dialog:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;...
Is there some resource editor for windows executables I could run from a CentOS box?
Something like Resource hacker, that allows to update icon and fileversion.
But I don't want to install wine because it's not my server and I want to change much.
I would like to run it from a .py script so anything that works from a terminal will do....
First of all, I am not a veteran programmer i any language. But I've been tinkering with python pretty substantially the last couple of months so I wouldn't consider my self completely green either.
Some keywords for you:
- Windows
- Python 2.6
- Pygame, CGKit
Okay, so I've got the CGKit module, which contains a WinTab wrapper for capt...
Hi,
1)
I'm trying to set the thumbnail image that you see in explorer for a pdf.
At the moment, all the thumbnails are just the Abode PDF logo ... I'd like to set it to an image of my choice.
I have looked at the Win 7 shell pack api, and cannot find any way to set the image, only ways to extract the (default) image.
Can this even be do...
Hi!
Is it possible to "hard" restart Windows, without waiting for closing applications, etc.?
...
CSQL is available for Linux. Is any has tried to install in Windows environment.
...
I create .gitignore in folder with my repository near .git
project
--.git
--.gitignore
--Source
----tmp
----scr
But git doesnt see it, wouldnt ignore files in .gitignore
My .gitignore file:
*.tmp
*~
*.pdb
*.user
*.suo
Sources/tmp
What`s wrong?
Up:
I created new repositiry, add .gitignore before init commit - it work!
But if I ad...
I'm working with a software package that creates Flash panorama .swf's. The package allows the creation of hotspots in the pano. You can specify the URL and the Target of the hotspot, so if you click on the hotspot it launches the URL in _blank, _self, etc.
However, the package doesn't allow you to specify the attributes of the window.
...
I've tried odbc_prepare() + odbc_execute() to update a record in an Access file but I always get an SQL state 07001 error message about incorrect column count (actually, the message is in Spanglish and doesn't make much sense):
<?php
$items = array();
$items[100] = 'Foo';
$items[200] = 'Bar';
$sql = 'UPDATE street
SET name=?
WHE...
I'm trying to make it possible to access/upload documents to Alfresco using shared drive, i.e. CIFS. The server runs on Windows.
I'm able to ping the server like ping themachine-a, so I guess the CIFS is up and running in Alfresco. But I'm unable to sign-in at \alfrescomachine\; the dialog window appears but no credentials are 'good eno...
Hello,
I have written a program with C#, that creates a logfile and fills this by using log4net. This program starts powershell-scripts. The scripts use log4net, too.
It works:
> C#:
> ps.Runspace.SessionStateProxy.SetVariable("myMethod",(Action<Level,string>)myMethod);
> ps.AddCommand(System.IO.Path.Combine(pathScripts, testSkript...
I'm trying to do a simple PowerShell script to access the registry and I'm doing it like this:
Foreach ($key in Get-Childitem HKLM:\SYSTEM\CurrentControlSet\Control\Class\"{4D36E972-E325-11CE-BFC1-08002BE10318}") {
$key.name
}
There's a bunch of keys that are just digits (the ones I want) but then there's one named "Properties" wh...
How can I get the IP address of the system.
I want the Ip address as I can see after doing ipconfig or /bin/ifconfig
...
My application is using SWIG to communicate between c++ and python on windows.
suppose if my interface is "example.h"
swig is generating example.py, example_wrap.cxx
/* File : example.i */
%module example
%{
#include "example.h"
%}
%include "std_string.i"
%include "std_wstring.i"
%include "example.h"
I am porting my application ...
I have a Django app running on Windows (via Apache + mod_wsgi) that's CPU-bound. But Apache on Windows only does MPM (multi-thread) workers, not prefork (multi-process workers), and a single Python interpreter won't take advantage of multiple CPUs.
I would switch to FastCGI, but that requires Flup, which is not supported on Windows.
T...
1>
I have folder inside folders structure.
2>
I want to recursively create shortcut to every file.
the shortcuts must be place inside the same named folders, that it is at its source.
3>
Summary: same folder structure...just shortcuts in place of files
Any ideas will be appreciated.
...
While I try the following:
system( "ifconfig -a | grep inet | "
"sed 's/\\([ ]*[^ ]*\\)\\([ ]*[^ ]*\\).*$/\\1 \\2/' "
" > address.txt" ) ;
I am getting the output in a file. How can I assign the out put to a variable.
...
I'm new to PowerShell and I can't seem to find how to fix this after countless Google searches. I know it's probably easy, but here's basically what I want to do and the error that shows:
PS C:\Windows\system32> $path = "HKLM:\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}"
Get-Childitem $path -ErrorActio...
Forgive me if this is obvious but- is there any way to set up a filepath alias in Windows? I have a bunch of custom app config files that exist in a certain location and they contain filepath references to paths which I am trying to get rid of.
I want to move the files referenced in these configs to a completely different file system pa...
Hi,
I'm trying to let the user import an image in my windows application, in any pixelformat, but i need to save the image in 16bpp4444 format, and that is not an option for pixelformat in .Net imaging class.
Any ideas on how to do this?
Thanks!
...