Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~4K People Reached
Favorite Tags
Member Avatar for idlackage

For example, after I press the button to submit this thread, a new page is created for it. How does this work/what would be the right way to describe it? I'm not sure where this should belong to so apologies if it's in the wrong forum.

Member Avatar for ryantroop
0
417
Member Avatar for idlackage

Is there a way to have multiple search entries for one TreeView, each for a different column, or having one search entry handle all columns? The effect I'm looking for is (for example) having three columns, and thus typing into three search boxes to narrow down to the results that …

0
129
Member Avatar for idlackage

I have this code: sigc::connection conns[4]; And I get this error: Program received signal SIGSEGV, Segmentation fault. 0x00f4b620 in g_type_check_instance_is_a () What does this mean?

Member Avatar for ram619
0
49
Member Avatar for idlackage

I have this: typedef struct { int value; } Thing; void doSomething(Thing *ptr) { ptr = (Thing *)calloc(5, sizeof(Thing)); int i; for(i = 0; i < 5; i++) { scanf("%d", (ptr[i]).value); } } int main() { Thing t; doSomething(&t); } Which crashes at the scanf() line. How should I be …

Member Avatar for rubberman
0
215
Member Avatar for idlackage

I put a bunch of JButtons in a 2D array into a GridLayout. I want the user to be able to change the size of this grid at run time, but I tried resetting the row/cols, re-adding the buttons, remaking the panel that this grid is in - all to …

Member Avatar for idlackage
0
473
Member Avatar for idlackage

I'm just trying to output a value, but whenever it gets to "var max = tb1.value;" it stops working. I can't find out what's wrong with my code. [CODE]<html> <head> <script language="javascript" type="text/javascript"> var tb1 = document.getElementById('textbox1'); function output() { var max = tb1.value; document.write( max ); } </script> <title>asd</title> …

Member Avatar for six_sic6
0
264
Member Avatar for idlackage

I have a Javascript function that dynamically creates a box with document.getElementById('lightbox').innerHTML. In the box will be, among other things, a div with id="div1" and visibility="hidden" and a form which, onSubmit, calls the function myFunction. The function basically looks like [CODE] myFunction() { document.getElementById('div1').style.visibility = 'visible'; }[/CODE] which has worked …

Member Avatar for Taywin
0
114
Member Avatar for idlackage

I'm reading in a text file that contains a little custom script. However, one line of that script gets ignored and I can't figure out why. Script: [CODE]# Test Case #1 - Simple Movement RESET FORWARD 2 PAUSE 1 REVERSE 2 PAUSE 2 TURNRIGHT 2 PAUSE 1 TURNLEFT 2 PAUSE …

Member Avatar for Radical Edward
0
96
Member Avatar for idlackage

I have a method that takes in a rectangle shape as a parameter, uses it as a selection box, and finds shapes in an array called shapeObjects that are within the bounds of the selection box. The indexes of those shapes are then added into a new array which is …

Member Avatar for javaAddict
0
94
Member Avatar for idlackage

Labels would not show up in the output window. The red highlighted code is where said labels get added to the window. I can't tell what's wrong with the code and I've looked at it over and over. [CODE]import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JLabel; import javax.swing.JButton; import java.awt.BorderLayout; import java.awt.GridLayout; …

Member Avatar for idlackage
0
236
Member Avatar for idlackage

Probably a stupid question, but I need the 'colour' variable for an external class, and it can only return something when it's declared in the constructor. However, the colour returned would then never change. Is there a way to return values from the change listener, or anything else that I …

Member Avatar for JamesCherrill
0
509
Member Avatar for idlackage

I've got a NullPointerException at line 50 (and the init on line 12). Can't figure out why. [CODE]private String gradientText[] = { "Gradient State", "Gradient Cols" }; private String lineText[] = { "Line Width", "Dash State", "Dash Length" }; private String shapeText[] = { "Shape Type", "Fill State" }; // …

Member Avatar for idlackage
0
109
Member Avatar for socal

This is my class [CODE]import java.io.*; public class bankAccount { //instance variables public String name; public int number; public double balance; public double deposit; //constructor public bankAccount(String name, int number, double balance, double deposit) { this.name = "John Smith"; this.number = 123456; this.balance = 0.0; } public double getBalance() { …

Member Avatar for idlackage
0
97
Member Avatar for idlackage

Is it possible? I want my components to look separated--properly so, with distinguishing border colours, not just with hgaps and vgaps. Is there a way to emulate it? I tried setting a panel background to black, then using hgaps and vgaps in hopes that the black would show through the …

Member Avatar for sfrider0
0
69
Member Avatar for idlackage

I'm trying to make a method that would create a new tab with a specified name and a white background. However, nothing I pass in (whether it's a JPanel, JButton, etc.) would show up in the final result. I can't tell what's wrong. [CODE]import javax.swing.JFrame; import javax.swing.JPanel; import java.awt.BorderLayout; import …

Member Avatar for idlackage
0
125
Member Avatar for idlackage

The number I'm looking for is valid when it's positive, and nine digits. I used ( (value >= 100000000) && (value <= 999999999) ) first, which worked okay, but did not account for leading zeroes. How do I validate a nine digit number, using only math and no functions, with …

Member Avatar for jephthah
0
126
Member Avatar for idlackage

Dumb question, but I've searched everywhere and found nothing specific: is it possible for HSB values to translate directly into a colour (eg. a hue of zero equals red) instead of passing them through an RBG conversion? Also, dumber: I'm not understanding the arrrays people are using, for example [URL="http://www.squarebox.co.uk/users/rolf/download/ColourWheel/ColourWheelApplet.java"]here[/URL] …

Member Avatar for idlackage
0
88
Member Avatar for idlackage

I'm supposed to allow the user to draw shapes based on their combobox choices (eg. line, rectangle, circle), colour, fill state, etc. However, nothing is showing up. Model class: [CODE]import java.awt.Color; import java.awt.Graphics; import javax.swing.JPanel; import javax.swing.JLabel; import javax.swing.JOptionPane; import java.awt.event.MouseAdapter; import java.awt.event.MouseListener; import java.awt.event.MouseMotionListener; import java.awt.event.MouseEvent; public class DrawPanel …

Member Avatar for Ezzaral
0
184
Member Avatar for idlackage

I'm supposed to get a 4-digit number from the user, convert it to binary (and hex), then print it out. I have absolutely no idea where to start. I know the algorithm; taking the number, diving it by 2, repeat until the number reaches 0 and the remainders of everything …

Member Avatar for dan63043
0
170