391 Discussion / Question Topics

Remove Filter
Member Avatar for Violet_82

Chaps, I have a problem. I have some videos recorded with a samsung s3 phone at the following settings: resolution 1920x1080 Video quality: superfine format: mp4 Now, the file size range from a minimum of 50MB to a maximum of 100. When I play the recorded videos on the phone, …

Member Avatar for Rakesh456
0
708
Member Avatar for Violet_82

Hi all, I wonder if somebody can help me with this. I have this situation: I have a header div with a heading and when I click on it another div hiddenDiv slides down or slides up (I am using the slideToggle method). What I want to do also is …

Member Avatar for Violet_82
0
462
Member Avatar for Violet_82

HI I am looking into object literals, a topi that I am afraid I really don't know much about. Anyway, I thought I'd try something but I didn't get it to work and I am not sure what I am doing wrong. I have an HTML page: <html> <head> <title>This …

Member Avatar for Troy III
0
197
Member Avatar for Violet_82

Hello, I need to build the following GUI ![b1ec49424775312369c320b6b57981d8](/attachments/large/2/b1ec49424775312369c320b6b57981d8.jpg "b1ec49424775312369c320b6b57981d8") and as usual I was hoping to have some advice before I start building it. In particular, I wonder if you guys think I should have any JPanel at all or if it is better to attach everything to the …

Member Avatar for Violet_82
0
723
Member Avatar for Violet_82

Hello guys, A few days ago I was looking on the net for a good jquery tabbed navigation – I needed it for a project – and I have to say that what I found wasn’t really what I was hoping for. An awful lot of people seem to be …

Member Avatar for Violet_82
3
182
Member Avatar for Violet_82

Hello guys, I hope you can clarify something for me please. I was looking into carousels, found an excellent one and replicated in my code (for reference this is the one I looked at, it’s really good and easy to understand https://tutsplus.com/lesson/the-obligatory-slider/). Anyway, I have implemented that and I thought …

Member Avatar for Violet_82
1
1K
Member Avatar for Violet_82

Hello all, I wonder if you can help me with this. I wanted to create a page which, among the other things, has a div with a lot of text inside. Below this div there will be 2 buttons. When viewed on a mobile, the height of this div become …

Member Avatar for patk570
1
301
Member Avatar for Violet_82

Hello, today I decided to look into jquery plugins, and with the help of various tutorials I have produce a very simple one that changes the colour of some elements in a page. I would appreciate some help in understanding whether there is something else that I need to do …

Member Avatar for Violet_82
0
212
Member Avatar for Violet_82

Hello, I have looked at an example of `GridBagLayout` (JamesCherrill you must be thrilled : - )!!) and there are a few things that are not entirely clear to me. First here is the code taken from deitel and deitel “Java how to program”, chapter 25: // Fig. 25.21: GridBagFrame.java …

Member Avatar for Violet_82
0
206
Member Avatar for Violet_82

Hello, me again :-). This time I need to build a small calculator-like GUI, like this: ![3c9bdedf8ee9380da461586266ce3130](/attachments/large/2/3c9bdedf8ee9380da461586266ce3130.png "3c9bdedf8ee9380da461586266ce3130") This time I thought I'd ask a few questions before I start building it! 1)In terms of layout, I was thinking to use the GridLayout again: one for the text field and …

Member Avatar for Violet_82
0
3K
Member Avatar for Violet_82

Hello guys, I have built another small GUI: ![c91be0d75e981f9b7ed81b89898a1722](/attachments/large/2/c91be0d75e981f9b7ed81b89898a1722.png "c91be0d75e981f9b7ed81b89898a1722") Even before knowing whether the layout of the application I have built is right, I am facing another big problem. At compiling time I get the following error: Note: Dropdown.java uses unchecked or unsafe operation Note: Recompile with -Xlint:unchecked for …

Member Avatar for Violet_82
0
940
Member Avatar for Violet_82

Hello guys, I hope you can help me with this. I have read a bit about GUI and now I am trying to do a few exercises to consolidate what I have read. In the first exercise I have to reproduce a simple GUI. Well I thought it was simple… …

Member Avatar for Phaelax
0
463
Member Avatar for Violet_82

Guys, I was wondering if any of you use Umbraco CMS and if so how user-friendly/good/easy-to-use it is. thanks

0
92
Member Avatar for Violet_82

Hi guys, I tought I'd experiment a bit with layout managers, trying to get to grips with them. I will start with a flowLayout, then hopefully move on to more complex ones. OK, so here is the code for the first example, very simple one: /*FlowLayoutManager.java layout manager tests*/ import …

Member Avatar for Violet_82
0
167
Member Avatar for Violet_82

Hi guys, I have come across something really confusing, so I wonder if somebody can help me with that. I wanted to increment the width of a container using this version of the `.css()` method: `$( "div.example" ).css( "width", function( index )` as per http://api.jquery.com/css/#css-propertyName-functionindex--value So here is my html: …

Member Avatar for Violet_82
0
456
Member Avatar for Violet_82

hi guys, I wonder if anybody can clarify something for me. Take these 2 fragments of code (2 constructors belonging to 2 different applications): First one: public MouseTrackerFrame() { super( "Demonstrating Mouse Events" ); mousePanel = new JPanel(); // create panel mousePanel.setBackground( Color.WHITE ); // set background color add( mousePanel, …

Member Avatar for Violet_82
0
486
Member Avatar for Violet_82

Hi guys, I have an HTML page that I built and at the moment the content on it gets changed via javascript. What I would like to achieve is to change the content permanently on this page (which will be uploaded to the server). Now, I must admit that I …

Member Avatar for Violet_82
0
1K
Member Avatar for Violet_82

Hi all, yes still a question about the API! I am looking into event handling at the moment (basic things with text fields, checkboxes etc ) and I have noticed that different components generates different events which are in turn handled by different objects. As an example,let's take a checkbox. …

Member Avatar for Violet_82
0
162
Member Avatar for Violet_82

Hi all, as some of you might know the API is my nightmare. I know it's important and therefore I am trying to use it as much as I can. Today I am looking at a program that uses buttons to change the font of some text. So, I have …

Member Avatar for Violet_82
0
161
Member Avatar for Violet_82

Hi all, I wonder if you can help me with something odd that happened. Last week I bought a new laptop for my sister, a acer aspire one 756. It comes with load of useless stuff installed. I have removed only office 2010 and installed office 2003, plus a virtual …

Member Avatar for Abelardo
0
537
Member Avatar for Violet_82

Hi guys, I was wondering if you can help me at all. I've just built a small html page which is meant to keep track of overtime. The data is entered through input fields. Then with jquery I extract the data from the input fields, create and populate a table. …

Member Avatar for diafol
0
211
Member Avatar for Violet_82

HI guys, I wonder if any could help with this. In my daily job I often find myself picking up code written by other developers and making additions to it. Now, this is often a problem because if I change a css rule I might end up breaking the layout …

Member Avatar for Violet_82
0
103
Member Avatar for Violet_82

Hi all, as much as I don't like the API, it is becoming more and more important for me to start using it. I think I might need a guide of some sort which says what's what and what's where, if anybody has one please let me know. Today I …

Member Avatar for JamesCherrill
0
150
Member Avatar for Violet_82

Hi all, I wonder if you can help me with this. I am looking at a fairly long (well at least for me) java program, about 700 lines. Basically it's a very very basic simulation of an ATM that can run on a computer. Now, in all the classes I …

Member Avatar for Violet_82
0
167
Member Avatar for Violet_82

Hi all, I wonder if you can help me to understand this. I came across the following code: @Override public String toString() { return String.format( "hourly employee: %s\n%s: $%,.2f; %s: %,.2f", super.toString(), "hourly wage", getWage(), "hours worked", getHours() ); } // end method toString I have some problems with the …

Member Avatar for Violet_82
0
3K
Member Avatar for Violet_82

Hi all, a friend of mine had some problems with her laptop and she asked me to look at it. I have formatted the hard drive and I am in the process of reinstall windows xp on it - I don't know the specs of the laptop because I dont' …

Member Avatar for yvonne.lundeandreassen.9
0
362
Member Avatar for Violet_82

Chaps, I run into a strange problem today for the first time. Basically I have a web page that users can print using a print button on the page itself, but what I want is them to be able to print a print-only version of this page. So, I wrote …

Member Avatar for Violet_82
0
263
Member Avatar for Violet_82

Hi all, quick question about a website I am about to build. Basically, somewhere on the homepage, presumably quite far down closer to the footer I will have a div with two clickable tabs: when clicked they will show different content but the url of the page needs to stay …

Member Avatar for Violet_82
0
113
Member Avatar for Violet_82

HI all, I was wondering if it is legal to have a span tag inside a legend, something like this `<legend>This is my<span>legend</span></legend>` Can't quite work out whether legend is a block element or inline thanks

Member Avatar for Violet_82
0
1K
Member Avatar for Violet_82

Chaps, I have run into some strange behaviour never seen it before, and it is really giving me a huge headache. I wonder if anybody can help me to understand why this is happening. Here is the link: http://antobbo.webspace.virginmedia.com/various_tests/floatProblem/test.htm Look at the squares labelled 1,2,3,4 inside the red div. They …

Member Avatar for BMXDad
0
154
Member Avatar for Violet_82

Hi all, I have spent a few hours on this now, and I have to admit that I have absolutely no idea what is going on. I have a background image that is not showing in IE7 and IE8, other browsers are ok. Here is the link http://antobbo.webspace.virginmedia.com/various_tests/imageProblem/confirmation.html I am …

Member Avatar for Violet_82
0
589
Member Avatar for Violet_82

Chaps, I wonder if anybody can help me with this issue. Basically, I have a simple page that I am trying to make responsive and it all works ok except that on a mobile phone in landscape mode I am experiencing problems. Now, let me say first that I have …

Member Avatar for Violet_82
0
208
Member Avatar for Violet_82

Chaps, I have a problem, and I am not sure how to get around it. Basically, I have a background image (it sits in a span) which is roughly 40px x 40px (bigger than the span) and it gets cropped off. How can I display the whole image even if …

Member Avatar for Violet_82
0
323
Member Avatar for Violet_82

Chaps, something that occurred to me today. If I have a div with `display:hidden;` and I want it to unhide it and animate it at the same time with `animate()`, how do I achieve that? I had a look at the jquery API and it says that `animate()` unlinke `slideDown()` …

Member Avatar for iamthwee
0
208
Member Avatar for Violet_82

Hi all, I was wondering if anybody can enlighten me on when it is best to separate javascript code in different script. Let me give you a practical example. I have a script that I would like to run everytime the page is resized, so I am thinking to use …

Member Avatar for Violet_82
0
309
Member Avatar for Violet_82

Chaps, I wonder if you can help me with this problem please. In a nutshell I am trying to remove/add round corners around a container on the fly. The reason is that I have a div with some content that slides down and when the content is visible I want …

Member Avatar for Violet_82
0
269
Member Avatar for Violet_82

Chaps, today I was reading about exception handling and although the book explains them in sufficient details there is something that I really struggle to understand. Ok, here's the example they analyze: // Fig. 11.2: DivideByZeroWithExceptionHandling.java // Handling ArithmeticExceptions and InputMismatchExceptions. import java.util.InputMismatchException; import java.util.Scanner; public class DivideByZeroWithExceptionHandling { // …

Member Avatar for Violet_82
0
398
Member Avatar for Violet_82

Chaps, I have a question about nesting elements. I am using bootstrap for a project I am working on, and for whoever didn't know that - I am one of those - in bootstrap buttons are `display:inline-block;` Now, I have this situation at the moment: `<p><button>My button</button> This button means …

Member Avatar for Violet_82
0
2K
Member Avatar for Violet_82

Chaps, I have just read about java interfaces and there is a nice exercise in my book that I would like to attempt, so I was wondering if you could help me to identify the best way to go about it. Here's the exercise: "Create 3 small classes unrelated by …

Member Avatar for Violet_82
0
6K
Member Avatar for Violet_82

Hi guys, I was wondering whether it is alwasy true that a button needs to be inside a form tag? Is that necessary all the time? > The W3C say that The FORM element acts as a container for controls so kind of yes really, but I 'd like to …

Member Avatar for Meir David
0
220
Member Avatar for Violet_82

Chps still having big problems uploading java files onto the forum, I keep getting the below error ![a7770cd5e7699bf618ad96734e519ad8](/attachments/small/2/a7770cd5e7699bf618ad96734e519ad8.png "align-left")

Member Avatar for Violet_82
0
271
Member Avatar for Violet_82

Hi guys, I need to buy a new battery for my Samsung galaxy GT-I9000, because the one I currently have doesn't hold charge for that long. I wonder, do you think it is safe to get one off ebay/amazon, or is it better to get a samsung's? thanks

Member Avatar for Violet_82
0
233
Member Avatar for Violet_82

Hi chaps, I am looking for a not too difficult exercise which involves superclasses and subclasses (the java book I am reading doesn't really have any good one). So I was thinking about something like this: Create a superclass 2DimensionalShapes and 2 subclasses Rectangles and Triangles. I will then need …

Member Avatar for Violet_82
1
250
Member Avatar for Violet_82

Chaps I have an interesting and odd problem. Today I had the brilliant(??) idea of using google chart https://google-developers.appspot.com/chart/interactive/docs/gallery/linechart#Loading for a site I am building. It is all nice and dandy till I placed the graph inside a hidden container, planning to add some jquery and slide the graph down …

Member Avatar for Violet_82
1
621
Member Avatar for Violet_82

Hi all, I am reading a bit about inheritance, super classes and subclasses. Now when I build a java program I usually have a java file for the class and another one to test the class. I was wondering if I use a superclass and a subclass, should they be …

Member Avatar for Violet_82
0
362
Member Avatar for Violet_82

Chaps, just bought a Hard drive docking station for my 3.5" Hard Drive. This can be used for all sort of things, 3.5, 2.5, SD, USB etc etc, you can see it in the first picture ![6d7dc6ccb7cbf1014d447a842a474237](/attachments/large/2/6d7dc6ccb7cbf1014d447a842a474237.jpg "6d7dc6ccb7cbf1014d447a842a474237") At the bottom there is a button that has allegedly something to …

Member Avatar for Violet_82
0
192
Member Avatar for Violet_82

Hi I would be really interested to understand how exactly the toString() method works. I have read quite a bit about it, that it returns the string representation of an object, that the default one can be overridden with @Override etc etc. Let's have a look at some examples: @Override …

Member Avatar for Violet_82
1
227
Member Avatar for Violet_82

Hi, I am afraid somebody somehow broke the usb connector of my Lacie 1TB hard drive (Starck), so I can't connect it ot the laptop anymore. I have removed it from the case and noticed that the plug is actually gone completely and the filaments that used to connect it …

Member Avatar for caperjack
0
1K
Member Avatar for Violet_82

Chaps, I have tried to upload some java files on the forum (it's an exercise I was working on and after having done I tohught I would make the code available for everybody to use, in case anybody wants it), but there doesn't seem to be anyway to upload them, …

Member Avatar for Violet_82
0
506
Member Avatar for Violet_82

Hi all, I am having serious troubles connecting my laptop to the tv. I can do that with windows ok, but not in the linux. Somebody suggested to install bumblebee http://eternalvoid.net/tutorials/linux-optimus-gt650m/, which I seem to have successfully done. I think the reason was because my laptop had the nvidia drives …

Member Avatar for Violet_82
0
412

The End.