Quantcast
Channel: Programming Forums
Browsing all 51036 articles
Browse latest View live
↧

Problem with subtracting

I'm new to this so bare with me... I'm tying to make a label decrease in a number but I keep getting errors when I try to. The codes are part of a timer, the error is in the 4th line of this: int y =...

View Article


BigO complexity

What is the expected BigO Complexity of the following code? private static <ListType> void sort(ArrayList<ListType> list, Comparator<ListType> c) { for (int i = 0; i < list.size()...

View Article


Problem: How to randomize color on object?

[private static final int COLOR_LIMIT = 255; // Generator for random colors private RandomIntGenerator colorGenerator = new RandomIntGenerator(0, COLOR_LIMIT); private Color randomColor = new Color...

View Article

Can an abstract class run a constructor method?

I'm reading Head First Java, and in its chapter about constructor methods, it says that even abstract classes have constructor methods, which are also run (first) when a subclass's constructor method...

View Article

Image may be NSFW.
Clik here to view.

Jusb programming for accessing data from RFID reader

I'm developing an application with RFID reader. And i need to get the data from the reader connected to the system using usb port. i'm working on it for days, but couldn't get even a small clue. please...

View Article


How can I get text from textboxes that are created at runtime?

Hi! I am a beginner in C#. I want to create an interface for oracle database. I managed to have texboxes that are created during runtime at every button click. I want the user that use the application...

View Article

Update Database Table From DataGrideView on Update Button Click Event

Hello Friends, I Have a Create Application in VB.Net 08, and i have one DataGrideView, and showing Database Data in That DataGrideView, and i want direct update from SataGridView, using Button Click...

View Article

class cast exception occured

Image image; image=ImageIO.read(new File("E:/images/bala merg/0108201104211.jpg")).getScaledInstance(300,300,0); bi=(BufferedImage)image; setIconImage(image); ClassCast Exception occured how do i do that

View Article


Why does a cast need to happen in this code?

Hey, I had a problem with my code and I found exactly what I needed to fix it, but the problem is I don't udnerstand why it works. I've looked all over but can't find a good explanation, could anyone...

View Article


Software Application

I want to develop a dynamic application which can be used all over the world for my project i want to create in c-sharp. I need suggestion from you guys . Can suggest me anything but out of the box..

View Article

How to recognise proximity 2d Line segments to a given line in r-tree

I am using opencv2.1.0 and I want to use r-tree structures via opencv. My idea is to find near by line segments for a given line segment (all are in 2d) using r-tree. I really do not know how to use...

View Article

Image may be NSFW.
Clik here to view.

How to display 0 and true in "is_int" in php?

The instruction is to get the is_int with the following. Example: $num1 = 123; $num2 = "123"; then get the is_int: is_int ($num1); => result is true but displays in the browser 1 the instruction is...

View Article

New member - To creating a file and reading, adding new entries.

Hello people, Im new here. It will very grateful if someone can help me with my program. Below is my code. I have put a menu for the user, and I need to provide those options to user to do with the...

View Article


Help needed in handling files

Hello guys, I have a huge semester project and i would require some help(if you want of course) with coding. I have to mention that i am not a code expert so my question might sound a bit silly. So...

View Article

JTables, AbstractTableModels and columnNames

Hello Java programmers. I have a game that I am working on, and I am at the stage where I am displaying the player's game history. I am using a JTable and an AbstractTableModel. The thing is, however,...

View Article


System programming c

Im new to system programming in c..can someone tell me an example of what arguments this program expecting in the terminal? #include <fcntl.h> #include <stdlib.h> #define PERMS 6666 int...

View Article

Custom Navigation Mesh?

Hi, is it possible to create a custom navigation mesh in XNA? For this to work I would have to be able to access the vertices/indices of an imported model and modify them in order to convert the tris...

View Article


How to check tautology using recursion?

I have problem with my code. I need to check tautology using recursion. Please give me some hint. I know how recursion works. But I do not have clue how to apply in tautology. this is my arbitrary. ((p...

View Article

background application services

How to make vb.net application that runs background. I've created windows form based application, i need that application to run background even if we close the form window. how to do it?

View Article

multidimensional array if statement problem

hi all basically i have to randomise an array of playing cards(with 4 suits) so i get two random numbers within my ranges and i need to see if both array values are same as the random numbers here is...

View Article
Browsing all 51036 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>