Majestics 84 Posting Pro

correct one is pfizer->mualim->khost

wrong one is scilife->mualim->khost

its all because selecting pfizer populate the column b which can be selected from any row....

Majestics 84 Posting Pro

pfizer ->mualim -> khost is correct
scilife->mualim->khost is wrong.... think like a software tester.

Majestics 84 Posting Pro

for example i have three company microsoft, oracle and apple for column a , now for column b for micrsoft i have ms office , windows and sqlserver, for oracle oracle server,oracle dbms and oracle report server and for apple applesoftware, apple textpad and apple games.... for ms office in column c i have ms access , ms doc, and ms excel.

what happen if i select this combination

apple ->ms office -> ms access

its all because combo boxes are freely working.

Majestics 84 Posting Pro

take a look at previous pic... i selected column b and c in different rows while there column a is not selected.... so how they are dependent in that row....

Majestics 84 Posting Pro

yes ... u got it man.... but also the it depend on that row column a not any column a value.....

Majestics 84 Posting Pro

I know its difficult to understand by reading.... So i think posting a pic help you....
Take a look i can select data in multiple row, while i want to make dependent combo box , b depend on a and c on b.... but here i can select data freely. i want to restrict user to select data according to a combo box in that row ....

Majestics 84 Posting Pro

There are three combo boxes... a . b and c .... i have attached them with with jtable.
now there are choices in a combo box on which items are dependted on b combo box , e.g for choice "one" in a , b combo box contain 1,2,3. Problem is when if i select any choice in a combo box, the b combo box getitems not only in the row in which i m working but also in all table rows....

Majestics 84 Posting Pro

Its because i m trying hard to get the logic.... I havent got a single answer yet which has explained things very clear......I just want a single explained answer.... :-(

Majestics 84 Posting Pro
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import javax.swing.DefaultCellEditor;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;


public class main implements ItemListener {


	String[] a = {"one","two","three"};
	String[] b = {"4","5","6"};
	String[] c = {"7","8","9"};
	String[] d = {"10","11","12"};
	String[] e = {"13","14","15"};
	JComboBox a1 = new JComboBox(a);
	JComboBox b1 = new JComboBox(b);
	JComboBox c1 = new JComboBox(c);
	
	main()
	{
		
		
				
		String[] col = {"ID","NAME","Address"};
		DefaultTableModel dt = new DefaultTableModel(col,100);
		JTable table = new JTable(dt);
		
		table.getColumnModel().getColumn(0).setCellEditor(new DefaultCellEditor(a1));
		table.getColumnModel().getColumn(1).setCellEditor(new DefaultCellEditor(b1));
		table.getColumnModel().getColumn(2).setCellEditor(new DefaultCellEditor(c1));
		
		a1.addItemListener(this);
		b1.addItemListener(this);
		c1.addItemListener(this);
		
		JScrollPane js = new JScrollPane(table);
		JFrame f = new JFrame("Test");
		f.add(js);
		f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		f.setVisible(true);
		
	}
	
	public static void main(String[] args) {
		main m = new main();
		
	}

	
	public void itemStateChanged(ItemEvent e) {
		if(e.getSource() == a1)
		{
			
		}
		
	}

}

Problem is i want user to select column1 first then he choose column2 according to column1 and column3 then.... But above code is a free excel type you can select any column in any row.......

Majestics 84 Posting Pro

take them in a char array and count the number with the help of for loop or while loop.............

Majestics 84 Posting Pro

After a preview section................ ;-)

Majestics 84 Posting Pro

I have set single selection interval............................. and tried it still return -1 again and again when i select column having combo bx in a row...

Majestics 84 Posting Pro

when i click on a column on which editor is attached , the getselectedrow return -1 ...... I have also tried list selection listener but nothinhg work properly....

i dont think it need code.... Please help.....

Majestics 84 Posting Pro
Majestics 84 Posting Pro

Yes it worked... thanx alot... but my table has three combo boxes... it worked great for only one other two are not working properly..... any idea?

Majestics 84 Posting Pro

Write a note with your software that Software require JRE ... and provide link.... Thats all possible............. ;-)

Majestics 84 Posting Pro

I want to provide report facility in my software.... I have seen jasper reports , crystal reports and many other.... In all of them i like crystal reports because they are easy to make.... can anybody tell me how to connect crystal reports with java app.... I dont have any sign regarding to code....


Also an ir-relvant question , how dani web categorize poster.... i mean i m junior poster when my posting rank upgrade and in what.....(Sorry if any one mind it)

Majestics 84 Posting Pro

Thanx ezzaral , i m dying to check it , if it work u rock 10000000000000000000000000 times.

Majestics 84 Posting Pro

www.youtube.com/watch?v=LF5cLVivV_Y check this video. its for jar making , after converting to jar , u need jar to exe converter .....

Majestics 84 Posting Pro

Check the tutorial for jar creation from netbean Ide , then convert that jar into exe through exewrapper.... Even all these you need jdk kit installed on the system for running the exe files...

Majestics 84 Posting Pro

Lucky dude...........................

Majestics 84 Posting Pro

mkorbel please check the question.................................. Thank you for your help

Majestics 84 Posting Pro

Check my previous post , it isnt regarding to same question... As in jtable when u press the cell which contain combo box , that make combo box visible and drop the items for selection. I want to set it visible so user at least know that it is combo box cell... In simple word jtable with combo box look like a ordinary table, no sign of combo box from start....

Majestics 84 Posting Pro

Sorry , it looks like i m a bit harsh but i cant post my emotions with my post.

Majestics 84 Posting Pro

Now i think its toooo easy to get the idea... Even a newbie can understand the problem....

Majestics 84 Posting Pro
table.getColumnModel().getColumn(3).setCellEditor(new DefaultCellEditor(company));

it mean adding combo box in a single column

table.getColumnModel().getColumn(4).setCellEditor(new DefaultCellEditor(party));

it mean adding combo box in second column

table.getColumnModel().getColumn(5).setCellEditor(new DefaultCellEditor(station));

it mean adding combo box in third column

now i have used sql statement to add item in each combo box

........................................................................
I have explained it , if u are still wondering for the code , i will post all the code...

My problem is that if i select a A combo box value in row one it not only load values to B combox row 1 but also in entire table ..... I m gona post some picture if you still not understand.....

Majestics 84 Posting Pro

Agggggggggggghhhhhhhhhhhhhhhh its my thrid question , atleast i expect a single answer from experts.........

Majestics 84 Posting Pro

I have made a single combo box and added it with table... Items are added from database.
There are three combo box A , B AND C ... B depend on A And C on B. Now if i select anything from row one A combo box it will load data not only in row 1 B combo box but also entire table B Combo Box ... Is there any solution for this....

Majestics 84 Posting Pro

Sorry my drawing isnt very good.... It look like figure A , but i want it to look like Figure B from start. Any one who used combobox in table has already experienced it...

Majestics 84 Posting Pro

I want combo box in jtable visible from start not when i click the cell... any idea?

Majestics 84 Posting Pro

why java not support direct assignement.... i m doing every thing according to logic... Thanx for above suggestion. I already did that... but i dont want that method i want direct assignement... its my home work...

Majestics 84 Posting Pro

i have added a picture panel in jscroll pane

scrollpane.add(pic1);

now i want that on run time when user click on another pic panel it will be shown at pic1 scroll pane, so i simply use this code

scrollpane.add(pic2);

but it doesnt work , so i searched a bit over internet and find some threads about repaint , revalidate and validate function , i use them all but nothing work...

scrollpane.add(pic1);
scrollpane.removeall();
scrollpane.revalidate();
scrollpane.repaint();
scrollpane.add(pic2)
scrollpane.revalidate();
scrollpane.repaint();

Thats what i got .... i have explained every thing, kindly please help..................

Majestics 84 Posting Pro

Hahahahaha............. locking is the best solution..... One last question but not related to this topic.... I m a junior poster now... when i will be promoted and can i get the list that on how much post what will be the rank... :-)

Majestics 84 Posting Pro

I know all the details of router ........ I use Adsl modem and router (zxdsl).... As u already suggested a router case, i think its a good idea... but if we change the factory default setting to my setting so even router is reseted nothing will change, so i m wondering solution for my new problem...

Majestics 84 Posting Pro

Excellent Idea jingda ........... But can i change the internal factory setting of router?

Majestics 84 Posting Pro

I want to prevent my router from hard reset.... My friend often press the hard reset button to tease me.... Is there any way...................

Majestics 84 Posting Pro

Add MouseListener Interface in the class, add mouselistener property with the button , write necessary function of mouse listener
http://download.oracle.com/javase/tutorial/uiswing/events/mouselistener.html
write your code in any function of mouse event which is for preferable for you....

Majestics 84 Posting Pro

You need external Api for this... try this http://www.jasypt.org/easy-usage.html

Majestics 84 Posting Pro

Hire a freelancer.

Majestics 84 Posting Pro

The error which you are talking about is mostly cause by application. uninstall bit defender... if still the problem occur , then check which software you have installed recently....

Majestics 84 Posting Pro

Use windows hibernate option....

Majestics 84 Posting Pro

Ide make things very easier... Running application from command prompt not only harder to debug but also lot difficult for new user's... On performance factor there is no difference....

Majestics 84 Posting Pro

Thanx please post some name's....

Majestics 84 Posting Pro

i want to buy a outlook web access from hosted service and i want it to attach with my already purchased domain present on different location, what is the procedure to link the owa with sub domain? Thank you...

Majestics 84 Posting Pro

I AM WORKING OVER NEWS SECTION OF MY WEBSITE... I WANT TO RETRIEVE THE NEWS PRESENT IN THE DATABASE AND SHOW THEM AND ALLOW CHECK BOX TO SELECT THE NEWS TO DELETE THEM...
I am able to create the news section that retrieve the data from mysql database and also provide the check box facility.... But how can i tell my php script that how many check boxes are selected ....

<form action="check.php" method="POST">
<?php
database connection
selecting database
retrieving record and attach check box with each
close database
?>
</form>

now in check.php , how can i retrieve the records , when i dont know how much news are selected... Thanx

Majestics 84 Posting Pro

Network aren't far away, but we have bandwidth problem in our city only 2 MB DSL is available here and we require 4 MB , so we have taken two internet facility to balance the network. Now the problem is network 1 want to see the network 2 data... And that imposible because both adsl router route data at 192.168.1.1 and if i combine them so how can i configure them....

Majestics 84 Posting Pro

one network with one internet connection and other with another internet connection , in short two modem and two router....

Majestics 84 Posting Pro

2 networks with seperate internet , i want to join them , is there any method...

Majestics 84 Posting Pro

Typical problem for DownloadManager's..... Read this stuff but only table code...
http://www.java-tips.org/java-se-tips/javax.swing/how-to-create-a-download-manager-in-java.html

Majestics 84 Posting Pro

Small business dont require more then 2Mbps
Medium size business require atleast 10Mbps
Large Business already have a setup with ISP's So they posses multiple Wan Connection and a large Setup...