This week's book giveaway is in the Open Source Projects forum.
We're giving away four copies of Eclipse Collections Categorically: Level up your programming game and have Donald Raab on-line!
See this thread for details.

David Avrami

Ranch Hand
+ Follow
since Sep 10, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by David Avrami

Yes, the code was generated with NetBeans IDE GUI builder.
About the loop thing i guess you are referring to

i was just a little over exited that it worked.
I also added an export button for exporting the color array to a file and by that i finished this part of my project.
Thanks for the advice with the action listener , didn't thought about it that way.
12 years ago
Yeeeeyyyy
THANK YOU ALL GUYS!!!
The JTable once in a while throws me a challenge but that's y i love programming.

her's the code WITH the proper names.
If anybody was interested i have wrote this app to make it easier to build a stage level in a brick breaker game i am developing
for android .


12 years ago
I uploaded a picture,
i have only selected a color and picked a cell but it colored almost the entire row..



12 years ago
thanks for the reply,
I did so with JLabel, but it not seems to work, when i tell JTable i''m using JLabel, the method getTableCellRendererComponent() wont
fire, but when i tell JTable use Object.class it paints the JTable rows, also it denying me from selecting cells contrary to JLabel.class.

her's the full code, i built the GUI in NetBeans, sorry for the variable names and the code a little messy, i need it firstly to get it to work properly.
note: only the first two 'red' color buttons are working.



this is the main:
12 years ago
Hi guys..
I want to paint a cell in a table with a custom renderer with a specific color i choose, i found some threads talking about it but still i think i miss something.(because it doesn't work.. )
this is not painting nothing in the table..
i tried to repaint the entire table but it seems the getTableCellRendererComponent() wont fire..how do i invoke it with a selected cells from the tables?..

12 years ago
thanks..

the font was the problem!!
13 years ago
Hi,

I am writing GUI in hebrew language in netbeans,
all the components displaying the characters as they should except the JTable.
i tried :

its not working, it shows squares in the table,
but in the console it shows it correctly(when printing the cell content from the table).

how can i set the character set in the JTable in hebrew?
thanks.
13 years ago
OK, Thanks .
gonna hit the docs.
13 years ago
Thank you,
that is exactly the info i was searching for, that jump start for the project.
I have a tower and 2 laptops.

I did a little search and come up with: Windows XP MODE
Question :
Can i use the Windows XP Mode to run the server and clients( in the tower and 2 laptops) and face no differences
between that and running it on a fresh installation of an actual Windows XP? it seems much simpler but is it the right way?
Or should i go to the documentation of that feature ? (XP MODE)
13 years ago
Hi to all,
I am a student and i have started my degree project, My project is about an appointment schedule software
in a clinical institute(in some college) that will support a server and several terminals.
I need a little guide to make sure i am doing everything correctly. (The documentation is not the issue)

I am intending to use MySQL server, Admin App for the server(mainly only for observation and logs) and Client App for the terminals.
I know the terminals using Windows XP and probably connected to a main server in the college (Not sure).

Where should i install the server?
If in the college mainframe could it be a problem if the college running a different server?
What other information i need to acquire?

Thank you in advance ,
Note: don't know if the topic is in the right thread. (sorry if it's not)
13 years ago
Hi,
I made a hidden input containing the information i needed in its value.
works great for me.

the hidden input in the html:


the javascript:


thank you for your help.
i need the options names and values like if i have a select like:

<select name="OrderList" size="8" id="OrderList" style="direction:rtl; position:absolute;left:500px;top:200px;width:150px;font-family:Courier New;font-size:16px;z-index:32">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
</select>

so in my servlet i could get a List or other object that will contain:
volvo, Volvo
saab, Saab
mercedes, Mercedes

there can be one selected option but i need them all.
maybe one way do to so is to mark the SELECT as multiple and after the user presses the submit button javascript will select all the options and then submit the form to the server?
I need the names and the values of the SELECT.
in my servlet the line:
request.getParameterValues("OrderList");
returns NULL although i do have options in the SELECT. (added by javascript)
so i thought maybe it's because initially the select was empty, therefore asking if there is
a different way to get those names and values.

thank for the fast reply.
Hi to all,
i have the following select tag:



i use javascript to add options to the select and allowing the user to change the order of those options.
The thing is i don't know how to send the options to the servlet (or retrieve the options like getParameter("OrderList")),
i need all the option's text parameters (best to return with values also but not necessarily).
I have read a little about JSON, still not sure if i really need it to accomplish this task.
any ideas or suggestions ?
your right!!!
that thought was in my mind for a second and then vanished because i was so glad it worked.
I have to figure it out, will post as soon as i'll have the answer.