43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for titus.k.s

when i was compile with -Xlint: unchecked then got some warning like this Compiling 12 source files to C:\Users\Titus\Documents\NetBeansProjects\SITA\build\classes warning: [unchecked] unchecked call to addItem(E) as a member of the raw type JComboBox what should i do?

Software Development java
Member Avatar for jwenting
-1
262
Member Avatar for titus.k.s

i had use combo box like this {jComboBox2.addItem("-- pilih menu --"); try { String sql = "select * from iomenu"; Statement cn = con.createStatement(); ResultSet rs = cn.executeQuery(sql); while (rs.next()) { jComboBox2.addItem(rs.getString("KodeMenu")); } } catch (Exception e) { } } but when i build that was had warning like this …

Software Development java
Member Avatar for stultuske
0
329
Member Avatar for titus.k.s

can you resolve this warning? warning: [deprecation] getText() in JPasswordField has been deprecated

Software Development java
Member Avatar for stultuske
0
151
Member Avatar for lianpiau

I want use Inner Join link 2 table and display in a datagridview. For example, PDC_FG Table contain PONO,Customer Customer Table contain Customer, Zone 2 table has same field is Customer. [CODE]ConnectionStringSettings conSettings = ConfigurationManager.ConnectionStrings["MyDBConnectionString"]; string name = conSettings.ProviderName; string providerName = conSettings.ProviderName; string ConnectionString = conSettings.ConnectionString; string sql = …

Software Development dataset display
Member Avatar for Sarfraz409
0
7K
Member Avatar for entropicII

Recently, I've been trying to find out how to make my computer think that a button on the keyboard has been pressed using python. I want the whole system to think the key has been pressed. I need this to be possible in windows 7 and 8, on the latest …

Software Development python
Member Avatar for Gribouillis
0
2K
Member Avatar for docfnt

I'm creating a custom control panel to replace the top border control panel/box. I start with a panel that docks at top of form, and add 3 pictureboxes, with light and dark colors, for when mouse enters. (optional 4th for docking options) My problem is the red_pb ("Form Closing" picturebox) …

Software Development vb.net
Member Avatar for docfnt
0
203
Member Avatar for abaddon2031

I have just figured out how to search for the element that im looking for in a xml file but now when I run it the code loops through i know 3 times maybe even more. I want to know what im missing that would cause it to loop like …

Software Development python xml
Member Avatar for chriswelborn
0
259
Member Avatar for sundog1

Hi Guys, I hope you can help me out... I have a slight issue in where the 'Search Box' Code I currently have seems to sift through the Populated Data Grid View fine. However, when selecting an Account that has been filtered by the use off the 'Search Box' it …

Software Development dataset seo
Member Avatar for sundog1
0
375
Member Avatar for ThatBitchYeah

Ok so now i have been able to write the code for adding and subtracting two complex numbers in rectangular form but now need to do the same for multiplication and division in polar form. #include<stdio.h> #include<stdlib.h> struct complex { int real,imag; }; int main() { struct complex x, y, …

Software Development c
Member Avatar for Amir Muhammad
0
770
Member Avatar for Entalist

/*Write a program which will print all the pairs of prime numbers whose sum equals the number entered by the user. */ #include <iostream> #include <vector> using namespace std; int main() { int maxNum; bool prime = true; cin >> maxNum; vector <int> primeSequence; for(int i = 1; i <= …

Software Development c++
Member Avatar for Entalist
0
2K
Member Avatar for Tycellent

Hey Guys, Was wondering if anyone could help me with this sort function for a vector of struct type. What i'm aiming to do is to make a score board being based on a player's score and print out the scores (along with the name) in descending order. I've looked …

Software Development c++
Member Avatar for Tycellent
1
452
Member Avatar for prospectus.monarchy

How to write a pseudocode program of perfect number Item One- the amount of numbers to be tested, so that the program knows how many times to loop. the amount of values must be between 1 to 20 inclusive. Item Two - the numbers that will be tested to ascertain …

Software Development
Member Avatar for prospectus.monarchy
-1
2K
Member Avatar for R0bb0b

Hi, I am a PHP developer that has been put on a Java project and am trying to apply the same principles with new ones that Java provides and am stuck. I have successfully instantiated a class with a variable class name, which contains a constructer that has one parameter. …

Software Development java
Member Avatar for R0bb0b
0
174
Member Avatar for nhrnjic6

how to write definition head for a template function that returns enum. I got a template funciton List<List_entry>::print_List(){code..} but I dont get how to return an enum. My current head is : template<class List_entry> List<List_entry>::Error_code List<List_entry>::put(const List_entry &x){code..} but it errors me that I need 'typename' before 'List<List_entry>::Error_code' because 'List<List_entry>' …

Software Development c++
Member Avatar for nhrnjic6
0
303
Member Avatar for theashman88

Hi I'm creating a code for my class and what I'm trying to do is to create a triangle class that is derived from abstract class TwoDimShape. However; when I create the triangle class and use base as a variable I get an error. My teacher wants us to use …

Software Development
Member Avatar for deceptikon
0
317
Member Avatar for Emmanuel_2

Below is a Python program I wrote to draw lines as many al there are mouse clicks. However, I wanted all the line segments to have the same attributes (eg: color, width etc), but that's not happening - only the last segment has my desired attributes. I am a beginner …

Software Development python
Member Avatar for vegaseat
0
289
Member Avatar for Aya_3

can you please help me, how can i read a wav file byte by byte and then play this file without using PlaySound Function. any help ?

Software Development c++
Member Avatar for mike_2000_17
0
289
Member Avatar for Steve_19

I was studing the ant task dirname. I am in over my head understanding this animal. It suggests to me that I could use build.properties and or build.xml properties . The same possibility arises in java code and I benefited greatly by loading xml properties. In the ant enviornment is …

Software Development java
Member Avatar for Steve_19
0
169
Member Avatar for myk45

Hello All, I want to convert a markdown file to its equivalent HTML programatically and Iam looking for a way to do this properly. I would need a script that converts the markdown file into proper html.I'am aware of Doxygen which generates these .md files to hmtl just with a …

Software Development html-css perl
Member Avatar for pritaeas
0
212
Member Avatar for Jjajangmyeon

OK - I'm stumped I'm filling a 2D arraywith inputs, then when it hits the first function - for some reason the very first value in the array is being changed to -5 If I comment the function out, it's fine - it gets passes and passed back with no …

Software Development c++
Member Avatar for Jjajangmyeon
0
247
Member Avatar for henryz_box

I have a button with action listener. When action is performed I call a method to show a label with my message using: Actionperformed(){ ShowMessage(); PerformAction(); } NOTE: This code is just an example. The problem is the message never shows even though the action is performed. Any help will …

Software Development java
Member Avatar for henryz_box
0
343
Member Avatar for PinoyDev

Good day! I just want a little help on how to add the textbox data onto the datagrid when a button is click? I have 3 textboxes(txtname,txtaddr,txtcontactno) and a datagrid with 3 columns(Name, Address, Contact #). When a button is clicked, the data of the 3 textbox shouls be transferred …

Software Development visual-basic
Member Avatar for Hamza Saleem
0
320
Member Avatar for jthomas

I am trying to send data from a UITableView into any type of database. I have 2 questions. 1: What type of database should I use (ex. MySQL, access)? 2: How will I transfer the database from a table view to the type of database I should use? PS: Please …

Software Development microsoft-access objective-c
Member Avatar for bpp_distributor
0
481
Member Avatar for La

def askopenfilename(self): filename= tkFileDialog.askopenfilename(initialdir='C:/..',title='Select File' , filetypes=[('Bitmap Images', '*.bmp'),('Png Images', '*.png'),('Gif Images', '*.gif'),("Jpeg","*.jpg"),("All files", "*")]) self.image = Image.open(filename) self.photo = ImageTk.PhotoImage(self.image) self.label = Label(self.photo) def encode_files(self,image,data): #get the image file image = Image.open(self.photo) #get message from entry box data= self.data_entry self.encoded = LSBSteg.encode(image, data)

Software Development python
Member Avatar for sneekula
-1
233
Member Avatar for abaddon2031

SO i have a python code that collects xml data in a file then seraches the file for the scancode and once it finds that the scan code is there it starts scanning for the order number this is where im running into trouble at. What i want it to …

Software Development json python
Member Avatar for sneekula
0
478
Member Avatar for surferbloggy

Hi ,i have a contact form made with xib file it works but i can't change the background color of the view programmatically i tryed with this but nothing, i know how to put an image background but i need to change the color on the fly how can i …

Software Development objective-c
Member Avatar for surferbloggy
0
1K
Member Avatar for Joemeister

I have troubles trying to display a list of items/objects in a array. What I'm doing is I'm adding students with a name, surname, age, and marks for subjects (Properties) to an array. If I added 4 students in this manner to the list I want to display all the …

Software Development
Member Avatar for Joemeister
0
294
Member Avatar for annain

Hi, I want to develop RFID access system. I create a user database using Microsoft Access.When system and connection are ready, user will swap the card on the RFID reader and the card id will show on retrieve data column. The card id will use to compare with the data …

Software Development microsoft-access visual-basic
Member Avatar for Qing _1
0
2K
Member Avatar for lewashby

I'm reading a book on C and it's telling me how to use gcc and about the -c option/flag. It reads "-c Compiles to an object (.o) file instead of an executable. This is important for creating library files." What is an object file and how is this good for …

Software Development c
Member Avatar for rubberman
0
144
Member Avatar for ogsirus

I found a bit of code which im unsure about in this poorly documented project im on. To be honest I havent got a clue what is going here. public void TestMethod(ISystemScriptingInterface system, ScriptEventArgs eventArgs) { var databaseScriptingInterface = system.GetInterface("database") as IDatabaseScriptingInterface; if (databaseScriptingInterface == null) { throw system.GetException(LocalisedSystemText.InternalServerError(), "Database …

Software Development user-interface
Member Avatar for deceptikon
0
235
Member Avatar for Wiizl

I'm imitating progressbar value change like: [CODE]private void playAnimation() { for(int i=1;i<=100;i++) { this.progressBar1.Value = i; System.Threading.Thread.Sleep(20); percent = i; } }[/CODE] At the same time I try to run another thread, to update label text like "...% completed". Of course I couldn't change text of label that was created …

Software Development
Member Avatar for Matthew.diggide.speakman
0
7K
Member Avatar for vegaseat

The portable version of Python (versions 2.7 and 3.2 are available) can be run from your hard drive or a flash drive. In many ways this makes your live easier, since a lot of libraries are included already. Also, you can take your code to a friend on a flash …

Software Development flash hard-drive python
Member Avatar for sneekula
2
3K
Member Avatar for NewCoder_31

Hi...I created a project using VISUAL DATA MANAGER TABLE as backend...However, I observed in the database, I have no access in other commands / buttons such as Save or Save As....Is there an easy way to convert VM table to other Access version such as 2000-2003?

Software Development visual-basic
Member Avatar for Hamza Saleem
0
228
Member Avatar for AdampskiB

Hi there, creating new variable to add to a function, and when the user inputs a value, I get this: ValueError: need more than 2 values to unpack This is for sizeWindow variable by the way, I'll bold the parts I'm talking about. [CODE]from graphics import * def main(): doorColour, …

Software Development python
Member Avatar for Narenthirasamy
0
9K
Member Avatar for mpike

Hello there. I recently have been teaching myself C++ and have come across something that I just can't seem to grasp. I undersatdn the basics of structures but when it comes to this nesting type situation I just can't figure out what is going on. If someone could explain in …

Software Development c++
Member Avatar for mpike
0
265
Member Avatar for gil.nickson

Im just curious what is wrong in my code, when i click the void button an error is shown, but it runs smoothly when the void button is not click. Here is my code, thanks for your help guys! Public Class Pizza Private Sub rdPrimo_CheckedChanged(sender As Object, e As EventArgs) …

Software Development vb.net visual-basic
Member Avatar for gil.nickson
0
280
Member Avatar for ogsirus

Hi Guys, Really need your help. I have started a new job, my first developing job in fact and Im struggling to understand how the system works. Thier product is massive and far more complex than anything i've seen. I have been looking at it during my first week to …

Software Development
Member Avatar for ogsirus
0
296
Member Avatar for PerplexedB

I may be very wrong, but in the web world, just installing Bootstrap gives you some basic control over how you controls look. Is there something similar for WPF? I don't seem to find anything, I have a very basic little wpf application with a pageframe, buttons, textblocks and textboxes. …

Software Development asp.net
Member Avatar for PerplexedB
0
264
Member Avatar for andrew mendonca

Write a complete program that reads three integers from the console and outputs the number of distinct values entered. For example if the input is 34 55 23 then the output will be 3, since there are three distinct values . If the input is 42 78 42 then the …

Software Development c++
Member Avatar for Suzie999
0
287
Member Avatar for Cave_1

Hi. I'm trying to use brace-initialization notation: int number{}; But I get the following error: "expected an expression". Shouldn't c++11 allow this kind of initialization? int number2(4) works just fine. Thank you.

Software Development c c# c++ visual-studio
Member Avatar for Cave_1
0
367
Member Avatar for andrew mendonca

Your Math class has five 100 point tests over the course of a semester (and nothing else that counts toward your grade). In addition to getting an average score of 70/100 you must pass at least three individual tests in order to pass the class . For example, if your …

Software Development c++
Member Avatar for Taywin
0
572
Member Avatar for abaddon2031

I am workign with a xml file that contains the order information for a company. What i am tryign to do is see if the xml file have a scan code in it and if it does then to pull the order number so that it can be passed to …

Software Development python xml
Member Avatar for abaddon2031
0
298
Member Avatar for Entalist

Hi all! I'm having some trouble with constructors and destructors. I've been told that a constructor creates an object and a destructor destroys it. The problem is that in my code I try to destroy `straight2`, but I can still print out it's length as if it wasn't destroyed at …

Software Development c++
Member Avatar for Entalist
0
185
Member Avatar for davecoventry

Here is my code: #include <string> extern std::string commands[]; extern std::string shortcuts[]; int in_array(std::string ar[], std::string txt){ for(int i=0;i<ar->size();i++){ int g=ar->compare(txt); if(!g){ return i; } } return -1; } int actioncmd(char* command){ int act=in_array(shortcuts,command); if(act==-1){ return -1; } act=in_array(commands,command); return act; } I'm simply trying to find out whether a …

Software Development c++
Member Avatar for davecoventry
0
5K
Member Avatar for ronaldpaul

Hi, I've done my bachelors in Computer Science and was working for the past 2 and a half years in PHP and MySQL. Now I'm planning to change my career path to IBM Websphere Administration. However, changing directly from PHP to Websphere seems quite impossible. So I've planned to take …

Software Development java java-jsp php
Member Avatar for jwenting
0
1K
Member Avatar for aluhnev

Hi can any one tell me please does visual studio 2012 support any features of c++11? Or only in 2013 version?

Software Development c++ visual-studio
Member Avatar for mike_2000_17
0
283
Member Avatar for Clif40RD

I Need Some assistance Desperately.

Software Development
Member Avatar for Clif40RD
0
248
Member Avatar for andrew mendonca

Without using arrays, write a complete program that reads three integers from the console and outputs the same three numbers in ascending order on separate lines. For example if the input is 5 4 3 then the output will be 3 4 5. Do not prompt the user or produce …

Software Development c++
Member Avatar for Taywin
0
3K
Member Avatar for pritaeas

I've been looking for a while for an example that uses claims, but I need it working in a desktop application and/or WCF service (a full local setup). MS and others say it should work, but examples are apparently well hidden within the depths of the internet. All I can …

Software Development
0
107
Member Avatar for Mr.M

Hi Dw I'm creating a wosa/xfs I've followed correctly the guide and the code has no error till I try to debug it or build it. I get this error 1) error LNK2019: unresolved external symbol_WFSStartUp@8 referenced in function "int_cdecl Wfs_Startup(void)" (?Wfs_Startup@@YAHXZ) 2) error LNK2019: unresolved external symbol_WFSOpen@36 referenced in …

Software Development c++
Member Avatar for Mr.M
0
144

The End.