81 Topics
I'm trying to find all quoted strings in a given text so that I can apply proper highlighting. I've tried various regex but can't seem to get the results I want. [code] String line = "a big \"yellow\" dog! And a \"purple\" bird!"; String[] tokens = line.split("\".+\""); [/code] That cuts … | |
After a form is completed its submitted to another page to process the form. Once that's done, it forwards back to where visitor was. I want to display a message to the visitor first before moving to the next page, so how can I delay the page forwarding? | |
I'm using a JEditorPane and StyledDocument, which automatically wraps text to the window. I cannot have this, I need the window to allow horizontal scrolling of the text. I've been all over yahoo and google and cannot find an answer on how to disable word wrapping. And before anyone tells … | |
Does anyone know how the compareTo() in TreeSet is implemented? I needed a sorted list of String elements and was going to use a binary chop method to find if a search key was in the list. Is this how the TreeSet does it already? Reason I'm asking is because … | |
Is there a way to set the number of spaces shown for a tab? (tab as in a tab character) I've made an editor using a StyledEditorKit and StyledDocument, but tabs give more spaces than I would prefer. | |
I want to add theme support to my program so that users can just download jar files containing a LnF and just drop it into an extension directory or whereever. I'll just scan that directory for jar files to see which are present. Is there a way search for a … | |
The probably isn't the parsing actually, I can't even get to that part yet. The webpage uses a different character set, "windows-1252". But even after setting the reader to use that charset (which exists in the system), I still get the ChangedCharSetException. [code] String link = "myurl.com"; URL url = … | |
The object I use to create a Transferable object with is the same object I should get on the drop component, right? All I want to do is drag a row from one JTable onto another JTable. I don't want to copy the data, only send index number of the … | |
I have the following code which changes the background image of table cells when mouse over. It only seems to work in IE. I don't think it worked in Safari either. [CODE] function menuRollOver(tID) { tID.background="images/menu_highlight.gif"; } function menuRollOut(tID) { tID.background="images/menu_normal.gif"; } [/CODE] Some html for my table cell: [code] … | |
I'm using JMF to transmit webcam data to another pc. I'm not using another thread yet, but I'm assuming that ServerSocket.accept() will hault the program until something attempts to connect to it? It seems to connect ok, but I dont get any video, just a black screen. So maybe the … | |
I have a JTree, the renderer uses JLabels. If I setOpaque(false), then I get display issues with highlighting tree nodes/leafs, so I keep the rendering of the jtree opaque. I'd like to display an image for the background and have the text from the jtree elements displayed over top of … | |
Do the g4 powerbooks require a specific brand? Or can I use just about any ddr333 so-dimm? | |
I've had a machine lying around for awhile now and recently decided to install Fedora on it. It used to run redhat fine, but I haven't used the pc in over a year. Sometimes, the computer just sits at a black screen with no signal being sent to the monitor. … | |
i just recently bought my first mac, a powerbook running tiger. Naturally, the laptop keyboard has no print screen key, so how can I take a screenshot into the clipboard? | |
Friend's Dell Dimension 4600 (piece of over-priced junk) what to sh*t and so now I'm trying to fix it. The recovery discs that Dell provides only work within Windows. (defeats the purpose if you ask me) On bootup, it gives me an error about accessing the System folder, on safe … | |
Is there a way I could create a variable that belongs to a table much like a static variable belongs to a class? So it "thing=1, person=2" were variables belonging to the table structure (not each row), then I could do something like this: SELECT * FROM table WHERE type … | |
When running IIS on 2k pro, is there a way to show the current connections, and which files are being accessed? | |
Does anyone know of a Highlighter class I can use with JTextArea for HTML code? | |
I installed PHPDev5 and can run my php files no problem on localhost. However, since I'm the only who can seem them, I wanted to setup IIS so that my site could be seen by others on the internet. (until i move to an actual dedicated server) I believe the … | |
Working on an HP pavilion 4445. (celeron 333). Friend was having weird visual glitches when he plays freecell. Figured just a graphics problem or Windows98 needed updated. Did all that, still problems. Switched cables on the cdrom because that wasn't working. Reformated to install 98se instead, but the cdrom isn't … | |
Running Win2kpro with mysql server 4.1. I installed the service "mysqld-max-nt.exe", but it won't run. It's set for automatic, but even if I try to activate it manually, it won't. I checked the event viewer and it shows only this: "[size=1]The mysql41 service terminated unexpectedly"[/size] [size=1][size=2]Could there be a problem … | |
whenever I try to open a file straight from the net, i get this error. It can't access the temp folder or something. And why it says content.IE5\ I don't know, since I have IE6. [img]http://www.dannywartnaby.co.uk/rgt/attachments/error_ohjoy.jpg[/img][url="http://www.dannywartnaby.co.uk/rgt/attachments/error_ohjoy.jpg"][/url] | |
I just installed a 2.8 prescott chip, running windows 2k pro. Windows says I have a acpi multiprocessor system. And task manager shows 2 cpu usage boxes. Any ideas why? | |
I've run ad-aware and spy sweeper. I'll delete everything it finds, only to run the programs again to find that its all back. I manually remove the traces in the registry, and they pop back in. My homepage keeps getting set to "about:blank" which isn't the real blank page(full of … | |
running dual athlons in win2kpro. Is there a way to set the affinity of a process automatically when it starts? So I don't have to manually do it every time? A certain game has a bug with dual cpu's. And it's hard to manually set the affinity before the game … | |
Yea, I still use 98 version. I like it's interface better. Anyway, I have a frontpage web using shared borders. If I edit the right border html file, I have open all my pages and click save for the newly updated border to show up. Is there a simple way … | |
I changed the computer driver from uniprocessor to multiprocessor. However, system properties still only displays the name for 1 processor. Is it only suppose to show one? I did a render test with studio max, and it's quite obvious that it's using the second processor. (turned a 1.42 minute irender … | |
Ok, my mobo I've had for over almost a year has like 2-3 of these slots. But what the heck uses them? I haven't found any hardware yet that does. | |
What's your experience with them? Do you like them or hate them? I had the first model they put out for the athlons years back. Didn't work too well. All three ram slots worked, but only one at a time. It wouldn't let me use more than 1 stick at … | |
What would be the equivalent of msconfig in windows 2k? Somebody told me once, but I can't remember. | |
This started awhile ago. When I click to d/l a zip file, instead of it asking to be saved or opened, it just automatically starts to open it. The real problem is when it's finished downloading. It can't open the zip because i get an error which says "Access to … |
The End.