|
Hey Doofus!
No one here is going to do your homework for you. If you are so stupid that you can't even make a start at this then tell your teacher you want out!
As for
rajisweety wrote: rajesh.saimani@gmail.com
This will be picked up by every web-trawler looking for e-mails. Enjoy the spam!
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
sorry...........it's ohk.
|
|
|
|
|
Absolutely! The following is the code that you need. Just copy and paste it into a java file (a text file with the extension .java):
import java.douche.bag;
for (int i=0; i < 1; i)
{
System.out.println("I'm a douche.bag who tries to get other people to do his homework for him");
}
Buddy - these forums aren't for you to try to sidestep your homework.
Did you really think anyone would?
|
|
|
|
|
|
First of all, it's not 'URGENT'. I don't have any urgent need to do it and I'm sure everyone else here will think so as well.
Secondly, was there any need to post the same thing twice? What purpose did it serve? Do you think that no-one is capable of clicking on the next post down?
No-one is write your program for you. It look's like a school assignment, which means that you are ment to learn how to do it. You're going to get nowhere in life if you pass off other peoples hard work as your own, it's just going to annoy people.
rajisweety wrote: need a program in java as soon as possible.....
I suggest that you pull you finger out and start writing it then.
rajisweety wrote: rajesh.saimani@gmail.com
Tehe, I can sign up to lots of naughty sites using your email and flood you indox with unwanted spam. I'm sure you don't want that.
ps. I think that you should have a read of a message I posted recently, Click[^]. Also, may I suggest Rent-A-Coder[^], if you feel that it is 'urgent'.
My failometer has shot off the end of the scale!
I seem to have misplaced my ban button.. no wait... found it!
|
|
|
|
|
The Query that I am executing is below:
select PRIMARY_KEY from NASTI_AUDIT_FIELD_LKUP nafl,NASTI_AUDIT na WHERE 0 = 0 AND nafl.DESIGNATED_UPDT_SCREEN_NAME = 'NPA-NXX-X MDN Range' AND nafl.FIELD_NAME = 'Category Code' and nafl.NASTI_AUDIT_FIELD_LKUP_ID = na.NASTI_AUDIT_FIELD_LKUP_ID
I have a method formatResults()in the DBAccessor.java file. The above query returns a value of PRIMARY_KEY = 9893834000 and getColumnType of ResultSetMetaData gives me the Integer instead of Numeric. Hence it's trying to cast as Integer and throwing an exception. But my question is why it's returning the type as Integer instead of Numeric. The above query works fine in TOAD. In the database the datatype of this field is NUMERIC. Can any one please help me to figure it out the issue?
|
|
|
|
|
The Query that I am executing is below:
select PRIMARY_KEY from NASTI_AUDIT_FIELD_LKUP nafl,NASTI_AUDIT na WHERE 0 = 0 AND nafl.DESIGNATED_UPDT_SCREEN_NAME = 'NPA-NXX-X MDN Range' AND nafl.FIELD_NAME = 'Category Code' and nafl.NASTI_AUDIT_FIELD_LKUP_ID = na.NASTI_AUDIT_FIELD_LKUP_ID
I have a method formatResults()in the DBAccessor.java file. The above query returns a value of PRIMARY_KEY = 9893834000 and getColumnType of ResultSetMetaData gives me the Integer instead of Numeric. Hence it's trying to cast as Integer and throwing an exception. But my question is why it's returning the type as Integer instead of Numeric. The above query works fine in TOAD. In the database the datatype of this field is NUMERIC. Can any one please help me to figure it out the issue?
private Vector formatResults(ResultSet results, boolean getDateAsString) throws OICException
{
m_logger.debug("Entered into formatResults()" );
Vector rowInfo = new Vector();
try
{
ResultSetMetaData rsmd = results.getMetaData();
int numberOfColumns = rsmd.getColumnCount();
int rowCount = 0;
DateFormat formatShort = DateFormat.getDateInstance(DateFormat.SHORT);
while (results.next())
{
Hashtable rowVals = new Hashtable();
for (int i=1; i <= numberOfColumns; ++i)
{
String colName = rsmd.getColumnName(i);
m_logger.debug("colName : " + colName);
int resultType = rsmd.getColumnType(i);
m_logger.debug("resultType : " + resultType);
Object colValue;
if(results.getObject(i) != null)
{
m_logger.debug("results.getObject(i) : " + results.getObject(i));
switch(resultType)
{
case Types.DOUBLE:
case Types.INTEGER:
m_logger.debug("I am in INTEGER");
m_logger.debug("results.getInt(i) : " + results.getInt(i));
colValue = new Integer(results.getInt(i));
m_logger.debug("colValue : " + colValue);
break;
case Types.DECIMAL:
m_logger.debug("I am in DECIMAL");
colValue = new Integer(results.getInt(i));
m_logger.debug("colValue : " + colValue);
break;
case Types.FLOAT:
m_logger.debug("I am in FLOAT");
colValue = new Float(results.getFloat(i));
m_logger.debug("colValue : " + colValue);
break;
case Types.NUMERIC:
m_logger.debug("I am in NUMERIC");
m_logger.debug("results.getLong(i) : " + results.getLong(i));
colValue = new Long(results.getLong(i));
m_logger.debug("colValue : " + colValue);
break;
case Types.TIMESTAMP:
m_logger.debug("I am in TIMESTAMP");
if (getDateAsString)
colValue = formatShort.format(results.getDate(i));
else
colValue = results.getDate(i);
break;
case Types.CLOB:
m_logger.debug("I am in CLOB");
Clob tempClob = results.getClob(i);
colValue = tempClob.getSubString(1,(int)(tempClob.length()));
break;
default:
m_logger.debug("I am in default");
colValue = results.getString(i);
m_logger.debug("colValue : " + colValue);
break;
}
}
else
{
colValue = "";
}
if (colValue != null)
{
rowVals.put(colName, colValue);
}
}
rowInfo.insertElementAt(rowVals, rowCount);
++rowCount;
}
}
catch(SQLException e)
{
e.printStackTrace(System.out);
throw new OICException(e, e.toString() + "Exception in DBAccessor:formatResults \n");
}
return rowInfo;
}
|
|
|
|
|
Firstly, I admit that I don't know the answer.
But, may I suggest that you put your code in <pre></pre> tags, so that the formatting is preserved and it is easier to read.
And may I ask why you felt the need to post your message twice?
May I also suggest that you should consider tidying up your subject header.
My failometer has shot off the end of the scale!
I seem to have misplaced my ban button.. no wait... found it!
|
|
|
|
|
Hi,
I have a client written in java applet and it listens for responses on http: //localhost/CardPager.
Now, I have a server code written using jsp servlets and a webpage for a user
where I can write a message in a textbox and press the send button, the text message should go to the client.
1. Can someone tell me how do I go about writing this?
2. My next question is suppose I have many client applets running. Each of my clients have a unique ID to them. I want to send the message only to a set of IDs. How to do this.
I hope my questions were clear.
Thank you.
|
|
|
|
|
Hey,
I was hoping someone might be able to help me with some java script.
Im trying to create a button that you can click that will dim just the background with a dark but around 80% opacity 'layer'. Or perhaps a way to temporarily change the background altogether. Then when you press the button again, it goes back to normal (no 'layer'/original background).
I need this because ive got a really bright background on my site, but also have vids that ppl want to watch - and the contrast is a bit much... but i dont want to stop using or permanently dim the background. (to better understand what im looking for here is my site adrs: www.enchantedsun.blogspot.com)
ive seen posts here and there on the internet with dimmer code suggestions, but as far as i can find its all for a pop up - msg or image. And they generally start out dimmed instead of normal. Ive tried editing the code to get what i want, but i cant seem to get it to work at all. My knowledge of java is limited right now (i hope to improve), so please forgive me.
Thanks!
~EnchantedSun
|
|
|
|
|
Hi,
I have written a small code to access javascript function from a java applet.
My function fails at this point
JSObject win = JSObject.getWindow(this);
I do not understand what is the reason.It gives me following errors when i excute the program :
Exception in thread "main" java.lang.UnsatisfiedLinkError: initClass
at netscape.javascript.JSObject.initClass(Native Method)
at netscape.javascript.JSObject.<clinit>(JSObject.java:61)
at test.InJava4.start(InJava4.java:52)
at test.Main.main(Main.java:30)
Please have a look at my code written below and tell me if i have written anything wrong.Please do help me out. Thnx.
My java Applet code is written below :
import java.net.*;
import java.applet.*;
import netscape.javascript.*;
import netscape.javascript.JSException;
public class InJava extends java.applet.Applet
{
public void init()
{
try
{
System.out.println("hi i am in appltet");
String msg = "Hello from Java (using javascript alert)";
JSObject win = JSObject.getWindow(this);
win.call ("doAlert", null);
}
catch (Exception Ex)
{
System.out.println(Ex.toString());
}
}
public void start(){}
public void stop(){}
public void destroy(){}
}
My JavaScript is written below :
;
function doAlert(s) {
alert(s);
}
<applet code="InJava.class"
="" name="myApplet" mayscript
="" height="10" width="10">
|
|
|
|
|
I want a different popup on each row of JTable.
So I thought of setting the row on right click and then add popmenu to JTable.
The following code will help you'll to understand the problem...
private synchronized void HandlePopup(java.awt.event.MouseEvent evt) {
jTable1.setComponentPopupMenu(null);
if(evt.getButton()==MouseEvent.BUTTON3){
int y = evt.getY();
int row = Math.round(y / jTable1.getRowHeight());
jTable1.setRowSelectionInterval(row, row);
System.out.println("Row Selected = " + row);
jTable1.setComponentPopupMenu(popupMenu);
}
else jTable1.setComponentPopupMenu(null);
}
private void CreatePopup() {
popupMenu = new JPopupMenu("Title");
JMenuItem cutMenuItem = new JMenuItem("Cut");
popupMenu.add(cutMenuItem);
JMenuItem copyMenuItem = new JMenuItem("Copy");
popupMenu.add(copyMenuItem);
JMenuItem pasteMenuItem = new JMenuItem("Paste");
pasteMenuItem.setEnabled(false);
popupMenu.add(pasteMenuItem);
popupMenu.addSeparator();
JMenuItem findMenuItem = new JMenuItem("Find");
popupMenu.add(findMenuItem);
}
Here for the first right click the row gets selected....
then only the popup works and then there is no row selection.
the pop is always the same...coz new row gets never selected...
So how can I handle both popup with right selection...???
Please help me with this...
|
|
|
|
|
Where are you determining if the mouse event is a right click or not?
Also - where are you attaching your pop up menu listener?
Your question is pretty poorly explained: it makes it harder to help you.
|
|
|
|
|
I have a little snippet of code that writes a little text file locally by calling the script through Javascript on a web page. It works fine. Here is the example:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Local File Create Script</title>
</head>
<body>
<script>
function WriteToFile()
{
try
{
var fso, s;
fso = new ActiveXObject("Scripting.FileSystemObject");
s = fso.CreateTextFile("C:\\test.txt", true);
s.writeline("This is a test");
s.writeline("Oh Yea!!!!");
s.Close();
}
catch(err)
{
var strErr = 'Error:';
strErr += '\nNumber:' + err.number;
strErr += '\nDescription:' + err.description;
document.write(strErr);
}
}
</script>
<input name="write_to_file" type="button" id="write_to_file" onClick="WriteToFile()" value="Click Here" />
</body>
</html>
Now , what I would like to do is create that file on another computer by ip address. Here is what I got so far:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Network File Create Script</title>
</head>
<body>
<script>
function WriteToFile()
{
try
{
var fso, sDir, s;
fso = new Server.CreateObject("Scripting.FileSystemObject");
sDir = fso.GetFolder("\\10.6.3.45\c$", true);
s = fso.CreateTextFile("\test.txt", true);
s.writeline("This is a test");
s.writeline("Oh Yea!!!!");
s.Close();
}
catch(err)
{
var strErr = 'Error:';
strErr += '\nNumber:' + err.number;
strErr += '\nDescription:' + err.description;
document.write(strErr);
}
}
</script>
<input name="write_to_file" type="button" id="write_to_file" onClick="WriteToFile()" value="Click Here" />
</body>
</html>
Here is the error I am getting:
Error: Number:-2146823279 Description:'Server' is undefined
Can anyone help me?
modified on Thursday, June 4, 2009 6:27 PM
|
|
|
|
|
I think you were just over complicating it. You're getting that error because new Server.CreateObject... it's wondering what Server is. Just use the ip like a regular path. I tested it, and this worked for me.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Local File Create Script</title>
</head>
<body>
<script>
function WriteToFile()
{
try
{
var fso, s;
fso = new ActiveXObject("Scripting.FileSystemObject");
s = fso.CreateTextFile("\\\\205.67.214.8\\c$\\test.txt", true);
s.writeline("This is a test");
s.writeline("Oh Yea!!!!");
s.Close();
}
catch(err)
{
var strErr = 'Error:';
strErr += '\nNumber:' + err.number;
strErr += '\nDescription:' + err.description;
document.write(strErr);
}
}
</script>
<input name="write_to_file" type="button" id="write_to_file" onClick="WriteToFile()" value="Click Here" />
</body>
</html>
(i hope you don't mind, but i didn't know you could even save to a file from js until i read your post. I hope you don't mind but i'm going to add this code to my library, ^_^. I only got the solution by being bored and playing with what you provided.)
Friday, June 5, 2009 9:01 AM
|
|
|
|
|
Thank you very much for your help. Everywhere that I looked people were saying that it couldn't be done. And now it's part of your library.
Thanks again.
|
|
|
|
|
Hi,
I have to write a report in HTML document using java.
Can somebody suggest me some good tutorial or some good links that will help me in doing this task.
It would be very helpful.Please do help me out.
Thank You.
|
|
|
|
|
Salam ( == Hi );
As I understood; you want to use Java to generate a report in HTML format. There is a simple to do job. You just need to do the following:
1- Create an HTML file and Open it in Java;
2- Add header data to the file;
3- Connect to your data source; for example MySQL using JDBC;
4- Run a query to the data source;
5- Parse the query result;
6- Add a parsed query result in appropriate places at the HTML file;
7- Finally add footer to the file;
8- Close the stream;
To show it in your program; use the Swing library;
there is a tut. on sun.com;
link
With my best and warmest regards;
&
With the hope of coming of Mahdi;
Ali Shakiba;
Kerman - Iran (Islamic Republic);
|
|
|
|
|
I need hellp moved this code from unix db2 tomcat server to unix mysql tomcat server. Modified the code as per below
This code gives a null pointer exception Please view at www.nerolac.com/dealer6_1.jsp. Please advice.
<pre>
<%@ page language="java" import="java.sql.*"%>
<jsp:useBean id="conb" class="nerolacbean.ConnOdbc"/><script>
</script><%
String connectionURL = "jdbc:mysql://174.133.229.154:3306/nerolac?";
Connection connection = null; Statement statement = null;
String sql_state,sql_city,flag,city,sql_details; ResultSet rs_state;
String id,stateid; ResultSet rs = null; ResultSet rs1 = null;
ResultSet rs2 = null; String address = null;%>
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript> <!--
function state_onchange(){ if (document.testa.state.selectedIndex!=0) {
if (document.testa.city==document.undefined) { } else {
document.testa.city[document.testa.city.selectedIndex].value = " "; }
// document.testa.action="dealer6.jsp";
//alert(document.getElementById("state").value);
city = document.getElementById("city").value;
state = document.getElementById("state").value; if (city=0) { city = "+"; }
location.replace("dealer6_1.jsp?&state="+state+"&city="+city); }
} function city_onchange(){ city = document.getElementById("city").value;
state = document.getElementById("state").value;
location.replace("dealer6_1.jsp?&state="+state+"&city="+city);}
//--></SCRIPT><html><body> <%
Class.forName("org.gjt.mm.mysql.Driver").newInstance();
connection = DriverManager.getConnection(connectionURL,"","");
statement = connection.createStatement(); try { ResultSet rs_city=null;
ResultSet rs_details=null; String reqCity=""+request.getParameter("city");
String reqState=""+request.getParameter("state"); String form_state="";
sql_state = "select distinct state from dealernetwork order by state";
%> &nbsp;
<form name="testa" action="dealer6_1.jsp" method="get">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> <td><img src="images/indiamap2.jpg" /></td>
<td valign="middle"><table border="0" cellpadding="2" bordercolor="#000000" bordercolorlight="#000000" bordercolordark="#000000">
<tr>
<td height="23" align="center" bgcolor="#FFCCFF" class="txt07" ><b> Select State</b></td>
<td height="23" align="center" bgcolor="#FFCCFF" class="txt07"><b> Select City</b> </td>
</tr> <tr> <%
if(!reqState.equalsIgnoreCase("null"))//If state is specified { %>
<% form_state = reqState.toUpperCase(); if(!form_state.equals(""))
{ try {
sql_city = "select ID,city,STATEID from dealernetwork where state = '"+form_state+"' order by city";
out.println("sql_city "+sql_city); rs_city =conb.getResult(sql_city);
out.println("rs_city "+rs_city); flag = "true"; }
catch(Exception e) {
System.out.println("IN EXCEPTION-----"+e.getMessage()); } } }
%>
<td height="26" bordercolordark="#00FFFF" align="center">&nbsp;
<select name="state" id="state" onchange="return state_onchange()" class="txt07">
<% if(form_state.equals("")) {%>
<option selected="selected" value=""> -- Select State --</option>
<%}else {%>
<option value=""> -- Select State -- </option> <%}%>
<% rs_state = conb.getResult(sql_state);
out.println("rs_state "+rs_state); while(rs_state.next()) {
if((reqState).equals(rs_state.getString("state"))) { %>
<option value="<%= rs_state.getString("state")%>" selected="selected"><%= rs_state.getString("state")%></option>
<% }else {%>
<option value="<%= rs_state.getString("state")%>"><%= rs_state.getString("state")%></option>
<% } } %> </select></td>
<td height="26" align="center"><%
//if (!reqState.equalsIgnoreCase("null"))//{ %>
<select name="city" onchange="return city_onchange()" class="txt07">
<option value="" selected="selected" >--Select City--</option>
<% String checkcity=""; boolean stateidStatus=true;
String tempCity=""; if(!reqState.equalsIgnoreCase("null")) {
while(rs_city.next()) { id = rs_city.getString(1);
city = rs_city.getString(2); if(!tempCity.equalsIgnoreCase(city))
{ tempCity = city; if(reqCity.equalsIgnoreCase(city)) {
%>
<option selected="selected" value="<%=reqCity%>"><%=reqCity%></option>
<% }else { %>
<option value="<%=city%>"><%=city%></option>
<% } } } } %> </select>
<% //}%></td> </tr> </table> <br />
<% if(!reqCity.equalsIgnoreCase("null")) {
String upper = reqCity.toUpperCase();
String lower = reqCity.toLowerCase();
String firstCap =reqCity.toLowerCase();
String firstCap1 = (firstCap.substring(0,1)).toUpperCase();
String firstCap2 = firstCap.substring(1,firstCap.length());
String firstCap3=firstCap1+firstCap2;
sql_details = "select * from dealernetwork where city= '"+upper+"' or city='"+firstCap3+"' or city= '"+lower+"' and stateid IN (select distinct stateid from dealernetwork where state = '"+reqState+"' )";
//out.println("query "+sql_details);
rs_details = conb.getResult(sql_details); %> <br> <%
boolean dispHead=true; while(rs_details.next()) {
if(dispHead) { dispHead = false; %>
<span class="txt07">
Listing of addresses corresponding to the selected cities are as</span>
<br> <% }%> <br />
<table border="0" cellpadding="2" cellspacing="1" width="90%">
<tr> <td width="18%" align="right" border
bordercolorlight="#000000" bordercolordark="#000000" bgcolor="#B5D2CA" class="txt07"><b>Name</b></td>
<td width="82%" align="left" bordercolorlight="#000000"
bordercolordark="#000000" bgcolor="#D2E3DE" class="txt07" border>
<% out.println(rs_details.getString(3).toUpperCase()); %>
</td> </tr> <tr> <%
address = ""+rs_details.getString(4); if(!(address.equals("null")))
{ String s1 = address+" "+address.toLowerCase();
String f1 = (s1.substring(0,1)).toUpperCase();
String s2 = s1.substring(1,s1.length());
// address=f1+s2; address = address.toUpperCase();
}
/* if(!(rs_details.getString("address2").equals("null")))
{ address = address +" "+ rs_details.getString("address2");
address =address.toLowerCase(); }
if(!(rs_details.getString("address3").equals("null"))) {
address = address +" "+ rs_details.getString("address3");
address =address.toLowerCase(); }*/ %>
<td width="18%" align="right" border
bordercolorlight="#000000" bordercolordark="#000000" bgcolor="#B5D2CA" class="txt07"><b>Address</b></td>
<td width="82%" align="left" bordercolorlight="#000000"
bordercolordark="#000000" bgcolor="#D2E3DE" class="txt07" border>
<%if(!address.equals("")) {%><%=address%><%}%>
</td> </tr> <tr>
<td width="18%" align="right" border
bordercolorlight="#000000" bordercolordark="#000000" bgcolor="#B5D2CA" class="txt07"><b>Phone</b></td>
<td width="82%" align="left" bordercolorlight="#000000"
bordercolordark="#000000" bgcolor="#D2E3DE" class="txt07" border>
<% String phone=""+rs_details.getString("phone");
if(!(phone.equals("null"))) {%> <%=phone%><%}else
{%>N.A.<%}%></td> </tr>
<tr><td>&nbsp;</td></tr> </table>
<% } } } catch(Exception e) { out.println("Error"+e); }
%></td> </tr> <tr>
<td colspan="2" align="right"> </td> </tr>
</table></form>
<pre/>
Regards
Ashish Bhatia
modified on Wednesday, June 3, 2009 8:05 AM
|
|
|
|
|
0. Use the <pre> tag to format you rcode; hint look below for
code block
1. Make sure the code is pasted in correctly; again you can ignore the HTML tags if you tick the box below.
Then, and only the, you *might* get some advice.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Looking at his code, he mis-typed his closing "pre" tag. A simple human error!
modified on Thursday, June 4, 2009 6:33 PM
|
|
|
|
|
ItIsFinished wrote: A simple human error!
A simple human would fix it.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Hello guys,
I am developing a mobile application and in this application i need to read an XML file. Now im trying to add the following packages to read an xml file:
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
After trying to import these packages NETBEANS 6.5 gives me the following error message javax.xml.parser not found.
When i try to use these packages in a normal java applicaion it works fine but when using them with the mobile applicatoin the above mentioned error comes up. Can anyone tell me how I can fix this or if there is any other solution? sorry for the trouble but I am a bit new to java.
|
|
|
|
|
Without firing up google, I think you'll find that the whole of javax is not part of Java ME.
blox. It is supported, see here[^]
That may help you. All I can guess then is you have got part of the J2ME SDK missing/not installed?
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Hello, I have successfully used jComboboxes as cell editors in a jtable using the code below which is all in one method.
My question is, how can i get the item (or index for that matter) selected in the combobox that's inside the jtable?
Using table.getmodel().getvalueat() doesn't seem to work.
Thanks!
DefaultTableModel model = new DefaultTableModel() {
@Override
public boolean isCellEditable(int row, int col) {
if(col>2)
return false;
return true;
};
};
TableColumn col;
int vColIndex,width;
JComboBox comboBox;
TableColumn colcombo;
colcombo = jTable1.getColumnModel().getColumn(2);
comboBox = new JComboBox();
comboBox.addItem("Iniciado");
comboBox.addItem("En proceso");
comboBox.addItem("Consolidado");
colcombo.setCellEditor(new DefaultCellEditor(comboBox));
|
|
|
|