Is there anyway to format Phone Numbers and/or Web Address [U][B]PRIOR[/B][/U] to inserting them into the database? For example, let's say a user puts one of the following telephone numbers into the box: (777) 111-2222 777-111-2222 777.111.2222 7771112222 I would like these to be stored in the database as: (777) 111-2222 Similarly, with web addresses if the user puts something like: [url]www.domain.com[/url] domain.com [url]http://domain.com[/url] [url]http://www.domain.com[/url] I wanted it to be stored in the database as: [url]http://www.domain.com[/url] Any ideas?
|+0 forum 9|
This is a simplified version of a larger project. I have three JPanels contained in a larger JSplitPane called [ICODE]wholePanel[/ICODE]. The top panel and left panel hold labels and buttons, which I have not included here. The lower right panel, called [ICODE]canvasPanel[/ICODE], is where I draw shapes. I'm trying to tilt an oval at an angle and I am successful at doing so. However, a problem occurs when I resize [ICODE]canvasPanel[/ICODE]. The oval will jump if you drag the Pane dividers to resize. I believe that what is occurring is that the oval is realigning itself sometimes with respect to …
|+0 forum 6|