Category Archives: Uncategorized

Colorwalls

Colorwalls. Advertisements

Posted in Uncategorized | Leave a comment

SQL TO INCREMENT EXISTING COLUMN VALUE BASED ON PARENT AND CHILD ID

DECLARE i number:=0;BEGIN FOR REC1 IN (SELECT * FROM TBLMCSVDRIVER) LOOP i := 0; FOR REC2 IN (SELECT * FROM TBLMCSVDRIVERFIELDMAP WHERE CSVDRIVERID = REC1.CSVDRIVERID order by fieldmapid) LOOP i:=i+1; update TBLMCSVDRIVERFIELDMAP set ORDERNUMBER = i where FIELDMAPID = REC2.FIELDMAPID … Continue reading

Posted in Uncategorized | Leave a comment

JAVA DEEP CLONING PROGRAM

import java.io.Serializable;class Ant implements Serializable,Cloneable{       public String sms;        public Ant(String name){               this.sms = “Help me ,”+ name +” is eating me”;        }        public … Continue reading

Posted in Uncategorized | Leave a comment

Java Script to Add-Remove Select Options

function demoFun(){ var countryIdJS = document.getElementById(“countryId”).value; var regionSelect = document.getElementById(‘regionId’); regionSelect.options.length = 0; // delete all existing options regionSelect.options[0] = new Option (“–Select–“,”0”); // above line will add new option with value “0” and displayText “–Select–“ regionSelect.options[0].selected=”true”; // above line … Continue reading

Posted in JavaScript / CSS, Uncategorized | Leave a comment

STRUTS : logic:notEmpty

<logic:notEmpty name=”beanName” property=”beanPropertyName”> <bean:write name=”beanName” property=”beanPropertyName”/> </logic:notEmpty>   Note : if you have DataBean.java class with userName as its one property variable, and if you gave one object of  DataBean class i.e “dataBean” in request scope , then you could use … Continue reading

Posted in Uncategorized | Leave a comment

(AVD) Android Emulator not loading on netbeans

Step 1 ) Open your AVD manager Step 2 ) Click on new button on the right hand side top corner Step 3 ) Now follow the Images given here Step 4) Now restart yous Netbeans and Run your android … Continue reading

Posted in Android, Uncategorized | Leave a comment

Java Code of different JOptionPane dialogs

import java.awt.Component; import java.awt.FlowLayout; import java.awt.HeadlessException; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JOptionPane; public class TestDialogue extends JFrame implements ActionListener { JButton button1 =null; JButton button2 =null; JButton button3 =null; public TestDialogue() throws HeadlessException { setSize(200, 200); … Continue reading

Posted in J2SE, Uncategorized | Leave a comment