If I use Start->Run to browse to a UNC by entering two backslashes, the droplist is populated with a long list of UNCs I have visited. Most of these UNCs are *not* under the RunMRU registry key. So, two questions:
1. The UNCs listed that are *not* in RunMRU - where on the system are they kept...
Good day -
I would like to sort a file like this (colon as separator):
ddd:260:a
bbb:200:a
ddd:27:a
bbb:30:a
I'd like the results to be ordered by field 1, then by field 2 numerically, so that the result is:
bbb:30:a
bbb:200:a
ddd:27:a
ddd:260:a
If I'm reading the man page right, the...
Is there a runtime penalty for putting more jars in the CLASSPATH than the application actually requires? What exactly does the JRE do with all the jars in CLASSPATH? Does it unjar everything at the start? Or does it only start looking through the jars for a particular class when a call to...
I'm attempting to set an environment variable (without using the System control panel) so that every user who logs on has it set. This is on a Win2K server SP4 running standalone (no clients). My login vbs script is something akin to:
Dim shell
Dim volEnv
Set shell =...
There seems to be a three-point discrepancy between "equivalent" font sizes in Java vs. MS Office. For example, if I set a JLabel to Arial 11, it's the same font I see in a Word doc using Arial 8. Similarly, Tahoma 12 in Java is the same font as Tahoma 9 in Word. Have others observed this...
The out-of-the-box font I'm seeing in my JFrame GUI is too small. Is there a way to globally set the font so that all JComponents inherit the larger font?
GD
I have a menu bar containing JMenuItems created using the (Action) constructor. The JMenuItems have both icons and text labels. How would I implement a "show/hide icons" capability? Is there a way to use JMenuItem's getComponent() method to remove/restore the icons without actually recreating...
Is there a way to limit the number of characters that may be typed in an editable JComboBox, analogous to setting up a Document model for a JTextField?
WGD
I'd like to go from a workgroup to a domain without using the System control panel. Is there a way to join a domain using a bat (1st choice) or vbs (2nd choice) script?
GD
I'm getting two different stories on how to upgrade from USB 1 to USB 2. One source says it's a hardware issue - that the USB 1 hubs on the motherboard aren't upgradeable and I need a separate card to get USB 2. Another source says it's a device driver issue - lose the USB 1 device driver...
This batch script:
@echo off
setlocal
goto :main
:sub1
echo in sub1
set sub1_called=WAS
goto :eof
:main
set sub1_called=WAS NOT
(
call :sub1
echo sub1 %sub1_called% called
)
outputs the counterintuitive result:
in sub1
sub1 WAS NOT called
...but if the parens are removed, it...
On Win32, since the getgr* suite is not implemented, is there a way to figure out if the user running my perl script is a member of the Administrators group?
GD
Is there a way to discard the output of a command by redirecting its output to a "bit bucket"? (E.g., on Unix, one says:
my_command > /dev/null 2>&1
(or)
my_command >& /dev/null
depending on which shell is being used.) Is there an analogous BASIC syntax?
Running version 5.005_03 under Windows 2000.
I am attempting to launch wordpad.exe, giving its full path, using "system". The code (file "wp.pl") looks like this:
use strict;
my @systemCmd =
("C:\\Program Files\\Windows NT\\Accessories\\wordpad.exe", "");
system (@systemCmd);
I run it from...
We have a Solaris 8 server we use for our development work, but it will be deployed eventually as headless. Aside from the obvious steps of unplugging the monitor, keyboard and mouse, and making sure we can tip into a serial port, is there anything else we need to do? For instance, is it...
Using JDK 1.4. New to Java.
I have been playing with saving a JPanel and its contents to a file using writeObject, then restoring it with readObject. However, when the JPanel is read back and displayed, I'm finding that any action listeners I had set up are not being restored. Is this...
Using JDK 1.4. New to Java.
I have a Swing app consisting of a JFrame containing a JPanel containing a couple of JButtons ("Save" and "Restore") and a JTextField. When "Save" is selected, the app does a writeObject of the JPanel to a file. When...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.