428 Posted Topics
Hi guys, I run into a problem. I am trying to write a small program. There should be 4 radio buttons and each of them controls the colour of the Content Pane. The problem I have is with the anonymous inner class (I hear JamesCherrill muttering "why do you bother?", … | |
Re: I found that the bootstrap media queries used in the grid - please note I am not saying you have to use the bootstrap grid, just the media queries - are pretty good, I have used them in the past a few times http://getbootstrap.com/2.3.2/scaffolding.html#responsive or you can have a look … | |
HI guys, I wonder if you can help me understanding this please. Take the following code: // Fig. 14.23: ListFrame.java // JList that displays a list of colors. import java.awt.FlowLayout; import java.awt.Color; import javax.swing.JFrame; import javax.swing.JList; import javax.swing.JScrollPane; import javax.swing.event.ListSelectionListener; import javax.swing.event.ListSelectionEvent; import javax.swing.ListSelectionModel; public class ListFrame extends JFrame { … | |
Hi, I am trying to add an event handling feature to an old program I wrote. Here is the relevant code: public class CalculatorLayout extends JFrame{ private BorderLayout layout;//layout object. Do I need a flowlayout at all? private JPanel numberKeysPanel;//contains the number keys panel //private JPanel calculationAreaPanel;//contains the calculation panel … | |
HI all, I am very new to LESS, literally just started today. I had a look at some tutorials, and got my first LESS webpage - or should I say CSS - to work in Firefox, but when I moved to other browsers the CSS doesn't pick up any style. … | |
Re: Eh, what does that even mean? Can you rephrase and post some code please? | |
Hi, I have a question about animating anchor links with jquery. I had a look online and for some hints and then I came up with this code: HTML <div class="navWrapper"> <img src="images/mobile_quick_nav.png" alt=""> <ul> <li><a href="#num1" class="navLink">Home</a></li> <li><a href="#num2" class="navLink">Panel 2</a></li> <li><a href="#num3" class="navLink">Panel 3</a></li> <li><a href="#num4" class="navLink">Panel 4</a></li> … | |
Hi all, I am testing an overlay and I can't get it to work correctly in IE7 and 8, in that the full page is not visible the opacity is set to 0. Here's the link http://antobbo.webspace.virginmedia.com/various_tests/overlay/test.htm It works ok in every browser and also IE9. This is the css … | |
Hi guys, I wonder if you can help me at all, I am a bit stuck here. Having this HTML: <div class="formWrapper"> <h2>Form box</h2> <div class="unstyledForm"> <p>These form fields have minimal styles applied to it, so that tehy look the same in every browser and device</p> <div class="row"> <label class="control-label" … | |
Hello, since I have realised how little I have understood of the GridBagLayout, I thought I'd open a thread where I could clarify one by one all my doubts. I have produced a very small and simple GUI which I will use to test the GridBagLayout and ask questions as … | |
Hello peeps, I hope you can help me with this. I have just bought a new “high capacity” battery for my gt-i900 android phone (it currently has a 1500mAh battery), a 3700mAh. Now, what should I do the first time? I was thinking to leave the battery in charge for … | |
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, … | |
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 … | |
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 … | |
Hello, I need to build the following GUI  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 … | |
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 … | |
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 … | |
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 … | |
Re: Why don't you start by removing that awful <br/> in the HTML file between the two lines? <div class="body_panel"> <h4>main body 3</h4> </div> <br /> <div class="body_panel"> <h4>main body 4</h4> </div> That should sort you out. Try and post back. | |
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 … | |
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 … | |
Re: To all these valuable comments I will add that I have used ubuntu for a few years now, although I don't really do any scripting so I use ubuntu as I would use any other OS. I have a dual boot machine, WIndows7 and Ubuntu 12.04, and I can say … | |
Hello, me again :-). This time I need to build a small calculator-like GUI, like this:  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 … | |
Hello guys, I have built another small GUI:  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 … | |
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… … | |
Guys, I was wondering if any of you use Umbraco CMS and if so how user-friendly/good/easy-to-use it is. thanks | |
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 … | |
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: … | |
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, … | |
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 … | |
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. … | |
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 … | |
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 … | |
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. … ![]() | |
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 … | |
Re: JorgeM, sorry to butt in but I thought that labels had to be used around any input to satisfy section 508? | |
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 … | |
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 … | |
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 … | |
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' … | |
Re: This should give you an idea http://css-tricks.com/snippets/css/media-queries-for-standard-devices/ although to be honest I never use that many media queries. As long as you target tablets and phones you should be ok. In terms of widths to use, I am of the opinion that the layout should dictate how many queries and … | |
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 … | |
Re: Agree, forget about Dreamweaver if you are serious about building websites. About responsive design, depending on how much you know about web development, I would start with a good article of Ethan Marcotte http://alistapart.com/article/fluidgrids. It is easy to understand but it is very comprehensive I think. This http://blog.teamtreehouse.com/beginners-guide-to-responsive-web-design also has … | |
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 … | |
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 | |
Re: have a look at the dell site http://www.dell.com/uk/p?~ck=mn. I usually buy dell, they are pretty good and not too expensive. What kind of programming are you planning to do? I guess a i5 should suffice, but that said I don't do programming (other than basic java) but web development and … | |
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 … | |
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 … | |
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 … | |
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 … |
The End.