Majestics 84 Posting Pro

Use

furniture[the_array_number] = new Furniture();

to initialize the array item....

Majestics 84 Posting Pro

Yes.... Network 1 can access network 2.. and vice versa.... Also Printer Services...

Majestics 84 Posting Pro

I have two network , one is 192.168.0.1 and other is
192.168.10.1 ... I want to combine both networks ... Both networks are connected with internet... I dont want them to interfere in each other internet connection, Just want to share files and printer services between them... Is there any solution for this...

Majestics 84 Posting Pro

In a day research i found getdlgitem and set text functions... My problem is , i want to access the data of a database app designed in vb... i want to copy the table data and save it in file form and then back to table form in the app...

Majestics 84 Posting Pro

It will be easier to design a chatroom over applet, if you want to make a chat room in java desktop then you have to learn java tcp and udp connection , because you have to communicate with your fellow computer's...

Majestics 84 Posting Pro

I want to embed microsft notepad in my java application.... is there any way... i dont want to use java own made notepad....

Majestics 84 Posting Pro

I have already asked about the problem in java forum... Now i think the solution is only possible through microsoft products... Problem is i want to get the handle of a application and send commands to that application... Is it possible,, commands are send to combo box , text area, buttons etc..... Please help to solve this problem....

Majestics 84 Posting Pro

i mean

function initloop()
{
write loop here 
}

and write initloop() in constructor of StudentContainer...

Majestics 84 Posting Pro

why dont u make a separate function and use it in constructor to initialize....

Majestics 84 Posting Pro

Above is just a example, dont confuse yourself by looking in code.... :-)

Majestics 84 Posting Pro

I mean

tempclass c[] = new tempclass[10];
c[0] = new tempclass();// with or without parameter...
Majestics 84 Posting Pro

you haven't initialized Student class object before using it....

After declaring array , u have to initialized the objects one by one , or through loop.

Majestics 84 Posting Pro

You forget this

students[0] = new Student();

same goes for all other...

jon.kiparsky commented: This is correct. Ignore what I said. :) +11
Majestics 84 Posting Pro

I am doing a web project... I am new to website design ... I want to create such a website which look same in all browser... Most of the time different browser cant follow same layout and website structure doesnt look same... I have searched this matter alot but didnt got any possible solution...

Majestics 84 Posting Pro

Threads will make them more easier..... Please post your code....

Majestics 84 Posting Pro

Close your public void bublesort function()....................

Majestics 84 Posting Pro
Majestics 84 Posting Pro

Love you all.................. Thank you for your great support and time............

Majestics 84 Posting Pro

Thanx... I dont know wether it will solve my problem or not but its a great thing ..

Majestics 84 Posting Pro
Majestics 84 Posting Pro

Actually the program is made by a fool... its a kind of application in which u can not save the data,, if accidentally computer restart or hang then u have to re enter the values again.. until u press "save button" the program is temporary utilizing ram instead of hard drive for storage... and if u press save all data is saved to database and u cant "edit" that back............... I know it will make u laugh but its the scenario.... Also i want to ask one more thing, i have been using dani web since 3 year and website doesnt update itself automatically, i have to refresh the page....

Majestics 84 Posting Pro

Its a network based database application. Use for making invoice... I know this is hard but we can achieve it. Its not too complex but it will take a month for a single user to recreate it ... Company has no budget for the project now... Thanx to all for their kind suggestions.

Majestics 84 Posting Pro

I m permitted to add "save button", company dont have the code.... How can access the internal data of an app... I mean wether i have to copy its ram data or some thing else....Any sufggestion .... Because its a new thing for me in programming... Its not simple for me to do now... I know there are some special programmer that can help me... Just the idea no need for explanation.

Majestics 84 Posting Pro

I dont have the source code , also that person isnt here any more.... Now i want to add "save option" in the application... Is there any way... Senior Poster might faced such problems in past.... :-)

Majestics 84 Posting Pro

There is a database program for making invoice , its written in vb.net, there is no save option in that program, the programmer who designed it is not availble now... I want to add save button, the solution i have thought is to take the handle of the application and directly interact with it.... Please kindly post ur kind suggestion... Thank you in advance. (I want to program in java , i cant write the whole program from scratch).

Majestics 84 Posting Pro

Please remove me from this website. I am feed up getting digest and threads from this website. Thank you in advance, please email me after removing my information.

BestJewSinceJC commented: man up and stop crying all the time. +0
Majestics 84 Posting Pro

Idiot, don't you see that search bar is open for all and i can see utorrent in them directly , all i need a experience programmer help for a good start not little snort like you. Go to hell.

kvprajapati commented: No! No need of this. -1
masijade commented: tsk.tsk.tsk. If you want code, ask for code, so you can be immediately ridiculed. -2
nav33n commented: Behave. -1
Ezzaral commented: Tantrums not needed here. Move along. -2
Majestics 84 Posting Pro

BestJewSinceJC , i give you credits for your guts , well done and thanks.

Majestics 84 Posting Pro

I didnt mean this, like in micrsoft word there are two menu , first has file edit... option while second has pictures like for blank page ... , I THINK ITS CLEAR NOW.

Majestics 84 Posting Pro

How in java we can add double menus, like file bar and search bar both are different in internet explorer? Thanks in advance.

Majestics 84 Posting Pro

Column property or row property dialogue boxes.

Majestics 84 Posting Pro

http://www.jformdesigner.com/doc/help/layouts/gridbaglayout.html

Please visit this website, there is a image of a dialogue box , can anyone help me please making them. I dont want full code just some hints . Thank You.

Majestics 84 Posting Pro

Is there any better forum then DaniWeb where i can get good programmer's and also fast repliers?

Majestics 84 Posting Pro

How to set caption icon in java? Like firefox icon on the top caption bar. and how to run a process in background in java? Thank you.

Majestics 84 Posting Pro
Majestics 84 Posting Pro

I want to design utorrent client for my semester project in java, can anyone tell me where should i start and what are the necessary steps for this, also if any useful website and information. Thank you.

Salem commented: Yknow, you sounded like you wanted to do this yourself; apparently thouugh, you just need spoonfeeding like all the other "project" types. -4
Majestics 84 Posting Pro
import javax.swing.*;

import java.awt.*;
   
  public class mainForSimpleGUI
  {
      public static void main(String[] args)
      {
          SimpleJavaGUI labelFrame = new SimpleJavaGUI(); 
          labelFrame = new SimpleJavaGUI();
          labelFrame.setLocationRelativeTo(null);
          labelFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          labelFrame.setSize(300, 300);
          labelFrame.setVisible(true);
      }
   
  }

    @SuppressWarnings("serial")
	class SimpleJavaGUI extends JFrame
  {
      public  JTextArea theTextArea;
   
      public SimpleJavaGUI()
      {
          super("mainForSimpleGUI");
          setLayout(new FlowLayout() );
          theTextArea = new JTextArea(2, 20);
          theTextArea.setLocation(15, 30);
          theTextArea.setAlignmentX(CENTER_ALIGNMENT);
          theTextArea.setAlignmentY(CENTER_ALIGNMENT);
          
          theTextArea.setText(" Follow the white rabbit.");
          theTextArea.setToolTipText("This is a text area.");
          theTextArea.setEditable(false);
          theTextArea.setDisabledTextColor(Color.BLACK);
          theTextArea.setLineWrap(true);
          theTextArea.setBorder(BorderFactory.createLineBorder(Color.black) );
          add(theTextArea);
      }
  }

I applied this and it is showing me the text area.

Majestics 84 Posting Pro

Use line 19 before 16 and 17. You are not initializing the theTextArea.

Majestics 84 Posting Pro

Java is derived from C. You can use dynamic memory allocation.

Majestics 84 Posting Pro

Thank you, now i don't this. I was working on a java on screen keyboard from 3 months . But the problem was of getting focus and send keys to OS. Finally 3 days back i completed the project and completely in java, no jni linking . I want to thanx all of you who helped me during my projects.

Majestics 84 Posting Pro

I am giving this title so most of you attract towards this thread. I actually want to know is there any way to link mfc created programe with java . As all the programmers know that mfc contain a lot of files some time static linkage and some time dynamic . It also contain some resource files. So please any of you can help me in this , any kind of help will appreciated. Please Help Me.

Majestics 84 Posting Pro

Java Applets

Majestics 84 Posting Pro

Sorry but it didn't help me ... I want the answer from my given source code.

Majestics 84 Posting Pro
// OnscreenKeyboard.cpp : Defines the class behaviors for the application.
//

#include "stdafx.h"
#include "OnscreenKeyboard.h"
#include "OnscreenKeyboardDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// COnscreenKeyboardApp

BEGIN_MESSAGE_MAP(COnscreenKeyboardApp, CWinApp)
	//{{AFX_MSG_MAP(COnscreenKeyboardApp)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG
	ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// COnscreenKeyboardApp construction

COnscreenKeyboardApp::COnscreenKeyboardApp()
{
	// TODO: add construction code here,
	// Place all significant initialization in InitInstance
}

/////////////////////////////////////////////////////////////////////////////
// The one and only COnscreenKeyboardApp object

COnscreenKeyboardApp theApp;

/////////////////////////////////////////////////////////////////////////////
// COnscreenKeyboardApp initialization

BOOL COnscreenKeyboardApp::InitInstance()
{
	AfxEnableControlContainer();

	// Standard initialization
	// If you are not using these features and wish to reduce the size
	//  of your final executable, you should remove from the following
	//  the specific initialization routines you do not need.

#ifdef _AFXDLL
	Enable3dControls();			// Call this when using MFC in a shared DLL
#else
	Enable3dControlsStatic();	// Call this when linking to MFC statically
#endif

	COnscreenKeyboardDlg dlg;
	m_pMainWnd = &dlg;
	int nResponse = dlg.DoModal();
	if (nResponse == IDOK)
	{
		// TODO: Place code here to handle when the dialog is
		//  dismissed with OK
	}
	else if (nResponse == IDCANCEL)
	{
		// TODO: Place code here to handle when the dialog is
		//  dismissed with Cancel
	}

	// Since the dialog has been closed, return FALSE so that we exit the
	//  application, rather than start the application's message pump.
	return FALSE;
}

From where this programe start execution ?

Majestics 84 Posting Pro

I have source code of onscreen keyboard in MFC , is there any tool that help me to convert it in java..

Majestics 84 Posting Pro

Well is there any way that java can get the handle of event which is focused?

Majestics 84 Posting Pro

All what you said is write but i want to do it automatically not manually clicking and there can any other active programe like microsoft word then how my programe send's the key .... I always post my problems here becz of great logical programer's and now no body can answer my this question....

Majestics 84 Posting Pro

JTextField only work inside java i want to send the events to outside environment.

Majestics 84 Posting Pro

well sorry i forgot to take that code out of these , i just when i press any button it do in my keyboard through mouse then it work and that's what all i concerned.

Majestics 84 Posting Pro
import javax.swing.*;

import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.Robot;
import java.awt.Event;
import java.awt.AWTException;




public   class keyboard implements ActionListener
 {
	
	int i;
    String s[] = {"esc","F1","F2","F3","F4","F5",
   		        "F6","F7","F8","F9","F10","F11","F12",
   		         "psc","slk","pau","A","B","C","D","E",
   		         "F"};           
    String g = "";
    Object b;
    
    JMenuBar m = new JMenuBar();   
    
    JMenu m1 = new JMenu("File");
    
    JMenu m2 = new JMenu("Keyboard");
    JMenu m3 = new JMenu("Setting");
    JMenu m4 = new JMenu("Help");
    
    JMenuItem m11 = new JMenuItem("Exit");
    JMenuItem m21 = new JMenuItem("StandardKeyboard");
    JMenuItem m22 = new JMenuItem("ExtendedKeyboard");
    JMenuItem m26 = new JMenuItem("RegularLayout");
    JMenuItem m23 = new JMenuItem("101");
    JMenuItem m24 = new JMenuItem("102");
    JMenuItem m25 = new JMenuItem("106");
    JMenuItem m31 = new JMenuItem("Always On Top");
    JMenuItem m41 = new JMenuItem("About On-Screen Keyboard");
    JFrame f = new JFrame();
    JButton j[] =  new JButton[(s.length)]; 
    Robot r;
   
	
    
	keyboard()
	{
	    m1.add(m11);
	     m2.add(m21);
	     m2.add(m22);
	     m2.addSeparator();
	     m2.add(m26);
	     m2.addSeparator();
	     m2.add(m23);
	     m2.add(m24);
	     m2.add(m25);
	     m3.add(m31);
	     m4.add(m41);
	     
	     m.add(m1);
	     m.add(m2);
	     m.add(m3);
	     m.add(m4);
	     
	     m41.addActionListener(this);
	     
	 
	       
	     
	     for(i=0;i<s.length;i++)
	     {  
	    	 j[i] = new JButton(s[i]);
	         j[i].setBackground(new Color(255,255,255));
	         j[i].addActionListener(this);
	         
	     }
	      
	     
	     f.setLayout(new FlowLayout(FlowLayout.LEFT));
	     f.setSize(630,200);
	     Container c =  f.getContentPane();
	     c.setBackground(new Color(33,66,119));
	     
	     f.setTitle("On-Screen Keyboard");
	     f.setJMenuBar(m);
	     
	     for(i=0;i<s.length;i++)
	    	 c.add(j[i],JFrame.LEFT_ALIGNMENT);
	     
	         
	     f.isMaximumSizeSet();
	       
	       f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	       f.setVisible(true); 
	       f.setFocusableWindowState(false);
	       
	       try{
		       Robot r = new Robot();
		       r.delay(500);
		       r.keyPress(KeyEvent.VK_7);
		       
		       }
		 catch (AWTException e) {
	  e.printStackTrace();
	}
	     
		}
	     
	  
	
	public static void main(String args[])
	{
	keyboard k = new keyboard();
	
   
	}      
	
	public void actionPerformed(ActionEvent e)
	{
		if(e.getSource() == m41)
		JOptionPane.showMessageDialog(null
				                      ,"Project By\nPirZada(20)\n"+
				                      	        "Salman Sayar(22)\n "+
				                      	        "Wajahat Kareem(16)","About On-Screen Keyboard",
				                      	        JOptionPane.INFORMATION_MESSAGE);
			
		if(e.getSource() == j[16])
		{
             
					
			
					
		}
				
		}

	
  
  
}

Dear all user's please help , i am making on screen keyboard like XP one but i am confused , i want it to behave it …