...private int startY;
private int diskWidth;
private int diskHeight;
private int arcWidth;
private int arcHeight;
/** Creates a new instance of Disk */
public Disk(Graphics gfx, int x, int y, int width, int height, int arcW, int arcH) {...
...import java.awt.Rectangle;
import javax.swing.JLabel;
import javax.swing.JPanel;
public class hanoiWin extends javax.swing.JFrame {
/** Creates new form hanoiWin */
public hanoiWin() {
initComponents();
}
/** This method is called from within the...
wangdong,
Thanks for taking the time to look into my issue.
You'll have to forgive me, as mentioned, I just started getting into GUI design.
I will cut and paste your code into my netBeans and give it a try, but I do not think it will produce the results I am after (i.e. 1. there is no main...
wangdong,
Thanks for the quick reply...
Actually I have been able to accomplish a few classes similar to yours that print out various shapes. The whole problem began after I used NetBeans GUI builder.
Specifically, in the GUI builder, I added a JPanel and named it gameSheet.
NB generated all...
...handlers to make them draggable.
Any help would be greatly appreciated.
Below is the basic code the NB generates when using the GUI builder.
/** hanoiWin.java
** Created on 2006/08/28, 17:14
*/
package my.tower;
import javax.swing.JLabel;
import javax.swing.JPanel;
public class...
...work at all.
Could anyone help with the syntax (preferably .htaccess) to accomplish this.
Currently my .htaccess file has: (in the php folder)
#deny all access
deny from all
#Hide file index
IndexIgnore *.php
however it doesn't work unless I put it directly in the .confg file.
thanks...
I have to pages:
login.html and Content.html
both contain multiple (external) php scripts in the header.
Is it possible to pass variables between all the (necessary) .php files as they are executed.
since the .php files are external and the page being accessed is a .html I don't think its...
*gasp*
wow, thanks thenightowl.
thats actually somthing I've been trying to accomplish for a while now...although I have recently been spending time fooling around with RegExp's.
your function is WAY better than the one I came up with, it makes the email look a lot cleaner.
I've been diving...
SWEET!
That is exactly what I was looking for, specifically that "$1" was a great help...
my understaning of the $ is that it forces a match at the end of a line. Could you explaine a little, its purpose in this syntax?
s=s.replace(rx,"$1");
sorry for the extra question, but that little $1...
...contents within the <div> tag. so the out put would be:
SOME TEXT
A working example (for more basic tags) is as follows:
string = "<u>THIS IS A STRING</u>";
string = string.replace(/<[\/]{0,1}(U|u)[^><]*>/g,"");
now, the value of variable string = THIS IS A STRING
is that clearer?
atsea
Hi tsuji,
tried that already...it not only removes the <div> tag, but everything within them as well.
any more suggestions?
also, being new to regular expressions, could you please explain to me the purpose of "RegExp.$1".
Thanks,
atsea
...data ='<div style="text-align:center;width:inherit;text-color:blue;">SOME TEXT</div>'
data = data.replace(/<(div)([ ]([a-zA-Z]+)=("|')[^"\']+("|'))*[^>]+>([^<]+)(<\/div>)/ig);
//this expression does not work (still), but I was able to do something similar when removing simple tags (i.e <b>)...
trollacious:
Thanks for the suggestion, however its not a matter of getting the inner text/html, I want to remove the tags...
I would like to accomplish this with a regular expression (i.e. NOT obj.parentNode.removeChild(obj))
Thanks
atsea
...to accomplish the following:
Input:
<div style="text-align:center;width:inherit;text-color:blue;">SOME TEXT</div>
Desired Output:
SOME TEXT
currently playing around with something like this:
/<(div)([ ]([a-zA-Z]+)=("|')[^"\']+("|'))*[^>]+>([^<]+)(<\/div>)/ig
Any suggestions?
Thanks
atsea
Not sure if this is what your looking for...
Take a look at these sites:
(some tutorials)
http://sqlcourse.com/table.html
http://www.webdevelopersnotes.com/tutorials/sql/index.php3
As well, you should find this site helpful (bookmark it)
http://dev.mysql.com/doc/refman/5.0/en/index.html
the...
I have a form with a bunch of date fields (among others: name, address, etc)...
each date field accepts the date in the format mm/dd...
All the information on the form is saved to a DB...
My save (submit) feature works great except for the dates. Beacuse the format does not match the...
Alright,
so I have the prompt box working almost exacly the way I want. There is one more thing I would like to accomplish.
Currently I have somthing like this:
<script>
function javascript_prompt() {
//two arguments are required for "prompt" boxes
var message = "Please enter...
mwolf00,
thanks for the quick response.
Your code is exacltly what I needed to steer me in the right direction. (although FF didn't seem to like your code)
after playing around with it I came up with this:
<script>
function javascript_prompt() {
//two arguments are required for...
I remember passing over a site that had a tutorial how to do this, but I didn't think much of it at the time and now I can't find it...hopefully someone here can point me in the right direction.
I have created a small table using <div>'s some of these I would like to give the user the abilty to...
BRPS,
Sorry, I did not answer your question correctly...
(this forum doesn't allow me to edit my posts)
The answer is YES, document.write is used. Currently what happens is:
Object Grid is created.
then the Objects for Row, Col and Cell are created.
then a function generates HTML to represent...
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.